pilwon / node-yahoo-finance

Yahoo Finance historical quotes and snapshot data downloader written in Node.js
488 stars 123 forks source link

Multi-Symbol not working #55

Open heekah7 opened 6 years ago

heekah7 commented 6 years ago

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.

FirstPotatoMan commented 3 years ago

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) })