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
21 3 4 6

how to use python to query all live government bonds for different countries?

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-api
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.

Hello @peng.tian

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks,

AHS

@peng.tian, please be informed that a reply has been verified as correct in answering the question, and has been marked as such. Thanks, AHS

1 Answer

· Write an Answer
Upvotes
Accepted
39.4k 77 11 27

You can navigate through the chains of government debt available in Eikon using the Quote app in Eikon and first displaying 0#GOVDEBT chain of chains and then drilling down by double-clicking on the chains within this chain. Once you've arrived to a chain that returns the list of bonds you can retrieve them using get_data method. Here's an example retrieving the RIC, ticker, coupon, maturity and latest bid/ask prices for all active Australian treasuries.

ek.get_data('0#AUTSY=',['TICKER','COUPN_RATE','MATUR_DATE','CF_BID','CF_ASK'])
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.