How allencake/mit-trader-skill works
mit-trader is a Claude skill backed by a Python command-line toolkit for quantitative strategy research and paper trading. The main workflow tests strategy candidates through walk-forward, luck, and cost gates, saves approved strategies, then checks signals, estimates stops, position sizes and portfolio risk, and creates tickets for explicit user approval before simulated fills reach the ledger. Separate capabilities explain course concepts and run a planted synthetic-market check. The sampled sources show the main calls; some today.py sections were omitted, so links for those steps rely on README documentation.
Main entry points: cli.py Command router · research.py Research gates · today.py Daily signal and risk · data.py Price data and cache
Components 14
Commands and learning
- Command router
mit_trader/cli.py - Concept explanations
concepts
Strategy research
- Research gates
mit_trader/research.py - Strategy families
mit_trader/strategies.py - Research statistics
mit_trader/stats.py
Signals and risk
- Daily signal and risk
mit_trader/today.py
Paper trading and state
- Ticket approval
mit_trader/today.py - Paper ledger
mit_trader/ledger.py - Run and ticket files
mit_trader/common.py
Market data and shared services
- Price data and cache
mit_trader/data.py - Config and JSON helpers
mit_trader/common.py - Planted test market
mit_trader/planted.py
Other components
- User
- Market data providers
Connections 24
- User → Command router: runs command
README.md - Command router → Research gates: dispatches research
mit_trader/cli.py - Command router → Daily signal and risk: dispatches today
mit_trader/cli.py - Command router → Ticket approval: dispatches approval
mit_trader/cli.py - Command router → Paper ledger: reads ledger
mit_trader/cli.py - Command router → Concept explanations: loads concept
mit_trader/cli.py - Command router → Planted test market: selects test data
mit_trader/cli.py - Research gates → Price data and cache: loads prices
mit_trader/research.py - Research gates → Strategy families: tests candidates
mit_trader/research.py - Research gates → Research statistics: computes gates
mit_trader/research.py - Research gates → Config and JSON helpers: writes results
mit_trader/research.py - Research gates → Run and ticket files: saves approvals
mit_trader/research.py - Daily signal and risk → Run and ticket files: reads approvals
mit_trader/today.py - Daily signal and risk → Price data and cache: loads prices
mit_trader/today.py - Daily signal and risk → Strategy families: checks signals
mit_trader/today.py - Daily signal and risk → Paper ledger: checks positions
mit_trader/today.py - Daily signal and risk → Run and ticket files: writes tickets
mit_trader/today.py - Ticket approval → Paper ledger: records fills
mit_trader/today.py - Ticket approval → Run and ticket files: updates ticket
mit_trader/today.py - Paper ledger → Config and JSON helpers: reads and writes JSON
mit_trader/ledger.py - Price data and cache → Config and JSON helpers: uses cache paths
mit_trader/data.py - Price data and cache → Market data providers: fetches OHLCV
mit_trader/data.py - Planted test market → Price data and cache: generates synthetic prices
mit_trader/planted.py - User → Ticket approval: confirms ticket
README.md