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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
98 10 21 27

get_timeseries for FX rates.

Hey, is it possible to use FX rates (such as 'EUR=') in get_timeseries()?

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.

1 Answer

Upvote
Accepted
7.6k 15 6 9

@aquilesjlp300

I can use get_timeseries with EUR=. See the following codes + output.

import eikon as ek
import pandas as pd
ek.set_app_key('<your app key>')
try:
    data = ek.get_timeseries('EUR=', start_date='2019-01-10', end_date='2019-07-07') 
    print(data.tail)
    print(data.head)
except ek.EikonError as error:
    print(error


capture.jpg (128.8 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.

Thanks a lot! The reason why I was asking, and I forgot to say, is that while testing for company RICs, I was wondering if I could get the values of the fields in different currencies such as USD.

Not sure if that's possible but I'll ask in another question anyways.

Click below to post an Idea Post Idea