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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 1 2

how can I get price data for a month in the currency I want?

Hello? 
I want to receive TR.CLOSEPRICE of '005930.KS' and '000660.KS' by using the'get_data' function of Eikon api. 
I want to receive the closing price from February 25, 2021 to yesterday in USD currency. Is there a way to adjust the parameter? 
In other words, how can I get price data for a month in the currency I want? 
Thank you very much for your hard work.
eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
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
18k 21 12 20

Hi @jijija

You can check the field parameters by using "CODECR" app.

Please type in CODECR on Eikon Search bar and launch the app.

Once you know the parameters, you can follow this sample code:

df, err = ek.get_data(
    instruments = ['005930.KS'],
    fields = ['TR.CLOSEPRICE.Date','TR.CLOSEPRICE'],
    parameters = {'SDate':'2021-02-01','EDate':'2021-02-28','Curn':'USD'}
)

display(df)



ahs.jpg (149.2 KiB)
ahs2.jpg (76.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