Dear Team,
What is the python code to source historical 30D volatilities for a ticker?
I have tried with the below code with the lseg-data package, but it's only returning the current 30d vola:
df = ld.get_history(
universe=['AAPL.O'],
fields=['TR.VOLATILITY30D'],
interval= "1D",
end = datetime.datetime.today().strftime("%Y-%m-%d"),
start = (datetime.datetime.today() - timedelta(4*365)).strftime("%Y-%m-%d"))
Thank you