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
3 3 5 5

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-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-api
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
18.2k 21 13 21

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 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.