Error code -1|Timed out - We are experiencing this issue on European power spot day ahead auction pr
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
- 6 AHS
- 39 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
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛