How aabrole/claude-trading-desk works
Trading Desk is a Claude Code plugin and a template algorithmic-trading research stack. The main workflow is to create a workspace, develop a strategy, compare rules, hand-gated, and Jev-filtered backtests, inspect net-of-cost results, then optionally paper-trade and host the bot. The graph also preserves the documented dashboard and deployment capabilities. Source excerpts establish key harness calls; README statements establish plugin and operational capabilities. Some unsampled subsystem links are therefore omitted rather than inferred.
Main entry points: decision.py Decision Arms · orb/run_backtest.py ORB Backtest · example_sma/run_backtest.py SMA Backtest · strategy.py ORB Strategy
Components 28
Claude Plugin
- Initialize Workspace
plugins/trading-desk/commands/trading-desk-init.md - New Strategy
plugins/trading-desk/commands/trading-desk-new-strategy.md - Strategy Guidance
plugins/trading-desk/skills/trading-desk-strategy/SKILL.md - Testing Discipline
plugins/trading-desk/skills/trading-desk-method/SKILL.md - Paper Guidance
plugins/trading-desk/skills/trading-desk-paper/SKILL.md - Hosting Guidance
plugins/trading-desk/skills/trading-desk-oracle/SKILL.md - Dashboard Guidance
plugins/trading-desk/skills/trading-desk-dashboard/SKILL.md - Deploy Command
plugins/trading-desk/commands/trading-desk-deploy.md
Strategy Research
- ORB Backtest
plugins/trading-desk/template/orb/run_backtest.py - SMA Backtest
plugins/trading-desk/template/example_sma/run_backtest.py - ORB Strategy
plugins/trading-desk/template/orb/strategy.py - SMA Strategy
plugins/trading-desk/template/example_sma/strategy.py - Historical Data
plugins/trading-desk/template/core/data.py - Feature Helpers
plugins/trading-desk/template/core/features.py - Decision Arms
plugins/trading-desk/template/core/decision.py - Portfolio Engine
plugins/trading-desk/template/core/engine.py - Trade Contracts
plugins/trading-desk/template/core/contracts.py - Performance Metrics
plugins/trading-desk/template/core/metrics.py
Trading Runtime
- Paper Trader
plugins/trading-desk/template/orb/live.py - Bot State
plugins/trading-desk/template/core/botstate.py
Operations
- Dashboard Server
plugins/trading-desk/template/dashboard/server.py - Dashboard UI
plugins/trading-desk/template/dashboard/index.html - VM Deployment
plugins/trading-desk/template/deploy
Other components
- Developer
- TypeSafe Jev
- Alpaca Data
- Alpaca Paper
- Oracle Cloud VM
Connections 35
- Developer → Initialize Workspace: invokes
README.md - Developer → New Strategy: invokes
README.md - Developer → Deploy Command: invokes
README.md - Developer → Strategy Guidance: uses guidance
README.md - Developer → Testing Discipline: uses guidance
README.md - Developer → Paper Guidance: uses guidance
README.md - Developer → Hosting Guidance: uses guidance
README.md - Developer → Dashboard Guidance: uses guidance
README.md - ORB Backtest → Historical Data: fetches bars
plugins/trading-desk/template/orb/run_backtest.py - ORB Backtest → ORB Strategy: builds plans
plugins/trading-desk/template/orb/run_backtest.py - ORB Backtest → Decision Arms: selects arms
plugins/trading-desk/template/orb/run_backtest.py - ORB Backtest → Portfolio Engine: runs plans
plugins/trading-desk/template/orb/run_backtest.py - ORB Backtest → Performance Metrics: summarizes trades
plugins/trading-desk/template/orb/run_backtest.py - SMA Backtest → Historical Data: fetches bars
plugins/trading-desk/template/example_sma/run_backtest.py - SMA Backtest → SMA Strategy: builds plans
plugins/trading-desk/template/example_sma/run_backtest.py - SMA Backtest → Decision Arms: selects arms
plugins/trading-desk/template/example_sma/run_backtest.py - SMA Backtest → Portfolio Engine: runs plans
plugins/trading-desk/template/example_sma/run_backtest.py - SMA Backtest → Performance Metrics: summarizes trades
plugins/trading-desk/template/example_sma/run_backtest.py - ORB Strategy → Feature Helpers: uses helpers
plugins/trading-desk/template/orb/strategy.py - ORB Strategy → Trade Contracts: creates snapshots
plugins/trading-desk/template/orb/strategy.py - ORB Strategy → Decision Arms: provides prompt
plugins/trading-desk/template/orb/strategy.py - SMA Strategy → Trade Contracts: creates snapshots
plugins/trading-desk/template/example_sma/strategy.py - SMA Strategy → Decision Arms: provides prompt
plugins/trading-desk/template/example_sma/strategy.py - Historical Data → Alpaca Data: requests bars
plugins/trading-desk/template/core/data.py - Portfolio Engine → Decision Arms: requests decisions
plugins/trading-desk/template/core/engine.py - Portfolio Engine → Trade Contracts: uses trade types
plugins/trading-desk/template/core/engine.py - Performance Metrics → Trade Contracts: reads trade fields
plugins/trading-desk/template/core/metrics.py - Decision Arms → TypeSafe Jev: queries model
- Paper Trader → ORB Strategy: reuses strategy
plugins/trading-desk/template/orb/live.py - Paper Trader → Decision Arms: uses Jev decider
plugins/trading-desk/template/orb/live.py - Paper Trader → Alpaca Paper: trades paper
- Paper Trader → Bot State: persists state
- Dashboard Server → Dashboard UI: serves dashboard
README.md - Deploy Command → VM Deployment: runs deployment
- VM Deployment → Oracle Cloud VM: provisions VM
README.md