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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 1 0 0

Get Historical Prices from Bond ISIN

Good morning. I have the ISIN of a bond, for example "XS2029623191", and I want to extract its historical price between two selected dates. I managed to do that on Excel with the following formula, but I am not able to do the same on Python.

RHistory("XS1380394806";"MID_PRICE.Timestamp;MID_PRICE.Close";"START:2021-01-15 END:2021-01-19 CODE:ISIN INTERVAL:1D";;"TSREPEAT:NO CH:Fd";S5)

I tried to get the RIC (which is, in this case, 'IT202962319=') and I followed the example shown in this thread: https://community.developers.refinitiv.com/questions/57879/bond-yields-and-duration.html. However, this is not working.

Thank you very much for your help!

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

Upvote
Accepted
18k 21 12 20

Hi @daniele.bonanomi

Please try this code:


ahs.png (23.0 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.

Upvotes
1 1 0 0

Thank you for your help!

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