You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have tried to get the stock data of ticker EXTO for example:
ticker_data = yfinance.Ticker(ticker)
and when I run :
ticker_info_data = ticker_data .info
I get the following error:
Traceback (most recent call last):
File "G:\stock_miner_v1.0\venv_python_3p11\Lib\site-packages\IPython\core\interactiveshell.py", line 3508, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
ticker_info.info
File "G:\stock_miner_v1.0\venv_python_3p11\Lib\site-packages\yfinance\ticker.py", line 159, in info
return self.get_info()
^^^^^^^^^^^^^^^
File "G:\stock_miner_v1.0\venv_python_3p11\Lib\site-packages\yfinance\base.py", line 232, in get_info
data = self._quote.info
^^^^^^^^^^^^^^^^
File "G:\stock_miner_v1.0\venv_python_3p11\Lib\site-packages\yfinance\scrapers\quote.py", line 508, in info
self._fetch_info(self.proxy)
File "G:\stock_miner_v1.0\venv_python_3p11\Lib\site-packages\yfinance\scrapers\quote.py", line 618, in _fetch_info
result[quote]["result"][0]["symbol"] = self._symbol
~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
Traceback (most recent call last):
File "G:\stock_miner_v1.0\venv_python_3p11\Lib\site-packages\IPython\core\interactiveshell.py", line 3508, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
ticker_info.info
File "G:\stock_miner_v1.0\venv_python_3p11\Lib\site-packages\yfinance\ticker.py", line 159, in info
return self.get_info()
^^^^^^^^^^^^^^^
File "G:\stock_miner_v1.0\venv_python_3p11\Lib\site-packages\yfinance\base.py", line 232, in get_info
data = self._quote.info
^^^^^^^^^^^^^^^^
File "G:\stock_miner_v1.0\venv_python_3p11\Lib\site-packages\yfinance\scrapers\quote.py", line 508, in info
self._fetch_info(self.proxy)
File "G:\stock_miner_v1.0\venv_python_3p11\Lib\site-packages\yfinance\scrapers\quote.py", line 618, in _fetch_info
result[quote]["result"][0]["symbol"] = self._symbol
~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
Bad data proof
No response
yfinance version
0.2.54
Python version
3.11
Operating system
Windows 11
The text was updated successfully, but these errors were encountered:
Describe bug
Hello, I have tried to get the stock data of ticker EXTO for example:
ticker_data = yfinance.Ticker(ticker)
and when I run :
ticker_info_data = ticker_data .info
I get the following error:
Traceback (most recent call last):
File "G:\stock_miner_v1.0\venv_python_3p11\Lib\site-packages\IPython\core\interactiveshell.py", line 3508, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
ticker_info.info
File "G:\stock_miner_v1.0\venv_python_3p11\Lib\site-packages\yfinance\ticker.py", line 159, in info
return self.get_info()
^^^^^^^^^^^^^^^
File "G:\stock_miner_v1.0\venv_python_3p11\Lib\site-packages\yfinance\base.py", line 232, in get_info
data = self._quote.info
^^^^^^^^^^^^^^^^
File "G:\stock_miner_v1.0\venv_python_3p11\Lib\site-packages\yfinance\scrapers\quote.py", line 508, in info
self._fetch_info(self.proxy)
File "G:\stock_miner_v1.0\venv_python_3p11\Lib\site-packages\yfinance\scrapers\quote.py", line 618, in _fetch_info
result[quote]["result"][0]["symbol"] = self._symbol
~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
Simple code that reproduces your problem
ticker = "EXTO"
ticker_data = yfinance.Ticker(ticker)
ticker_info_data = ticker_data .info
Debug log from yf.enable_debug_mode()
Traceback (most recent call last):
File "G:\stock_miner_v1.0\venv_python_3p11\Lib\site-packages\IPython\core\interactiveshell.py", line 3508, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
ticker_info.info
File "G:\stock_miner_v1.0\venv_python_3p11\Lib\site-packages\yfinance\ticker.py", line 159, in info
return self.get_info()
^^^^^^^^^^^^^^^
File "G:\stock_miner_v1.0\venv_python_3p11\Lib\site-packages\yfinance\base.py", line 232, in get_info
data = self._quote.info
^^^^^^^^^^^^^^^^
File "G:\stock_miner_v1.0\venv_python_3p11\Lib\site-packages\yfinance\scrapers\quote.py", line 508, in info
self._fetch_info(self.proxy)
File "G:\stock_miner_v1.0\venv_python_3p11\Lib\site-packages\yfinance\scrapers\quote.py", line 618, in _fetch_info
result[quote]["result"][0]["symbol"] = self._symbol
~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
Bad data proof
No response
yfinance
version0.2.54
Python version
3.11
Operating system
Windows 11
The text was updated successfully, but these errors were encountered: