https://github.com/zackurben/stocks
A simple way to monitor your stocks.
https://github.com/zackurben/stocks
Last synced: 12 months ago
JSON representation
A simple way to monitor your stocks.
- Host: GitHub
- URL: https://github.com/zackurben/stocks
- Owner: zackurben
- License: mit
- Created: 2015-10-10T22:09:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-04-18T23:33:11.000Z (about 8 years ago)
- Last Synced: 2025-07-06T11:02:25.241Z (about 1 year ago)
- Language: JavaScript
- Size: 67.4 KB
- Stars: 11
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Stocks
Stocks is a Node CLI tool for tracking your Stock Portfolio.
All contributions are welcome! This is an open source project under the MIT license, see [LICENSE.md](LICENSE.md) for
additional information.
#### Installation
```bash
npm i -g stocks
```
#### Usage
```bash
$ stocks --help
Usage:
stocks [OPTIONS] [ARGS]
Options:
-p, --portfolio [FILE] The portfolio location (Default is //portfolio.json)
-a, --add STRING Add a stock to the portfolio from CSV string:
symbol,shares,price[,m/d/y purchase date]
-r, --research STRING Research one or multiple stocks without adding them
to the portfolio from CSV string: stock1,stock2
-k, --no-color Omit color from output
--debug Show debug information
-v, --version Display the current version
-h, --help Display help and usage details
```
##### Add a Stock to Your Portfolio
```bash
$ stocks -a TSLA,100,249.97,04/20/2016
```
##### View Your Saved Portfolio
```bash
$ stocks
Symbol Name Price Shares Cost Value Daily G/L $ Total G/L $
TSLA Tesla, Inc. 293.35 100 24997.00 29335.00 -758.00 4338.00
Total 24997.00 29335.00 -758.00 4338.00
```
##### Research a Stock
```bash
$ stocks -r f
Symbol Name Price Daily G/L $
F Ford Motor Company 11.33 -0.10
```
#### Contact
- Author: Zack Urben
- Twitter: https://twitter.com/zackurben (better)
- Contact: zackurben@gmail.com