-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
getOptionChain can no longer access Yahoo Finance with the URL it uses #407
Comments
Ran into similar issue. My Mboum options data feed simultaneously broke so I wonder if the problem isn't further down the line? Edit: I am also using the yfinance package in Python, not this package |
looks like yahoo is using a crumb in the call. possibly related to what we saw w/ for reference: |
That's it! It works when I add the crumb to the URL. I'll work on getting a patch pushed. |
This should be fixed now. Please install and test with |
It works! `
|
Thanks for verifying the fix! |
I'm still running into this issue after installing from GitHub. |
Still having the error as well, any other suggestions? |
@avhz and @steversteves are you in GDPR countries? @steversteves are you able to use yfinance to import options from yahoo? You say it had the same issue but has since been patched... but yfinance was last updated on Jan-21 and this issue began on Jan-26, 5 days after the last yfinance update. |
@joshuaulrich No, Australia. |
Thanks for getting back! I can't import options no, I get the crumb error, I am completely blocked out of anything option related. I did run your patch it just didn't fix the issue for me and I did try to update quantmod, but again it didn't fix. |
@avhz can you try https://github.com/ranaroussi/yfinance and let me know if it works for you? |
Just looking at this (from the UK) and it's this check If I add a test crumb to the v7 API URL endpoint for options ( e.g. https://query2.finance.yahoo.com/v7/finance/options/%5ESPX?crumb=YdJC5tMaYMS ) then the dataset comes back successfully. |
Description
As of the morning of 26 Jan 2023 CST, there was some change on Yahoo Finance's side where
getOptionChain()
no longer has permission to access the option chain data with the link it uses. I know that it happened early in the morning because my script logs show that it was running as intended until the error popped up.Expected behavior
Here is an example from my logs of before and after the error started occurring:
I tried different symbols and none of them worked. I also checked that the getQuote still works, so the issue is contained to accessing the options chains from Yahoo Finance.
The text was updated successfully, but these errors were encountered: