How to fetch old expiry dates using python sdk?
-
Hi,
For backtesting a banknifty strategy I need to know the ltp of a particular strike price. And also I have required the token, symbol and expiry date for getting ltp. But I don not know how to get old expiry dates.
Please show me the way how to get it.
Thank you.
-
@Mitrajit use underlying instrument
like nifty index instead of nifty future or options
similarly use SBIN-EQ instead of SBIN future or options -
Hwllo @Mitrajit
As of now we are not providing the historical data of expired contract but for live contracts you can use the quote(Market Data API) or GetLtpData API
Regards,
SmartAPI Team