AlphaVantage
This is a simple wrapper around the Alpha Vantage API hosted on NPM. I have no affiliation with AlphaVantage.
All contributions are welcome! This is an open source project under the MIT license, see LICENSE.md for additional information.
All available functions with this SDK have the same parameters as listed in the the Alpha Vantage Docs, without the "function" or "apikey". Do not include the "function" or "apikey" parameters when using this library. All functions return promises with the response data.
Installation
npm i alphavantage
Usage
/** * Init Alpha Vantage with your API key. * * @param * Your Alpha Vantage API key. */const alpha = key: 'qweqweqwe' ; // Simple examplesalphadata; alphadata; alphaforex alphacrypto alphatechnical alphaperformance;
Util
Data polishing
- Rewrite weird data keys to be consistent across all api calls. This is an optional utility you can use with the result of any api call.
const polished = alphautil;
Data
See Alpha Vantage for the parameters.
alphadataalphadataalphadataalphadataalphadataalphadataalphadataalphadata
Forex
See Alpha Vantage for the parameters.
alphaforex
Crypto
See Alpha Vantage for the parameters.
alphacryptoalphacryptoalphacryptoalphacrypto
Technicals
See Alpha Vantage for the parameters.
alphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnicalalphatechnical
Performance
See Alpha Vantage for the parameters.
alphaperformance
Contributing
All contributions are welcome! The purpose of this library is to keep function parity with the Alpha Vantage API, while keeping a slim and intuitive programming interface. Before any pull requests are made, please run npm run lint
to fix style issues and ensure that all test are passing npm test
. The codebase should always remain at 100% test coverage.
Contact
- Author: Zack Urben
- Twitter: https://twitter.com/zackurben (better)
- Contact: zackurben@gmail.com