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
3 0 1 3

How do I get historical bond data over longer periods?

Hi,

I am looking to get historical data on bonds (Yield and Price) going back ten years, or even more. Ideally on a monthly basis, at the end-of-month. The results I got only date back to 2021.


I've been trying with the following code:


import refinitiv.data as rd

import refinitiv.data.content.ipa.financial_contracts as rdf

from refinitiv.data.content.ipa.financial_contracts import Definitions

from refinitiv.data.content.ipa.financial_contracts import bond

history = rd.get_history(universe=['DE1MT=RR', 'DE3MT=RR', 'DE6MT=RR', 'DE1YT=RR','DE2YT=RR', 'DE5YT=RR', 'DE10YT=RR', 'DE30YT=RR'],

fields=["DIRTY_PRC"],

interval='monthly',

start="2008-03-01",

end="2023-06-30")

history


Other than the fields, which I still have to work out, I'm not able to tell what I did wrong.

Any suggestions on how to tackle this problem? Thanks in advance!

refinitiv-dataplatform-eikon#contentbondsprice-history
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
Upvote
Accepted
79.2k 251 52 74

@brieg.hielscher

Thank you for reaching out to us.

I checked with the Eikon Chart app. It can display the data (Dirty Price) from 30-Nov-2021 to 31-Aug-2023.

1691469134212.png

It could be a content question. Please contact the content support team directly via MyRefinitiv to verify the content.


1691469134212.png (41.5 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.