-
Notifications
You must be signed in to change notification settings - Fork 69
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
Get current stock price? #23
Comments
Looks like the Quote API works for that, was able to implement directly with Alpha Vantage, might try and submit a PR if I find some time to add it to this library |
Hi, any progress on this? I would like to fetch the current stock price given the symbol. Perhaps you can point me in the right direction. |
Disreguard. I went with Alpha Vantage directly as well. |
Could you help me with this? Currently, I am using this package set on a daily time-interval, like this: setInterval(async () => {
let gtlbResult = await stocks.timeSeries({
symbol: 'GTLB',
interval: 'daily',
amount: 1
});
console.log('GTLB (GitLab):');
console.log(gtlbResult);
console.log("----------");
}, 1000 * 60 * 60 * 24); Best regards, |
@Lukas-Batema Have a look at this method: https://github.com/christiantobin/Tobins-Discord-Bot/blob/master/src/bot.js#L329 |
Thanks, it helped! |
Checked through the code and did some tests but want to make sure im not totally missing something. Can I get the current price with any of the calls, or can Alpha Vantage return that at all? I only want to pull the current price like once an hour so it doesn't have to be down to the second or anything.
The text was updated successfully, but these errors were encountered: