-
Notifications
You must be signed in to change notification settings - Fork 123
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
How to get historical data of last hour #77
Comments
Not sure if this is possible, but keep an eye on #76. Otherwise maybe through the chart data but we don't have an API for that (yet). |
d - day
|
@jasonjason1207 if you look a few lines further down you'll see: // Convert to yahoo v7 API
switch (options.period) {
case 'd': options.period = '1d'; break;
case 'w': options.period = '1wk'; break;
case 'm': options.period = '1mo'; break;
case 'v': options.period = '1d'; options.events = 'div'; break;
// No default case needed, options are sanitized above.
} So actually the 'v' option is from the previous Yahoo API but was kept for consistency so as to not introduce a breaking change into the current major version of node-yahoo-finance. It sets the period to
Not in the history request, but you can map this later to a If you're just starting off, check out https://github.com/gadicc/node-yahoo-finance2 which is the beta release of what will likely be our next major release. The |
How can i get historical data of last hour?
The text was updated successfully, but these errors were encountered: