For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
1 0 0 1

If I want to retrieve weekly closing yield data for a series of government bonds using the function ek.get_timeseries in the Python API, on which value should I set the parameter Fields?

python apitimeseries
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvote
18k 21 12 20

Hi @angelo.cataldo

If you don't pass in the field parameter, by default, the ek.get_timeseries() will request all fields for you.

I think that should work as well.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
1 0 0 1

@chavalit-jintamalit Yes, but will those displayed be yields? I’m working w/ sovereign bonds, as I said. Thanks

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvote
39 1 0 4

Hi @angelo.cataldo ,

In addition to the information that @chavalit-jintamalit provided:

Although I am not a content expert, the field CLOSE in ek.get_timeseries() for government bonds seems to be the yield to maturity. See below the output:

1638270834953.png


For comparison, below is the output for Yield to Maturity (0.333428) and Close Date (2021-11-29) from Data Item Browser(DIB) which are the same as above.

1638270913261.png


1638270946419.png


In general, to look for values which could be potentially used in ek.get_data() or ek.get_timeseries() function you can refer to DIB section in Workspace.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

missed attachments from the comment above

1638271509750.png

1638271475347.png

1638271475347.png (32.6 KiB)
1638271509750.png (41.8 KiB)
Click below to post an Idea Post Idea