Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error get stock data for EXTO #2343

Open
tamireiny opened this issue Mar 4, 2025 · 0 comments
Open

Error get stock data for EXTO #2343

tamireiny opened this issue Mar 4, 2025 · 0 comments

Comments

@tamireiny
Copy link

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 version

0.2.54

Python version

3.11

Operating system

Windows 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant