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

Getting a result in excel but not in python

I am trying to get a rate for a specfic instrument and a specific date and while I do get the expected result in excel, meanwhile in Python in get N/A. Am I using the wrong fields? excel.pngpython.png

#technology#contentpython api
excel.png (19.7 KiB)
python.png (15.9 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.

1 Answer

· Write an Answer
Upvote
Accepted
18.6k 85 39 63

Hi @daaldana

Try the following code:

import refinitiv.data as rd
...
rd.open_session()
rd.get_history(universe="COP3MOIS=INFV", interval="1D", 
               start="2023-01-18", end="2023-02-18")

1693010100688.png


1693010100688.png (29.7 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.