Lseg-data.get_data slow after 3pm UTC

Observing Lseg-data API getting slower after 3pm UTC.
There are occasional exceptions thrown when calling lseg.data.get_data() function. Exceptions listed below
- lseg.data._errors.LDError: [WinError 10061] No connection could be made because the target machine actively refused it
- lseg.data._errors.LDError: Asynchronous Query library internal error.
- lseg.data._errors.LDError: timed out
We have also seen logs where the response took around an hour, is this expected? shouldn't the request have timed out in such case? Is there a way for lseg.data.get_data() to timeout if it is taking more than a configured amount of time to respond?
Is there any known time period of the day when the API is expected to be slow? We don't encounter above issues if same API with same param are called during the first half of the day or before 3pm UTC.
Answers
-
Thank you for reaching out to us.
Regarding the library's response time, this will depend on the amount of data, the complexity of your request, and the server load. The amount of time is usually a result of processing time in the backend as opposed to the library itself.
To verify what the problem is, you may need to enable the debug log in the library by using the following code before calling the open_session method.
config = ld.get_config()
config.set_param("logs.transports.file.enabled", True)
config.set_param("logs.transports.file.name", "lseg-data-lib.log")
config.set_param("logs.level", "debug")With these configurations, the library will create a lseg-data-lib.log file. We could verify the behavior of the library via this log file.
1 -
For responses taking too much time, is there a way to timeout/cancel such requests? We have observed that when the response time is unusually long (say 15 minutes to 1 hour), the response contains incomplete data (some of the requested fields are empty). The same request when send at a different time completes in 2 min and contains complete data.
If the requests would timeout if taking more than usual time, we could do a retry. Is this possible within Lseg.data library or we need to handle at our/caller side (discard the request after a configured time lapse and start a new one)
0 -
We observed the lseg.data.get_data() responding back with "Asynchronous Query library internal error" for every request from the night of 17/01/2025 onward. The same requests were working fine earlier (before the night of 17/01/2025) and when checked today, they are working fine.
Our requests are straight forward, we request for either prices or descriptive data for a specific set of bonds (around 5000) or equities (around 6000). We request in batches of 500 securities (ISIN) at a time.
Below are some library debug logsAll requests done on the night of 17/01/2025 and morning/noon of 18/01/2025 failed with the error
"Asynchronous Query library internal error".
20250118-0459-145868-lseg-data-lib.log → Price field request for 500 ISINs with failed response.
20250118-0500-144808-lseg-data-lib.log → Price field request for 4 ISINs with failed response.
20250120-0353-146420-lseg-data-lib.log → Price field request for 500 ISINs with successful response.Is this a server load issue? If so can it happen anytime or we have know time period when this is expected?
Can anything be done from our side to avoid/overcome this? 17/01/2025 (night) to 18/01/2025 is a very long period for the API to be unavailable.
0 -
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 250 ETA
- 555 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 643 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛