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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Daniele avatar image
1 1 0 1

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-apipythonworkspaceworkspace-data-apirefinitiv-dataplatform-eikonricstime-seriesbondsisin
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

chavalit-jintamalit avatar image
18.1k 21 12 20

Hi @daniele.bonanomi

Please try this code:


ahs.png (23.0 KiB)
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Daniele avatar image
1 1 0 1

Thank you for your help!

10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.