I'm using get_timeseries to pull close prices for two RICs. I want to use a relative date (2 years ago) for example for the start date using get_date_from_today. It's saying it's not defined. What should I be defining this as?
Add the following line to your imports before calling get_date_from_today function
from eikon.tools import get_date_from_today
Alternatively call the function without additional imports, but with fully qualified modules
ek.tools.get_date_from_today(100)
Awesome - thanks Alex.
I think you just need to put quotes around "get_data_from_today(150)" ...
Thanks James - Alex hit the nail on the head above... I needed to specify and/or import "eikon.tools" to use that type of functionality