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!

Best Answer

  • Alex Putkov.1
    Alex Putkov.1 ✭✭✭✭✭
    Answer ✓

    Use field level parameter rather than request level:

    ek.get_data(['6572707'],['TR.PriceHigh.date','TR.PriceHigh(Curn=USD)',
    'TR.PriceHigh(Curn=JPY)'])