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
23 0 0 2

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())

eikon-data-apiworkspace#technologypython api
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.

1 Answer

· Write an Answer
Upvotes
Accepted
23 0 0 2

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


Question: solved

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.