How to get close price in USD eikon data api ?

I am extracting futures data from different exchanges and would want the Prices to be in USD for all of them.

I am using the following code. How do I ensure that the prices are in USD.

df = ek.get_timeseries(['YAPc1'],['Open','Close','High','Low'],start_date = "2006-01-01", interval = 'daily', calendar = 'tradingdays')

Best Answer

  • Hi @ravi_ranjan

    Here is the sample:

    The first API call is using get_timeseries

    The second API call is using get_data with identical data point.

    The third API call is using get_data and convert data point to USD

    image


Answers