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

Library no longer works since 18 Feb #3

Closed
HoustonDad opened this issue Feb 23, 2025 · 2 comments
Closed

Library no longer works since 18 Feb #3

HoustonDad opened this issue Feb 23, 2025 · 2 comments

Comments

@HoustonDad
Copy link
Contributor

I've been using this library for years, and we noticed that it stopped pulling tickers on 18 Feb 2025, probably due to a Yahoo change.

    try:
        ticker = await OHLC.fetch(symbol=stockname)
        return ticker
    except Exception as e:
        raise Exception(f"No stock found by the name {stockname}: {e}")
ERROR - Shortname does not exist for spy: No stock found by the name spy: Yahoo Finance API error - Expecting value: line 1 column 1 (char 0)
@ttamg
Copy link
Owner

ttamg commented Feb 24, 2025

Hi @HoustonDad .

I'm not using the library anymore so it's not being maintained, however I did a bit of digging and the Yahoo API now requires a User-Agent in the headers. I've made a quick fix for this and pushed up a new version 0.1.4 to PyPi. Tests seem to pass and it operates now. I hope that does it. Thanks

https://pypi.org/project/yahoo_finance_async/#history

@HoustonDad
Copy link
Contributor Author

Good morning @ttamg!

Thank you so much, confirmed it's working!

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