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

exchange and timezone not available #86

Open
MrZoidberg opened this issue Feb 26, 2025 · 3 comments
Open

exchange and timezone not available #86

MrZoidberg opened this issue Feb 26, 2025 · 3 comments

Comments

@MrZoidberg
Copy link

Getting this exception, but I don't understand why it's happening.

Here is my code:

import yfinance_cache as yf
ticker_obj = yf.Ticker("VBIAX")

Exception:

  File "c:\Projects\[reducted]\.venv\Lib\site-packages\yfinance_cache\yfc_ticker.py", line 70, in __init__
    exchange, tz_name, lday = self._getExchangeAndTzAndListingDay()
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Projects\[reducted]\.venv\Lib\site-packages\yfinance_cache\yfc_ticker.py", line 393, in _getExchangeAndTzAndListingDay
    raise Exception(f"{self._ticker}: exchange and timezone not available")
Exception: VBIAX: exchange and timezone not available

Version: yfinance-cache = "^0.7.3"

@ValueRaider
Copy link
Owner

Just above the exception did you see text starting with line - info:?

Do you have latest yfinance?

@MrZoidberg
Copy link
Author

I have yfinance 0.2.54. I didn't notice anything else, but can try to replicate it.

@ValueRaider
Copy link
Owner

print("- info:") ; print(i)
raise Exception(f"{self._ticker}: exchange and timezone not available")

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

2 participants