Error code -1|Timed out - We are experiencing this issue on European power spot day ahead auction...
... prices (i.e., ‚EHLDE01“ for Germany and for other markets and hours as well).
The last RICs requested was for Spain I believe, here are the RICs:
OMELES01
OMELES02
OMELES03
OMELES04
OMELES05
OMELES06
The start and end date for this instance was from 18/06/2023 to 03/07/2023.
What is odd in my case is that this code runs this query for multiple countries, always one at a time and for each hour of the day. As I have been checking the countries that get_history() has been successful within each code run and this number varied. Meaning that first I run the code, the error came after 3 countries have been queried (in for loop one country at the time), then the second time 5 countries were successful, then 2, and so on. Error was still the same just different amounts of countries were obtained.
I am using Refinitv.data library in python. I ran rd.open_session() with my Refinitiv Eikon app logged on and then rd.get_history() method as you can see.\
Thank you in advance.
Best Answer
-
It is a Refinitiv Data Library configuration file (refinitiv-data.config.json).
To use it, please refer to the example on GitHub.
You can also try to increase the timeout.
{
"http": {
"request-timeout": 60
},
"logs": {
"level": "debug",
"transports": {
"console": {
"enabled": false
},
"file": {
"enabled": true,
"name": "refinitiv-data-lib.log"
}
}
},
"sessions": {
"default": "desktop.workspace",
...Please make sure that you are using the latest version of Refinitiv Data Library (refinitiv-data 1.3.0).
0
Answers
-
Thank you for reaching out to us.
I can run it properly.
code_list=["OMELES01","OMELES02","OMELES03","OMELES04","OMELES05","OMELES06"]
temp = rd.get_history(universe=code_list,
fields=["TRDPRC_1"],
start="2023-06-18",
end="2023-07-03")
tempYou may need to enable logging in the API to verify what the problem is.
{
"logs": {
"level": "debug",
"transports": {
"console": {
"enabled": false
},
"file": {
"enabled": true,
"name": "refinitiv-data-lib.log"
}
}
},0 -
Hi @Jirapongse
Thanks for the update.
The client was referring to the screenshot below
Issues/problems when retrieving prices for multiple countries please try the code I have attached and the below script:
Can you please advise me further on the second part of your response as to how to enable logging into API? I don't quite know how to use the code you have provided.
Thanks in advance.
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
- 689 Datastream
- 1.4K DSS
- 627 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 559 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 24 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 279 Open PermID
- 45 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 708 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
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 96 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛