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

get_quote_data() - Invalid response from server #107

Open
pinnockm opened this issue May 19, 2023 · 1 comment
Open

get_quote_data() - Invalid response from server #107

pinnockm opened this issue May 19, 2023 · 1 comment

Comments

@pinnockm
Copy link

It appears that the get_quote_data function from the stock_info module stopped working recently. Running it for any ticker yields the following AssertionError.

958 
    959     if not resp.ok:
--> 960         raise AssertionError("""Invalid response from server.  Check if ticker is
    961                               valid.""")
    962 

AssertionError: Invalid response from server.  Check if ticker is valid.

I'm thinking that this might be an issue with the Yahoo Finance API. Going through the yahoo_fin docs leads me to this endpoint https://query1.finance.yahoo.com/v7/finance/quote?symbols=NFLX. Which gives the following message.

{"finance":{"result":null,"error":{"code":"Unauthorized","description":"Invalid Crumb"}}}

Are there any work-arounds to this issue? Because get_quote_table doesn't give me the same amount of data that I was previously working with while using get_quote_data.
Thanks

@eriknh
Copy link

eriknh commented May 26, 2023

Looks like Yahoo is moving to a paid model for Finance API access: https://docs.google.com/forms/d/e/1FAIpQLSeyb7xMtZFjoNYI7XG1rjlhUopKAxdLAfSRcaPxg9p-9ii-_g/viewform

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