Hi, I need to get historical data for a 1000 rics, I built a For loop to get the data one at a time for each Ric. However, I had some new issues. A lot of the rics not returning data. However if I search the rics in reuters, they do come up with data so they are valid rics. For example USD1MD=UBTA, USD1MD=HVBG return error messages in the codes below. Some rics do work well in the code below. For example USD1MD=LOYL, USD1MD=VBAH work well.
See my code below and error message below.
The ContributorRics ['1M'] includes the rics mentioned above and the ones shown in the error message below.
code:
---------------------------------------------------------------------------
ric_dict=dict()
for ric in ContributorRics['1M']:
try:
data_sr = ek.get_timeseries(ric,start_date='2021-02-01',end_date='2021-03-2',fields='CLOSE').squeeze()
data_sr = data_sr.drop_duplicates()
ric_dict[ric]=data_df
except:
print(ric)
print("Unexpected error:", sys.exc_info()[0])
continue
------------------------------------------------------------------------------------------
Below is the list of Rics that returns errors: USD1MD=UBTA, USD1MD=HVBG etc
USD1MD=BOGF Unexpected error: <class 'eikon.eikonError.EikonError'> USD1MD=UBTA Unexpected error: <class 'eikon.eikonError.EikonError'> USD1MD=LBWX Unexpected error: <class 'eikon.eikonError.EikonError'> USD1MD=HVBG Unexpected error: <class 'eikon.eikonError.EikonError'> USD1MD=BERA Unexpected error: <class 'eikon.eikonError.EikonError'> USD1MD=NDEA Unexpected error: <class 'eikon.eikonError.EikonError'> USD1MD=DGZF Unexpected error: <class 'eikon.eikonError.EikonError'> USD1MD=BILX Unexpected error: <class 'eikon.eikonError.EikonError'> USD1MD=BUMZ Unexpected error: <class 'AttributeError'> USD1MD=FBIT Unexpected error: <class 'AttributeError'> USD1MD=BIIA Unexpected error: <class 'eikon.eikonError.EikonError'> USD1MD=SCNN Unexpected error: <class 'eikon.eikonError.EikonError'> USD1MD=STKN Unexpected error: <class 'eikon.eikonError.EikonError'> USD1MD=SCGH Unexpected error: <class 'eikon.eikonError.EikonError'> USD1MD=SCCI Unexpected error: <class 'eikon.eikonError.EikonError'> USD1MD=VIBD Unexpected error: <class 'eikon.eikonError.EikonError'> USD1MD=SCGM Unexpected error: <class 'eikon.eikonError.EikonError'> USD1MD=NXIP Unexpected error: <class 'AttributeError'> USD1MD=ALFT Unexpected error: <class 'AttributeError'> USD1MD=ACLB Unexpected error: <class 'eikon.eikonError.EikonError'> EUR1MD=BOGF Unexpected error: <class 'eikon.eikonError.EikonError'> EUR1MD=VBAH Unexpected error: <class 'eikon.eikonError.EikonError'> EUR1MD=KBCB Unexpected error: <class 'eikon.eikonError.EikonError'>