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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
1 0 1 1

Bond data retrieval

Hi

I have to get for a list of companies their bond data (seniority, duration, yield)

Following code works, but maybe there is a more efficient way to do it, in one request?

Thanks

ric='AAPL.O'

parameters=['TR.FISeniorityTypeDescription','TR.DurationAnalytics','TR.FiMaturityStandardYield']

df, err = ek.get_data(ric,['TR.BondISIN'])

bonds_list=df['Bond ISIN'].to_list()

df, err = ek.get_data(bonds_list,parameters)

df.dropna(how="any", axis=0, inplace=True)

df

get-bond-data.jpg

eikoneikon-data-apipythonbonds
get-bond-data.jpg (74.3 KiB)
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.

0 Answers

Click below to post an Idea Post Idea