Python Eikon API - Return local EURO currency data

In my request it appears that I get USD data returned, even though I specifically request EUR in the parameters.


Expected behavior: Get EURO data

Actual behavior: Receive USD data


Example code:

import eikon as ek

ek.set_app_key('<REMOVED FOR PRIVACY>')

screener = 'SCREEN(U(IN(Equity(active,public,primary))), IN(TR.CommonName,"ASML Holding NV"), CURN=EUR)'

timeseries_fields = [
"TR.Revenue.date",
'TR.F.TotRevenue',

'TR.F.COGSTot', # Cost of Goods Sold
'TR.F.SGA', # Selling, General en Administrative
'TR.F.RnD', # Research & Development expense, part of SGA
'TR.F.OpExpnTot', # Total operating expense

]

parameters = {

# start and end date,
"SDate": -1, # is last 20 years
"EDate": -1,

"FRQ": "FY", # frequency, full year
"Curn": "EUR", # currency code, USD/EUR
"Scale": 6, # in millions
}

df, e = ek.get_data(screener, timeseries_fields, parameters=parameters)

print(df.transpose())

Best Answer

  • r.fernandez
    Answer ✓

    Answer: not only adjust the currency in the parameter but also in the screener and then it works.


    Question: solved