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-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonforex
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
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 5.0 MiB each and 10.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
9.7k 49 38 60

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea