ERT stable connection with python
Hi,
we need to create a stable connection to ERT in cloud to download real time data no-stop. We are using Python and the WebSocketAPI but we are experiencing some problems with token refreshing. In particular we are requesting tokens with user and password authentication, refreshing them every 200 seconds (since the seem to have 300 secs expiry time) but sometimes (without an apparent reason) the refresh request fails with BadRequest error.
Since we could not find any documentation online to follow nor other example to follow except for this one (which is the base of the procedure we implemented but it seems to have the problems described above and we do not know how to retrieve the client_secret associated to our client_id to correctly test all the code chunks...), we are not very sure where the problem could be.
Is there any way to get a longer lasting token?
And, more in general, what is the best way to achieve the required result using the above technologies?
Thanks
Best Answer
-
Could your request be failing due to the expiry of the refresh token? While Access token expires every few minutes and the application is expected to use Refresh grant to get a new tokens, the Refresh token will expire after couple of hours and application is expected to use Password grant to get a new one.
Can you try one of the provided samples and see if the issue persists - https://github.com/Refinitiv/websocket-api/tree/master/Applications/Examples/RDP/python
0
Answers
-
Thanks Gurpeet,
I'll try them for sure and I'll be back with news asap. Just one more question, since the link refers to RDP. We are quite new to the Refinitiv universe and we do not have already a clear idea of the products and today had been the first time I've heard about RDP: could you please explain what is it exactly? I know we have access to ERT in cloud, DSS and Tick History services, does this imply that we have access also to RDP? I have seen that there is a Python package for RDP (but I didn't tried it yet) , could it be of any help to reach my goals?
Thanks
0 -
The RDP refers to Refinitiv Data Platform, which is our platform offering with an end goal of having all the services provide data through the platform. The ERT Cloud refers to the streaming data delivery part of the RDP.
DSS and Tickhistory are different products and may converge into RDP at some time in future.
0 -
You asked about the RDP Python library, so you may find this article on the RDP Library worth reading - Discover our Refinitiv Data Platform Library (part 1)
As my colleague mentioned, we are gradually moving more and more of our content via the Data Platform. For example, some of the data available in DSS and Tick History may also be available on the Platform - allowing you to consume the data using common Restful APIs or library - rather than disparate APIs.
If you are interested in exploring the RDP content, I recommend you contact your Refinitiv Account manager and ask for a Trial RDP account.
In terms of the BadRequest error, if you test with the other examples that my colleague recommended and continue to see the same occasional error, then you need to raise a Product Support ticket for ERT in Cloud - which is now rebranded to 'Refinitiv Real-Time - Optimized' via My.Refinitiv
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛