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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
21 2 1 5

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-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonpricing
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

Upvotes
Accepted
39.2k 75 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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea