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)
Upgrade from Eikon -> Workspace. Learn about programming differences.
For a deeper look into our Eikon Data API, look into:
Overview | Quickstart | Documentation | Downloads | Tutorials | Articles
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,
Thank you for your participation in the forum.
Is the reply below satisfactory in answering your question?
If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question.
Otherwise please post again offering further insight into your question.
Thanks,
AHS
Hello @Rana.Mallah ,
Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.
Thanks,
-AHS
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