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
21 4 5 6

How to get prices in two different currencies from one request?

Hello,

I know I can get price in USD from the following request:

All_Results,Error = ek.get_data("6572707",["TR.PriceClose"],{"Curn":"USD"})

and I also know I can get price in JPY from the following request:

All_Results,Error = ek.get_data("6572707",["TR.PriceClose"],{"Curn":"JPY"})

My question is, can I get both prices in just one request? Thank you!

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apipricing
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.

Hello @aryer

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query? If yes, please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

@aryer

Hi,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
39.4k 77 11 27

Use field level parameter rather than request level:

ek.get_data(['6572707'],['TR.PriceHigh.date','TR.PriceHigh(Curn=USD)',
                         'TR.PriceHigh(Curn=JPY)'])
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.