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

fast_info broken in latest release. #1636

Closed
fahadysf opened this issue Jul 23, 2023 · 3 comments
Closed

fast_info broken in latest release. #1636

fahadysf opened this issue Jul 23, 2023 · 3 comments

Comments

@fahadysf
Copy link

Simple code that reproduces your problem

import yfinance as yf ; print(yf.__version__) 
# outputs 0.2.26
aapl = yf.Ticker('AAPL')
aapl.fast_info

Debug log

Not much to read from debug as FastInfo is simply broken and no request is actually made.

>>> yf.enable_debug_mode()
>>> ticker.fast_info
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/fahad/Code/fintracker/venv/lib/python3.10/site-packages/yfinance/ticker.py", line 142, in fast_info
    return self.get_fast_info()
TypeError: 'FastInfo' object is not callable

Bad data proof

No response

yfinance version

0.2.26

Python version

Python 3.10.10

Operating system

Mac OS 13.4.1(c) + Ubuntu 20.04.6 LTS (same behavior)

@fahadysf
Copy link
Author

Interestingly this works

ticker.fast_info = yf.scrapers.quote.FastInfo(self.yfobj)

@Rogach
Copy link
Contributor

Rogach commented Jul 31, 2023

Looks like commit 1bd819a introduced the regression.

For now replacing .fast_info with .get_fast_info worked for me as a temporary workaround.

Seqv added a commit to Seqv/Sijoitusseurain that referenced this issue Aug 8, 2023
@ValueRaider
Copy link
Collaborator

Fixed in commit 67e81a8

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

3 participants