Getting this error:
EikonError: Error code -1 | Server returns error. Please try again |
When pulling data via python using get_timeseries()
Any known issues on the backend?
What are possible solution the user can implement to overcome the error?
What dies the error code mean?
@JPO So yes this is backend error message which could be generated by a number of scenarios - when using the get_timeseries service its best to code defensively such as trapping errors and representing the api call if it fails for example. ie a try-except block.
We have a newer historical pricing service using our Refintiv Data Platform libraries - here is an example of how you could use it. Firstly, pip install refinitiv.dataplatform library.
import refinitiv.dataplatform as rdp rdp.open_desktop_session('Your App Key Here') rdp.get_historical_price_summaries('VOD.L',rdp.Intervals.ONE_MINUTE, count=10000)
This newer service has an expanded datamodel compared to the very limited get_timeseries OHLCVC datamodel. This new service cannot deliver economic indicators at present but does for nearly all instruments. So please give this a go - it is definitely better and more solid service in my opinion. There are some differences as well such as adjusted prices are default with the RDP service but you can change that using parameters in the API call. Please look at the API Playground for further details searching for historical pricing or open up the codebook app (type codebook into eikon search bar) and look at examples where there are many historical pricing python examples.
I hope this can help.