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

Multi-Symbol not working

Open heekah7 opened this issue 7 years ago • 1 comments

ProjectF/node_modules/yahoo-finance/lib/historical.js:28 throw new Error('"options.symbol" must be a non-empty string.'); ^

Error: "options.symbol" must be a non-empty string.

heekah7 avatar Dec 06 '17 17:12 heekah7

you need to pass in an array. await yahooFinance.historical({ symbols: ['tsla', 'aapl'], from: prevDate.toISOString().slice(0, 10), to: estDateNow.toISOString().slice(0, 10) })

FirstPotatoMan avatar Aug 03 '20 01:08 FirstPotatoMan