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
38 1 0 2

iBoxx infos with Python API

I would like to retrieve the historical asset swap spread from Markit iBoxx, using Python API with the ek.get_data() function.
Example: considering the ISIN DE0006601099 (EUR Corp AA for duration 5-7 years), I would like to now what to put as 'fields', so that

iboxx_idx, err = ek.get_data('DE0006601099', fields, parameters={'SDATE':'2023-05-01'})

would output the asset swap margin for the iBoxx index on the relevant date.
Any idea how to proceed ?
Thanks a lot in advance.

eikon-data-api#technology#contentpython apihistorical
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.

1 Answer

· Write an Answer
Upvotes
Accepted
14.5k 30 5 10

Hi @j.dessain ,

Is this what you're looking for

df, err = ek.get_data(['DE0006601099'], ['TR.ASSETSWAPSPREAD', 'TR.ASSETSWAPSPREAD.date'], parameters={'SDATE':'2023-05-01'})
df

1687755416133.png

You can search for the fields you're interested in using the Data Item Browser application in Eikon Desktop/Refinitiv Workspace. Data Item Browser and Eikon Data API in Python video shows how to use the Data Item Browser in Refinitiv's Workspace to improve Python-based workflows with the Eikon Data API.

For more information regarding the content, you can raise the content ticket via MyRefinitiv and the content specialist is going to contact you directly to assist with this.


1687755416133.png (11.0 KiB)
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.