Request Timeout occured
outdated.
outdated.
Best Answer
-
Consider retrieving data for multiple instruments in a single request, thus reducing the number of requests you're sending. See this previous discussion on this forum:
https://community.developers.refinitiv.com/questions/16321/what-are-the-thresholds-for-api-calls-via-the-pyth.html
You may also find this thread useful
https://community.developers.refinitiv.com/questions/17206/read-timed-out-error.html1
Answers
-
I initially wrote the loop for example to pull one single asset say LCOc1
for multiple fields in 1 request.
Say TR.OPENPRICE, TR.ASKPRICE, TR.BIDPRICE, TR.CLOSEPRICE, TR.LOWPRICE, TR.HIGHPRICE, TR.SETTLEMENTPRICE, TR.BLOCKTRADEVOLUME, TR.ACCUMULATEDELIGIBLETRADEVOLUME, TR.ACCUMULATEDVOLUME, TR.OPENINTEREST
To hook the date in, I had to add an additional field say TR.SETTLEMENTPRICE.date
But upon studying the data, I realized that the .date is not properly aligned across all fields. So I have no choice but to loop the field like this.
field 1 = [ TR.OPENPRICE.date, TR.OPENPRICE]
field 2 = [ TR.ASKPRICE.date, TR.ASKPRICE]
field ....
I then have to manually reconstruct the dates into 1 df so that the dates match correctly.
This process is tedious but important to ensure the integrity of the data.
So unless the API allows for 1 master date, multi parameters, this loop seems inevitable.
Which if you think about it, Excel TR pulls multiple timeseries parameters in 1 master date but we arrived at this problem because at the onset, I had to workaround with get_data().
Food for thought for the developing team.
0 -
Thank you so much for your very valuable feedback. I totally agree that the API should provide capability to return one master date column and the values of all timeseries fields properly aligned with dates, as is currently possible in Excel. I passed your feedback on to our product management.
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 中文论坛