I am trying the following, but it is not finding the field and fills the dataframe with <NA>s
df = ek.get_timeseries(
'US5YT=RR',
fields = ['TR.CLEANPRICE']
)
display(df)
Hi @Rana.Mallah ,
I'd like to add that to get the historical data of clean price, the parameters of start date (SDate) and end date (EDate) can be added into the get_data function, please find an example code below
parameters={'SDate':'2021-09-01', 'EDate':'2021-09-20'}
df, err = ek.get_data('US5YT=RR', fields = ['TR.CLEANPRICE.date', 'TR.CLEANPRICE'] , parameters = {'SDate':'-10D', 'EDate':'0D'})df