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

Upgrades and downgrades dates on site are different than yfinance #1880

Open
tamireiny opened this issue Mar 6, 2024 · 2 comments
Open

Upgrades and downgrades dates on site are different than yfinance #1880

tamireiny opened this issue Mar 6, 2024 · 2 comments

Comments

@tamireiny
Copy link

Describe bug

The Upgrades & Downgrades data returned from yfinance is not the same as data presented on yahoo finance.
Looking at PDD:
image

You can see that the latest data is 01/02/2024, but the list of dates returned by yahoo is:
'2023-08-30,2023-08-30,2023-08-30,2023-08-30,2023-08-30,2023-08-30,2023-05-31,2023-05-30,2023-05-30,2023-05-30,2023-05-30,2023-05-30,2023-05-02,2023-04-25,2023-03-29,2023-03-21,2023-03-21,2023-03-21,2023-03-21,2023-03-02,2023-01-09,2022-11-30,2022-11-29,2022-11-29,2022-11-29,2022-11-29,2022-10-27,2022-10-27,2022-08-31,2022-08-30,2022-08-30,2022-08-30,2022-06-01,2022-05-31,2022-05-16'

It's clear that 1/2/2024, 11/29/2023, 11/7/2023 are missing.

Simple code that reproduces your problem

    ticker_info = build_ticker(ticker)
    ticker_info_data = ticker_info.info
    recommendation_table = ticker_info.get_upgrades_downgrades()

Debug log

II Don't know how to collect

Bad data proof

II Don't know how to collect

yfinance version

0.2.37

Python version

3.8

Operating system

windows

@tamireiny
Copy link
Author

Hi @ValueRaider, What do you think?

@ValueRaider
Copy link
Collaborator

Compare the query YF sends to Yahoo API vs what Yahoo website sends to API.

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