Skip to content

aryarathoree/Stockify-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stockify CLI

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.

Features

  • 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

Installation

Prerequisites

  • Go (version 1.20 or later recommended)

Steps

Clone the repository:

git clone https://github.com/yourusername/stockify-cli.git
cd stockify-cli

Build the application using the following command:

go build -o stockify

Get stock price for a single ticker:

./stockify get AAPL

Get stock prices for multiple tickers:

./stockify get AAPL,MSFT,TSLA

Add tickers to watchlist

./stockify add TSLA
./stockify add AAPL,MSFT

Display all watchlist stock prices

./stockify get-all

Open interactive watchlist editor

./stockify list

Technical Overview

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages