hey guys, I'm trying to run the following lines:
import refinitiv.data as rd
rd.open_session()
trading_instrument = 'ESc1'
prices = rd.get_history(
universe = trading_instrument,
fields=['TRDPRC_1'],
start = "1997-01-01",
end = "2024-07-31",
)
prices = prices.loc[:,~prices.columns.duplicated()]
prices
and now I'm getting the following errors:
---------------------------------------------------------------------------
RDError Traceback (most recent call last)
Cell In[41], line 2
1 trading_instrument = 'ESc1'
----> 2 prices = rd.get_history(
3 universe = trading_instrument,
4 fields=['TRDPRC_1'],
5 start = "1997-01-01",
6 end = "2024-07-31",
7 )
8 prices = prices.loc[:,~prices.columns.duplicated()]
File ~\AppData\Local\anaconda3\Lib\site-packages\refinitiv\data\_access_layer\get_history_func.py:206, in get_history(universe, fields, interval, start, end, adjustments, count, use_field_names_in_headers, parameters)
204 if exceptions and all(exceptions):
205 except_msg = "\n\n".join(exceptions)
--> 206 raise RDError(-1, except_msg)
208 if not any({adc_data, hp_data, cust_inst_data}):
209 return DataFrame()
RDError: Error code -1 | No data to return, please check errors: ERROR: No successful response. (403, {"ErrorCode":1401,"ErrorMessage":"Application id RD-PYTHON-LIB is invalid"})
Last night it did execute it and pulled out data normally, but this time I got that error. Does anyone know how to sort this out?? I'd much appreciate any help.
Thanks,
Ernesto