stock-table

1.0.2 • Public • Published

stock-table

Display stock data as a table directly in your terminal!

PNG

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|<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

Dependencies (7)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i stock-table

    Weekly Downloads

    2

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    55.8 kB

    Total Files

    13

    Last publish

    Collaborators

    • nishantgupt