@desouza-engineering/stocks

1.0.6 • Public • Published

StocksCLI

A simple CLI tool to quickly look up stock details quotes and ratings.

Installation

You need to have Node and NPM installed to be able to use this CLI.

To intstall run

npm i -g @desouza-engineering/stocks

Use

Once installed simply call it from the command line to begin using.

To retreive a quote run

stocks aapl

Example results

AAPL $288.95 $-3.97 -1.36%
Year high/low: 327.85 170.27
Day high/low: 290.79 281.23

To get more information about the company use the info option

stocks --info aapl

Or

stocks -i aapl

Exmple results

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@00@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@GGffff@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@GGffffLL@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@88ffffff00@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@CCffffCC@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@LLffGG@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@88GGCCGG00@@@@8800CCCCCCGG88@@@@@@@@@@
@@@@@@@@@@CCffffffffffffCCffffffffffffff00@@@@@@@@
@@@@@@@@CCffffffffffffffffffffffffffffffff@@@@@@@@
@@@@@@00ffffffffffffffffffffffffffffffff88@@@@@@@@
@@@@@@CCffffffffffffffffffffffffffffff00@@@@@@@@@@
@@@@@@ffffffffffffffffffffffffffffffff@@@@@@@@@@@@
@@@@@@ffffffffffffffffffffffffffffffLL@@@@@@@@@@@@
@@@@88ffffffffffffffffffffffffffffffLL@@@@@@@@@@@@
@@@@@@ffffffffffffffffffffffffffffffff@@@@@@@@@@@@
@@@@@@ffffffffffffffffffffffffffffffff00@@@@@@@@@@
@@@@@@CCffffffffffffffffffffffffffffffff88@@@@@@@@
@@@@@@GGffffffffffffffffffffffffffffffffff00@@@@@@
@@@@@@88ffffffffffffffffffffffffffffffffffGG@@@@@@
@@@@@@@@CCffffffffffffffffffffffffffffffff88@@@@@@
@@@@@@@@88ffffffffffffffffffffffffffffffCC@@@@@@@@
@@@@@@@@@@00ffffffffffffffffffffffffffLL88@@@@@@@@
@@@@@@@@@@@@CCffffffffffffffffffffffff88@@@@@@@@@@
@@@@@@@@@@@@@@GGffLLCC00@@8800CCffLL88@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
AAPL Apple Inc.
Timothy D. Cook
Nasdaq Global Select Computer Hardware Technology
Apple Inc is designs, manufactures and markets mobile communication and media devices and personal computers, and sells a variety of related software, services, accessories, networking
 solutions and third-party digital content and applications. Computer Hardware
-------------------------------------
AAPL $288.95 $-3.97 -1.36%
Year high/low: 327.85 170.27
Day high/low: 290.79 281.23

To get more information about the company use the info option

stocks --rating aapl

Or

stocks -r aapl

Exmple results

AAPL Strong Buy
Score: 5 Rating: S
-------------------------------------
AAPL $288.95 $-3.97 -1.36%
Year high/low: 327.85 170.27
Day high/low: 290.79 281.23

To view a graph of recent prices use the graph option.

stocks --graph aapl

Or

stocks -g aapl

Exmple results

     303.02 ┤                                               ╭─╮                                                                              
     300.70 ┤                                               │ │╭╮                                                                            
     298.38 ┤                                          ╭──╮ │ ╰╯╰─────────╮                                 ╭──╮  ╭╮                         
     296.06 ┤                                 ╭╮╭╮  ╭──╯  ╰─╯             ╰──╮╭──╮╭──╮╭─╮               ╭╮  │  ╰╮╭╯│                         
     293.74 ┤                          ╭─╮ ╭──╯╰╯╰──╯                        ╰╯  ╰╯  ╰╯ │           ╭───╯╰╮╭╯   ╰╯ │                         
     291.42 ┤                         ╭╯ ╰─╯                                            │╭──╮     ╭─╯     ╰╯       ╰─╮   ╭╮   ╭╮ ╭──╮        
     289.11 ┤                    ╭╮   │                                                 ╰╯  ╰╮   ╭╯                  ╰╮ ╭╯╰─╮╭╯╰─╯  ╰─╮      
     286.79 ┼╮        ╭╮ ╭╮     ╭╯╰─╮ │                                                      ╰───╯                    ╰─╯   ╰╯        │      
     284.47 ┤╰╮   ╭───╯╰─╯╰─────╯   ╰─╯                                                                                               ╰─╮    
     282.15 ┤ ╰───╯                                                                                                                     │╭╮  
     279.83 ┤                                                                                                                           ╰╯╰─ 
                                        Historical price of AAPL (5 market days in 15 min increments) 
--------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------
AAPL $288.95 $-3.97 -1.36%
Year high/low: 327.85 170.27
Day high/low: 290.79 281.23

Readme

Keywords

Package Sidebar

Install

npm i @desouza-engineering/stocks

Weekly Downloads

0

Version

1.0.6

License

MIT

Unpacked Size

12 kB

Total Files

7

Last publish

Collaborators

  • lucasdesouza