Hi @maes.michel ,
Thank you for your patience, you can use the field named TR.F.TotRevenue, which does offer period average FX rate option for currency conversion.
ek.get_data('IBM.N',['TR.F.TotRevenue.date','TR.F.TotRevenue'], {'SDate':'2021-09-08','Period':'FY0','Curn':'EUR', 'FXRate':'PeriodAvg'})
@Alex Putkov.1, thank you for an advice.
Data Item Browser can help you to know proper parameter that can be used in each field (Data Item). You may follow these steps (here's the screenshot of DIB eikon-revenue-01.jpg)
TR.Revenue(SDate=0,EDate=-1,Period=FY0,Frq=FY,Curn=EUR)
df, err = ek.get_data(instruments = ['AAPL.O'] , fields = ['TR.Revenue', 'TR.Revenue.date'] , parameters = {'SDate':'0', 'EDate':'-1','Period':'FY0','Frq':'FY','Curn':'EUR'})display(df)
here's the output
eikon-revenue-output.jpg
hope this could help
Dear Raksina,
Thanks for the reply, but I have a different issue. I frequently use the DIB, but it does not say how to handle currency conversion by the average FX-rate over the entire period(just like in the desktop)
So if the the revenue is quarterly based, I'd like to convert the data by the average and not the closing or cross-rate of that period.
The folowing command will give me the currency conversion by the latest date:
TR.RevenueActValue(SDate=2021-09-08,Period=FY0,Curn=EUR, FXRateEst=Latest)
What parameter is needed to convert to the average FX-Rate of a period?
FXRateEst=????
Kind regards,
Michel
This is exactly, what I was looking for! Thx!