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

Update X-RapidAPI-Host to yh-finance.p.rapidapi.com #1060

Merged
merged 2 commits into from
May 20, 2022

Conversation

billpwchan
Copy link
Contributor

As shown in the latest YH Finance API page, the X-RapidAPI-Host has been changed from apidojo-yahoo-finance-v1.p.rapidapi.com to yh-finance.p.rapidapi.com. A related discussion can be found in #931.

Updating obsoleted URL to the new one to avoid 403 error when trying to get the stock chart from this API.

As shown in the latest YH Finance API page, the X-RapidAPI-Host has been changed from apidojo-yahoo-finance-v1.p.rapidapi.com to yh-finance.p.rapidapi.com. Updating obsoleted URL to the new one to avoid 403 error when trying to get the stock chart from this API.
@lowlighter
Copy link
Owner

Nice debug!

LGTM, can you also patch the mocked data:

if (/^https:..apidojo-yahoo-finance-v1.p.rapidapi.com.stock.v2.*$/.test(url)) {

So it can pass tests too ?

@billpwchan
Copy link
Contributor Author

@lowlighter Yeap I've changed the test file too! Seems working now~

@lowlighter lowlighter merged commit 0e80df9 into lowlighter:master May 20, 2022
@lowlighter
Copy link
Owner

Thanks a lot for your contribution 🎉 !

@github-actions github-actions bot locked and limited conversation to collaborators Jun 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants