Stockify CLI is a lightweight command-line application written in Go that enables users to fetch real-time stock prices and manage a personalized watchlist directly from the terminal. It integrates with the Yahoo Finance API to provide up-to-date market data in a structured tabular format.
- Retrieve real-time stock prices for one or multiple tickers
- Display data in a clean, formatted table
- Manage a persistent watchlist (add, view, list)
- Interactive watchlist view using terminal UI
- Supports multiple ticker queries in a single command
- Robust error handling for invalid inputs and API failures
- Go (version 1.20 or later recommended)
Clone the repository:
git clone https://github.com/yourusername/stockify-cli.git
cd stockify-cliBuild the application using the following command:
go build -o stockifyGet stock price for a single ticker:
./stockify get AAPLGet stock prices for multiple tickers:
./stockify get AAPL,MSFT,TSLAAdd tickers to watchlist
./stockify add TSLA
./stockify add AAPL,MSFTDisplay all watchlist stock prices
./stockify get-allOpen interactive watchlist editor
./stockify list- Language: Go
- API: Yahoo Finance Chart API
- CLI Handling: Custom command parsing
- UI: go-pretty , Bubble Tea
- Data Handling: JSON parsing with structured response models