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

Multi-Symbol not working #55

Open
heekah7 opened this issue Dec 6, 2017 · 1 comment
Open

Multi-Symbol not working #55

heekah7 opened this issue Dec 6, 2017 · 1 comment

Comments

@heekah7
Copy link

heekah7 commented Dec 6, 2017

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
Copy link

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

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

No branches or pull requests

2 participants