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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
21 2 3 4

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

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
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.

1 Answer

Upvotes
Accepted
39.2k 75 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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea