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

Yahoo Finance widget will not load data #291

Open
chrislee35 opened this issue Feb 13, 2025 · 0 comments
Open

Yahoo Finance widget will not load data #291

chrislee35 opened this issue Feb 13, 2025 · 0 comments

Comments

@chrislee35
Copy link

current yfinance version 0.2.52 API no longer has yf.pdr_override(). I can work around this issue by pinning version yfinance==0.2.38.
Please update orangecontrib/timeseries/datasources.py to use the new API.

Replace

    yf.pdr_override()
    f = pdr.get_data_yahoo(symbol, since, until)

With

  dat = yf.Ticker(symbol)
  dat.history(start=since, end=until)

There are 2 new columns, and it dropped the Adj Close column.

Before

                  Open        High         Low       Close   Adj Close    Volume
Date                                                                            
2020-01-02  158.779999  160.729996  158.330002  160.619995  153.630707  22622100
2020-01-03  158.320007  159.949997  158.059998  158.619995  151.717728  21116200

After

                                 Open        High         Low       Close    Volume  Dividends  Stock Splits
Date                                                                                                        
2020-01-02 00:00:00-05:00  151.870762  153.735906  151.440346  153.630692  22622100        0.0           0.0
2020-01-03 00:00:00-05:00  151.430809  152.989871  151.182113  151.717743  21116200        0.0           0.0
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