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

Getting historical timeseries FX Rate

I want to get FXRate for a currency to USD for a list of dates. I want the output as a time-series. I can get it currently for a single date using something like this ek.get_data(["GBP="], ['CF_DATE','CF_CLOSE'])

How to convert this into a date range.

Thanks.

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apiforex
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.

@sayan.bhattacharjee
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 reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.
Thanks,
-AHS

@sayan.bhattacharjee
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 reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.
Thanks,
-AHS

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

Thanks,

AHS

Upvotes
Accepted
4.6k 26 7 22

You need to use ek.get_timeseries for that such as described here

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.

get_timeseries doesn't return any data, I have tried it several times, it works at times and at times it doesn't not sure why, is there any way using the get_data function?

Hi @sayan.bhattacharjee,

Can you be more specific as to the command you are using?

Upvote
17.4k 82 39 63

Hi @sayan.bhattacharjee,

Using the get_timeseries(), this is what I tried:


eikonscripting.png (19.3 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.