GGS (Go Stock Viewer) is a command-line tool written in Go for viewing stock prices and managing a watchlist of stocks. It allows you to quickly retrieve stock prices and display them in a tabular format. You can also manage your watchlist by adding or removing tickers as needed.
To use GGS, follow these steps:
- Clone the repository:
git clone https://github.com/mikah13/ggs
- Navigate to the project directory:
cd ggs
- Build the executable:
go build .
Once you have built the executable, you can use the following command-line options:
./ggs get [ticker]
: Display stock prices in a table. You can also search for multiple tickers using semicolon "," as the delimiter./ggs get-all
: Display the watchlist in a table../ggs list
: Display an editable list of all tickers in the watchlist../ggs add [ticker]
: Add a ticker to the watchlist.
For example: You can use get
for a single or multiple tickers search
./ggs get MSFT
./ggs get AAPL,META
You can do the same with add
command:
./ggs add MSFT
./ggs add AAPL,META,TSLA