All Projects → zackurben → Alphavantage

zackurben / Alphavantage

Licence: mit
A simple interface to the Alpha Vantage API.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Alphavantage

Jackson Databind
General data-binding package for Jackson (2.x): works on streaming API (core) implementation(s)
Stars: ✭ 2,959 (+1012.41%)
Mutual labels:  hacktoberfest
Community.general
Ansible Community General Collection
Stars: ✭ 266 (+0%)
Mutual labels:  hacktoberfest
Ultimate Python
Ultimate Python study guide for newcomers and professionals alike. 🐍 🐍 🐍
Stars: ✭ 3,309 (+1143.98%)
Mutual labels:  hacktoberfest
Hecs
A handy ECS
Stars: ✭ 259 (-2.63%)
Mutual labels:  hacktoberfest
Commands
Java Command Dispatch Framework - (Bukkit, Spigot, Paper, Sponge, Bungee, JDA, Velocity supported, generically usable anywhere)
Stars: ✭ 266 (+0%)
Mutual labels:  hacktoberfest
Termonad
Terminal emulator configurable in Haskell.
Stars: ✭ 266 (+0%)
Mutual labels:  hacktoberfest
Pytest Picked
Run the tests related to the changed files (according to Git) 🤓
Stars: ✭ 262 (-1.5%)
Mutual labels:  hacktoberfest
Auth.js
GitHub API authentication library for JavaScript and Node.js
Stars: ✭ 267 (+0.38%)
Mutual labels:  hacktoberfest
Ac Music Extension
Google Chrome extension that plays hourly Animal Crossing music and more while browsing!
Stars: ✭ 262 (-1.5%)
Mutual labels:  hacktoberfest
Deepchem
Democratizing Deep-Learning for Drug Discovery, Quantum Chemistry, Materials Science and Biology
Stars: ✭ 3,324 (+1149.62%)
Mutual labels:  hacktoberfest
Javascript Cheatsheet
Basic Javascript Cheat Sheet
Stars: ✭ 262 (-1.5%)
Mutual labels:  hacktoberfest
Noice
A native Android app to relax, improve focus and boost productivity with minimal background noise.
Stars: ✭ 264 (-0.75%)
Mutual labels:  hacktoberfest
Fl chart
A powerful Flutter chart library, currently supporting Line Chart, Bar Chart, Pie Chart, Scatter Chart and Radar Chart.
Stars: ✭ 3,882 (+1359.4%)
Mutual labels:  hacktoberfest
Awesome Remote Work
😎 Awesome lists about remote work
Stars: ✭ 264 (-0.75%)
Mutual labels:  hacktoberfest
Cpp
Repository for C++/C codes and algos.
Stars: ✭ 265 (-0.38%)
Mutual labels:  hacktoberfest
Ddh
A fast duplicate file finder
Stars: ✭ 262 (-1.5%)
Mutual labels:  hacktoberfest
Ajsf
Angular JSON Schema Form
Stars: ✭ 266 (+0%)
Mutual labels:  hacktoberfest
Free Pmo
Project management software for freelancers or agencies, built with Laravel 5.
Stars: ✭ 264 (-0.75%)
Mutual labels:  hacktoberfest
Toha
A Hugo theme for personal portfolio
Stars: ✭ 267 (+0.38%)
Mutual labels:  hacktoberfest
Wp Graphql
🚀 GraphQL API for WordPress
Stars: ✭ 3,097 (+1064.29%)
Mutual labels:  hacktoberfest

AlphaVantage

Build Status Coverage Status

This is a simple wrapper around the Alpha Vantage API hosted on NPM. I have no affiliation with AlphaVantage. This library can be used in the browser or in node since it is packaged as a UMD module.

All contributions are welcome, see our CONTRIBUTING.md! 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

Node.js Initialization

/**
 * Init Alpha Vantage with your API key.
 *
 * @param {String} key
 *   Your Alpha Vantage API key.
 */
const alpha = require('alphavantage')({ key: 'qweqweqwe' });

Browser Initialization

Note: Your API key will be visible in the network traffic, this should not be used for public projects.

<body>
  <script src="path/to/alphavantage/dist/bundle.js"></script>
  <script type="application/javascript">
    /**
     * Init Alpha Vantage with your API key.
     *
     * @param {String} key
     *   Your Alpha Vantage API key.
     */
    const alpha = alphavantage({ key: 'qweqweqwe' });
  </script>
</body>

Usage

// Simple examples
alpha.data.intraday(`msft`).then((data) => {
  console.log(data);
});

alpha.forex.rate('btc', 'usd').then((data) => {
  console.log(data);
});

alpha.crypto.daily('btc', 'usd').then((data) => {
  console.log(data);
});

alpha.technical.sma(`msft`, `daily`, 60, `close`).then((data) => {
  console.log(data);
});

alpha.performance.sector().then((data) => {
  console.log(data);
});

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 = alpha.util.polish(data);

Data

See Alpha Vantage for the parameters.

alpha.data.intraday(symbol, outputsize, datatype, interval);
alpha.data.daily(symbol, outputsize, datatype, interval);
alpha.data.daily_adjusted(symbol, outputsize, datatype, interval);
alpha.data.weekly(symbol, outputsize, datatype, interval);
alpha.data.weekly_adjusted(symbol, outputsize, datatype, interval);
alpha.data.monthly(symbol, outputsize, datatype, interval);
alpha.data.monthly_adjusted(symbol, outputsize, datatype, interval);
alpha.data.quote(symbol, outputsize, datatype, interval);
alpha.data.search(keywords);

Forex

See Alpha Vantage for the parameters.

alpha.forex.rate(from_currency, to_currency);

Crypto

See Alpha Vantage for the parameters.

alpha.crypto.daily(symbol, market);
alpha.crypto.weekly(symbol, market);
alpha.crypto.monthly(symbol, market);

Technicals

See Alpha Vantage for the parameters.

alpha.technical.sma(symbol, interval, time_period, series_type);
alpha.technical.ema(symbol, interval, time_period, series_type);
alpha.technical.wma(symbol, interval, time_period, series_type);
alpha.technical.dema(symbol, interval, time_period, series_type);
alpha.technical.tema(symbol, interval, time_period, series_type);
alpha.technical.trima(symbol, interval, time_period, series_type);
alpha.technical.kama(symbol, interval, time_period, series_type);
alpha.technical.mama(symbol, interval, series_type, fastlimit, slowlimit);
alpha.technical.t3(symbol, interval, time_period, series_type);
alpha.technical.macd(symbol, interval, series_type, fastperiod, slowperiod, signalperiod);
alpha.technical.macdext(
  symbol,
  interval,
  series_type,
  fastperiod,
  slowperiod,
  signalperiod,
  fastmatype,
  slowmatype,
  signalmatype
);
alpha.technical.stoch(symbol, interval, fastkperiod, slowkperiod, slowdperiod, slowkmatype, slowdmatype);
alpha.technical.stochf(symbol, interval, fastkperiod, fastdperiod, fastdmatype);
alpha.technical.rsi(symbol, interval, time_period, series_type);
alpha.technical.stochrsi(symbol, interval, time_period, series_type, fastkperiod, slowdperiod, fastdmatype);
alpha.technical.willr(symbol, interval, time_period);
alpha.technical.adx(symbol, interval, time_period);
alpha.technical.adxr(symbol, interval, time_period);
alpha.technical.apo(symbol, interval, series_type, fastperiod, slowperiod, matype);
alpha.technical.ppo(symbol, interval, series_type, fastperiod, slowperiod, matype);
alpha.technical.mom(symbol, interval, time_period, series_type);
alpha.technical.bop(symbol, interval);
alpha.technical.cci(symbol, interval, time_period);
alpha.technical.cmo(symbol, interval, time_period, series_type);
alpha.technical.roc(symbol, interval, time_period, series_type);
alpha.technical.rocr(symbol, interval, time_period, series_type);
alpha.technical.aroon(symbol, interval, time_period);
alpha.technical.aroonosc(symbol, interval, time_period);
alpha.technical.mfi(symbol, interval, time_period);
alpha.technical.trix(symbol, interval, time_period, series_type);
alpha.technical.ultosc(symbol, interval, timeperiod1, timeperiod2, timeperiod3);
alpha.technical.dx(symbol, interval, time_period);
alpha.technical.minus_di(symbol, interval, time_period);
alpha.technical.plus_di(symbol, interval, time_period);
alpha.technical.minus_dm(symbol, interval, time_period);
alpha.technical.plus_dm(symbol, interval, time_period);
alpha.technical.bbands(symbol, interval, time_period, series_type, nbdevup, nbdevdn);
alpha.technical.midpoint(symbol, interval, time_period, series_type);
alpha.technical.midprice(symbol, interval, time_period);
alpha.technical.sar(symbol, interval, acceleration, maximum);
alpha.technical.trange(symbol, interval);
alpha.technical.atr(symbol, interval, time_period);
alpha.technical.natr(symbol, interval, time_period);
alpha.technical.ad(symbol, interval);
alpha.technical.adosc(symbol, interval, fastperiod, slowperiod);
alpha.technical.obv(symbol, interval);
alpha.technical.ht_trendline(symbol, interval, series_type);
alpha.technical.ht_sine(symbol, interval, series_type);
alpha.technical.ht_trendmode(symbol, interval, series_type);
alpha.technical.ht_dcperiod(symbol, interval, series_type);
alpha.technical.ht_dcphase(symbol, interval, series_type);
alpha.technical.ht_dcphasor(symbol, interval, series_type);

Performance

See Alpha Vantage for the parameters.

alpha.performance.sector();

Contact

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].