Closed sunnysaxena closed 3 months ago
KeyError Traceback (most recent call last) Cell In[31], line 1 ----> 1 yca.option_chain()
File ~/anaconda3/envs/prepJob/lib/python3.11/site-packages/yfinance/ticker.py:98, in Ticker.option_chain(self, date, tz) 94 date = self._expirations[date] 95 options = self._download_options(date) 97 return _namedtuple('Options', ['calls', 'puts', 'underlying'])(**{ ---> 98 "calls": self._options2df(options['calls'], tz=tz), 99 "puts": self._options2df(options['puts'], tz=tz), 100 "underlying": options['underlying'] 101 })
KeyError: 'calls'
KeyError Traceback (most recent call last) Cell In[31], line 1 ----> 1 yca.option_chain()
File ~/anaconda3/envs/prepJob/lib/python3.11/site-packages/yfinance/ticker.py:98, in Ticker.option_chain(self, date, tz) 94 date = self._expirations[date] 95 options = self._download_options(date) 97 return _namedtuple('Options', ['calls', 'puts', 'underlying'])(**{ ---> 98 "calls": self._options2df(options['calls'], tz=tz), 99 "puts": self._options2df(options['puts'], tz=tz), 100 "underlying": options['underlying'] 101 })
KeyError: 'calls'