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
1 1 1 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-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apiricstime-seriesbondsisin
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.

Hello @daniele.bonanomi,

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

If yes, please click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

-AHS

@daniele.bonanomi

Hi,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

Upvote
Accepted
18.2k 21 13 21

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 512.0 KiB each and 1.0 MiB total.

Upvotes
1 1 1 1

Thank you for your help!

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.