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
98 27 33 36

get_timeseries for FX rates.

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

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.

1 Answer

· Write an 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 512.0 KiB each and 1.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.

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.