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 to Stock Quote History v8 #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Update to Stock Quote History v8 #13

wants to merge 3 commits into from

Conversation

manoelcampos
Copy link

@manoelcampos manoelcampos commented Dec 6, 2019

Update to the new Stock Quote History v8 API

The new API version enables getting a stock quote history directly from the browser, by just typing some URL such as this one.

That makes it easier to check results, since there is no need to deal with cookies.
Some tests are failing because the version 7 of the API is returning slightly different values than version 8. Those results are stored in files at src/test/resources/quotes/, which are used for tests.

Fix Multiple Stocks Request

When multiple stocks are provided and the query fails for one of them, all the results got from the other stocks were being
discarded. Now, if a request for one stock fails, successful response are accordingly concatenated.

The new API version enables getting a stock quote history directly from the browser,
by just typing some URL such as below:
https://query1.finance.yahoo.com/v8/finance/chart/MGLU3.sa?period1=1575158400&period2=1575504000&interval=1d&events=history&crumb=VzVqQTpsL8n

That makes it easier to check results, since there is no need to deal with cookies.
- Updates morpheus-viz to 0.9.21 since version 0.9.16 is not available at Maven Central.
- Bump morpheus-yahoo version.
@manoelcampos manoelcampos requested a review from Zavster January 29, 2020 11:21
of them, all the results got from the other stocks were being
discarded.

Now, if a request for one stock fails, successful response
are accordingly concatenated.
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

Successfully merging this pull request may close these issues.

1 participant