node-yahoo-finance icon indicating copy to clipboard operation
node-yahoo-finance copied to clipboard

Enable smaller "period" increments

Open bwasti opened this issue 3 years ago • 1 comments

Yahoo's API supports minute-level timescales for historical quotes.

bwasti avatar Mar 12 '21 14:03 bwasti

Thanks for the PR, @bwasti.

Can you give us some more context on this? Where did you see these timescales in use?

We based historical on the "Historical Data" tab, e.g. https://finance.yahoo.com/quote/TSLA/history?p=TSLA.

The dropdown there only offers "daily", "weekly" or "monthly".

If I try manually use any of the timescales you're adding, I get an HTTP 422 ERR_INVALID_RESPONSE.

e.g. https://query1.finance.yahoo.com/v7/finance/download/TSLA?period1=1584454014&period2=1615990014&interval=90m&events=history

gadicc avatar Mar 17 '21 14:03 gadicc