Skip to content

Latest commit

 

History

History
73 lines (49 loc) · 1.64 KB

README.MD

File metadata and controls

73 lines (49 loc) · 1.64 KB


Banner

go-get-stock

A CLI tool written in Golang to display stocks price in real time using Yahoo Finance API

Introduction

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.

Example

Installation

To use GGS, follow these steps:

  1. Clone the repository:
git clone https://github.com/mikah13/ggs
  1. Navigate to the project directory:
cd ggs
  1. Build the executable:
go build .

Usage

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