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
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
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'])