No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-01 00:02:30 -04:00
docs docs: plan migration float → Decimal (issue #6) 2026-02-06 18:46:11 -05:00
img updating screenshot 2025-12-08 22:03:01 -05:00
skill feat: add OpenClaw skill documentation 2026-02-06 19:39:44 -05:00
src/stocks_cli feat: add dynamic shell completion for accounts and watchlists 2026-02-08 13:48:44 -05:00
tests feat: add dynamic shell completion for accounts and watchlists 2026-02-08 13:48:44 -05:00
.gitignore fix(fetcher): add 95% coverage tolerance to gap detection 2026-01-27 16:02:09 +00:00
AGENTS.md Fix cache race condition with SQL upsert 2025-12-26 17:18:14 -05:00
LICENSE Add MIT License 2025-12-07 19:30:25 -05:00
pyproject.toml release: v1.0.0 2025-12-26 12:44:16 -05:00
README.md cleanup 2026-10-01 00:02:30 -04:00
uv.lock release: v1.0.0 2025-12-26 12:44:16 -05:00

stocks-cli

A modular CLI tool for tracking stock portfolios and analyzing market data. Designed for extensibility and configurability.

Features

  • Watchlists: Create and manage ticker lists, with automatic grabbers for major indices
  • Portfolio tracking: Accounts, transactions (buy/sell/dividend/deposit/withdraw), USD/CAD conversion
  • Cost basis & P&L: Weighted average cost, unrealized/realized P&L, dividend income tracking
  • Technical analysis: SMA, EMA, DEMA, TEMA, MACD, RSI, Bollinger Bands
  • Performance comparison: Normalized multi-ticker charts with multiple benchmarks
  • Top/bottom analysis: Find best/worst performers from any watchlist
  • Extensible architecture: Registry pattern for graphs and grabbers
  • Full configurability: YAML config file + CLI overrides

Stocks-cli

Installation

# Clone and install with uv
git clone https://git.2027a.net/mathieu/stocks.git
cd stocks_machine
uv sync

# Verify installation
uv run stocks --help

Quick Start

#Add an alias to your shell config :
alias stocks='uv run --project /path/to/stocks_machine stocks'

# Grab S&P 500 tickers from Wikipedia
stocks grab run sp500

# Show top 10 performers over 1 year
stocks analyze top -w sp500 -p 1y -n 10

# Compare performance of specific tickers with benchmarks
stocks graph perf -t "AMD,NVDA,GOOG" -b "^GSPC:S&P 500, ^IXIC:NASDAQ" -p 1y

# Technical indicators for a single ticker vs benchmark
stocks graph indicators -t AMD -b "^GSPC:S&P 500" -p 6m -i "ema,macd,rsi"

Documentation