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

question

Upvotes
Accepted
1 0 1 2

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 512.0 KiB each and 1.0 MiB total.

Upvote
Accepted
384 4 5 9

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 512.0 KiB each and 1.0 MiB total.

missed attachments from the comment above

1638271509750.png

1638271475347.png

1638271475347.png (32.6 KiB)
1638271509750.png (41.8 KiB)
Upvote
18.2k 21 13 21

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 512.0 KiB each and 1.0 MiB total.

Upvotes
1 0 1 2

@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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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