opened 05:42PM - 09 Oct 21 UTC
closed 08:07PM - 15 Jun 22 UTC
In [33]: nsepython.nse_quote_ltp('M&M', 'latest', 'Fut')
----------------------…-----------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-33-3f88d6ec6e90> in <module>
----> 1 nsepython.nse_quote_ltp('M&M', 'latest', 'Fut')
c:\users\<>\appdata\local\programs\python\python38\lib\site-packages\nsepython\rahu.py in nse_quote_ltp(symbol, expiryDate, optionType, strikePrice)
192
193 if(expiryDate=="latest") or (expiryDate=="next"):
--> 194 dates=list(set((payload["expiryDates"])))
195 dates.sort(key = lambda date: datetime.datetime.strptime(date, '%d-%b-%Y'))
196 if(expiryDate=="latest"): expiryDate=dates[0]
KeyError: 'expiryDates'