New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

alpha_vantage_api_wrapper

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alpha_vantage_api_wrapper

Alpha Vintage API Wrapper for Node.Js

  • 0.0.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-61.54%
Maintainers
1
Weekly downloads
 
Created
Source

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
    • Daily
    • Daily Adjusted
    • Weekly
    • Weekly Adjusted
    • Monthly
    • Monthly Adjusted
    • Quote
    • Search

Usage

Getting Simple Intraday Data for APPL

var Alpha = require('alpha_vantage_api').Alpha
var alpha = new Alpha('api-key')

alpha.stocks.intraday('APPL')
.then((res) => {
    // To what you want with the data
})
.catch((err) => {
    // Handle the error
})

Stocks API

Intraday

This API returns intraday time series (timestamp, open, high, low, close, volume) of the equity specified.

Available options

{
    "datatype": "json" || "csv",
    "outputsize": "compact" || "full",
    "interval": "1min" || "5min" || "15min" || "30min" || "60"
}
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.
The most recent data point is the cumulative prices and volume information of the current trading day, updated realtime.

Available options

{
    "datatype": "json" || "csv",
    "outputsize": "compact" || "full",
}
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.
The most recent data point is the cumulative prices and volume information of the current trading day, updated realtime.

Available options

{
    "datatype": "json" || "csv",
    "outputsize": "compact" || "full",
}
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.
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

{
    "datatype": "json" || "csv",
}
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.
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

{
    "datatype": "json" || "csv",
}
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.
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

{
    "datatype": "json" || "csv",
}
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.
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

{
    "datatype": "json" || "csv",
}
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

{
    "datatype": "json" || "csv",
}
alpha.stocks.quote(ticker, options = optional)

Looking for some specific symbols or companies?

Available options

{
    "datatype": "json" || "csv",
}
alpha.stocks.search(ticker, options = optional)

Keywords

FAQs

Package last updated on 20 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc