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

getSymbols yahoo v8 hour/minute resolution data #351

Closed
IanWorthington opened this issue Dec 17, 2021 · 4 comments · Fixed by #381
Closed

getSymbols yahoo v8 hour/minute resolution data #351

IanWorthington opened this issue Dec 17, 2021 · 4 comments · Fixed by #381

Comments

@IanWorthington
Copy link

Has anyone considered modifying getSymbols.yahoo to access the 1 hour and 1 minute data provided by the v8 chart api, eg:

https://query1.finance.yahoo.com/v8/finance/chart/TSLA?interval=1m&interval=max

iiuc data history is limited but it would still be useful to have access to it.

@ethanbsmith
Copy link
Contributor

interesting. this looks similar to the older yahoo api. it might have some advantages:

  1. seems to support daily data
  2. doesn't seem to need the crumb cruft
  3. can bring in splits and divies in a single call alongside with OHLCVA

that said, i wonder if the data under the hood is any better. is it worth putting effort into this?

https://query1.finance.yahoo.com/v8/finance/chart/TSLA?symbol=TSLA&period1=1330326000&period2=1639776168&useYfid=true&interval=1d&includePrePost=true&events=div%7Csplit%7Cearn

@IanWorthington
Copy link
Author

I'm certainly keen on getting access to finer resolution data.

What's the crumb cruft?

@kapsner
Copy link
Contributor

kapsner commented Apr 18, 2023

As this issue seemed to be yet unsolved, I've implemented the feature to query minute-resolution intraday data from yahoo api for the last 7 days (allowed maximum) (see PR #381 ).

This can be tested with

remotes::install_github("kapsner/quantmod")
quantmod::getSymbols("AAPL", periodicity = "intraday")
quantmod::chartSeries(AAPL)

Does this meet your requirements, @IanWorthington ?

@IanWorthington
Copy link
Author

As this issue seemed to be yet unsolved, I've implemented the feature to query minute-resolution intraday data from yahoo api for the last 7 days (allowed maximum) (see PR #381 ).

This can be tested with

remotes::install_github("kapsner/quantmod")
quantmod::getSymbols("AAPL", periodicity = "intraday")
quantmod::chartSeries(AAPL)

Does this meet your requirements, @IanWorthington ?

I shall take a look at it! Many thanks!

joshuaulrich added a commit that referenced this issue Jul 30, 2023
Fixes #351. See #381.

Co-authored-by: Joshua Ulrich <josh.m.ulrich@gmail.com>
joshuaulrich added a commit that referenced this issue Jul 31, 2023
The original implementation only exposed the 1-minute periodicity
value. This exposes all the other possible values Yahoo Finance makes
available.

See #351. See #381.
@joshuaulrich joshuaulrich added this to the Release 0.4.25 milestone Aug 21, 2023
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 a pull request may close this issue.

4 participants