1.0.2 • Published 4 years ago

stock-table v1.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

Features

  • Use any stock ticker
  • Display monthly, weekly, or daily stock data
  • Supports multiple APIs
  • Save full JSON response to home directory

Install

npm install stock-table

Usage

Usage: stock [options] [command]

Options:
  -V, --version                        output the version number
  -h, --help                           display help for command

Commands:
  key                                  Configure API key from https://www.alphavantage.co
  table|t <ticker> [timeframe] [save]  Get the stock price
  help [command]                       display help for command

Get Started

You must provide your free API key from the alpha vantage API and set it using

stock key set 

Additional key options:

$ stock key -h
Usage: stock-key [options] [command]

Options:
  -h, --help      display help for command

Commands:
  set             Set API key - get one at https://www.alphavantage.co
  show            Show API key
  remove          Remove API key
  help [command]  display help for command

Example

stock table AAPL monthly

You may substitute the timeframe with either monthly, weekly or daily

To save full JSON response to your home directory append save to the command

stock table AAPL daily save

Supported APIs

Currently, stock-table supports the following APIs:

License

MIT