alpha_vantage_api_wrapper
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "alpha_vantage_api_wrapper", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Alpha Vintage API Wrapper for Node.Js", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
151
README.md
# Alpha Vantage API - Node.js Wrapper | ||
This is a simple wrapper package for the Alpha Vantage API | ||
For now it only works for Stocks. | ||
* Stocks | ||
* [Intraday](#Intraday) | ||
* [Daily](#Daily) | ||
* [Daily Adjusted](#Daily-Adjusted) | ||
* [Weekly](#Weekly) | ||
* [Weekly Adjusted](#Weekly-Adjusted) | ||
* [Monthly](#Monthly) | ||
* [Monthly Adjusted](#Monthly-Adjusted) | ||
* [Quote](#Quote) | ||
* [Search](#Search) | ||
## Usage | ||
@@ -17,2 +29,141 @@ Getting Simple Intraday Data for APPL | ||
}) | ||
``` | ||
# Stocks API | ||
## Intraday | ||
This API returns intraday time series (timestamp, open, high, low, close, volume) of the equity specified. | ||
Available options | ||
```json | ||
{ | ||
"datatype": "json" || "csv", | ||
"outputsize": "compact" || "full", | ||
"interval": "1min" || "5min" || "15min" || "30min" || "60" | ||
} | ||
``` | ||
```js | ||
alpha.stocks.intraday(ticker, options = optional) | ||
``` | ||
## Daily | ||
This API returns daily time series (date, daily open, daily high, daily low, daily close, daily volume) of the global equity specified, covering 20+ years of historical data.<br> | ||
The most recent data point is the cumulative prices and volume information of the current trading day, updated realtime. | ||
Available options | ||
```json | ||
{ | ||
"datatype": "json" || "csv", | ||
"outputsize": "compact" || "full", | ||
} | ||
``` | ||
```js | ||
alpha.stocks.daily(ticker, options = optional) | ||
``` | ||
## Daily Adjusted | ||
This API returns daily time series (date, daily open, daily high, daily low, daily close, daily volume, daily adjusted close, and split/dividend events) of the global equity specified, covering 20+ years of historical data.<br> | ||
The most recent data point is the cumulative prices and volume information of the current trading day, updated realtime. | ||
Available options | ||
```json | ||
{ | ||
"datatype": "json" || "csv", | ||
"outputsize": "compact" || "full", | ||
} | ||
``` | ||
```js | ||
alpha.stocks.dailyAdjusted(ticker, options = optional) | ||
``` | ||
## Weekly | ||
This API returns weekly time series (last trading day of each week, weekly open, weekly high, weekly low, weekly close, weekly volume) of the global equity specified, covering 20+ years of historical data.<br> | ||
The latest data point is the cumulative prices and volume information for the week (or partial week) that contains the current trading day, updated realtime. | ||
Available options | ||
```json | ||
{ | ||
"datatype": "json" || "csv", | ||
} | ||
``` | ||
```js | ||
alpha.stocks.weekly(ticker, options = optional) | ||
``` | ||
## Weekly Adjusted | ||
This API returns weekly adjusted time series (last trading day of each week, weekly open, weekly high, weekly low, weekly close, weekly adjusted close, weekly volume, weekly dividend) of the global equity specified, covering 20+ years of historical data.<br> | ||
The latest data point is the cumulative prices and volume information for the week (or partial week) that contains the current trading day, updated realtime. | ||
Available options | ||
```json | ||
{ | ||
"datatype": "json" || "csv", | ||
} | ||
``` | ||
```js | ||
alpha.stocks.weeklyAdjusted(ticker, options = optional) | ||
``` | ||
## Monthly | ||
This API returns monthly time series (last trading day of each month, monthly open, monthly high, monthly low, monthly close, monthly volume) of the global equity specified, covering 20+ years of historical data.<br> | ||
The latest data point is the cumulative prices and volume information for the month (or partial month) that contains the current trading day, updated realtime. | ||
Available options | ||
```json | ||
{ | ||
"datatype": "json" || "csv", | ||
} | ||
``` | ||
```js | ||
alpha.stocks.monthly(ticker, options = optional) | ||
``` | ||
## Monthly Adjusted | ||
This API returns monthly adjusted time series (last trading day of each month, monthly open, monthly high, monthly low, monthly close, monthly adjusted close, monthly volume, monthly dividend) of the equity specified, covering 20+ years of historical data.<br> | ||
The latest data point is the cumulative prices and volume information for the month (or partial month) that contains the current trading day, updated realtime. | ||
Available options | ||
```json | ||
{ | ||
"datatype": "json" || "csv", | ||
} | ||
``` | ||
```js | ||
alpha.stocks.monthlyAdjusted(ticker, options = optional) | ||
``` | ||
## Quote | ||
A lightweight alternative to the time series APIs, this service returns the latest price and volume information for a security of your choice. | ||
Available options | ||
```json | ||
{ | ||
"datatype": "json" || "csv", | ||
} | ||
``` | ||
```js | ||
alpha.stocks.quote(ticker, options = optional) | ||
``` | ||
## Search | ||
Looking for some specific symbols or companies? | ||
Available options | ||
```json | ||
{ | ||
"datatype": "json" || "csv", | ||
} | ||
``` | ||
```js | ||
alpha.stocks.search(ticker, options = optional) | ||
``` |
@@ -37,3 +37,3 @@ import { Alpha } from './index'; | ||
if(options_err) { | ||
reject(options_err); | ||
reject(ErrorSerializer.ValidationError(options_err)); | ||
} | ||
@@ -40,0 +40,0 @@ |
59988
168