I'm using the Eikon API in python. Especially I'm trying the get_data method to extract data.
Question 1:
I want to get the close price for an instrument for 1 year and two years ago.
I've tried two calls:
- getData('DANSKE.CO', 'TR.PriceClose', 'SDate'='0D', 'EDate'='-2AY', 'Frq'='AY')
- This returns data in unordered timestamps.
- getData('DANSKE.CO', 'TR.PriceClose.date', 'SDate'='0D', 'EDate'='-2AY', 'Frq'='AY')
- This returns 'None'.
What should I use if I want control over the data returned and not send to many calls to Eikon?
Question :
I have tried to get total return data from Eikon but her I get None in return.
- getData('DANSKE.CO', 'TR.PriceClose')
- This gives data.
- getData('DANSKE.CO', 'TR.TotalReturn')
- This gives 'None'.
Why?
Most thankful for som help