quant-trading-system
Quant trading stack with paper-mode default, circuit breakers, and approval guards for crypto exchanges.
- CCM score
- 39 of 100
- GitHub stars
- 29
Own this plugin? Claim it
What it does
- Adds the
/crypto-trader,/ccxt-exchange, and/metrics-writecommands plus pre-trade, post-trade, and circuit breaker hooks - Covers a 5-minute trading loop with validation, execution, logging, and metrics for CCXT-supported exchanges
- Enforces paper mode by default, a PIN-gated approval for live trades, and an emergency kill switch script
- Designed for crypto traders testing strategies in paper mode before moving to live deployment with risk limits
Complete quantitative trading stack with risk management, circuit breakers, and execution hooks
Add marketplace
/plugin marketplace add jmanhype/claude-code-plugin-marketplaceRun it inside Claude Code once, then install the plugin below.
Install
/plugin install quant-trading-system@multi-agent-intelligence-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceQuantitative Trading System Plugin
Complete production-grade quantitative trading stack for cryptocurrency markets.
Features
π‘οΈ Safety First
- Circuit Breaker - Automatic failover to paper trading on risk/latency errors
- Kill Switch - Emergency stop all trading with one command
- Approval Guards - Manual approval required for live trades
- Pre-trade Validation - Risk checks before every execution
π Trading Infrastructure
- Risk Manager - Multi-layer risk validation and position sizing
- CCXT Integration - Support for 100+ cryptocurrency exchanges
- Metrics Tracking - Comprehensive trade logging and analytics
- Paper/Live Modes - Safe testing before going live
π Automated Workflows
- 5-Minute Loop - Continuous trading execution (configurable)
- Pre-Trade Hooks - Validation, risk checks, approvals
- Post-Trade Hooks - Logging, metrics, notifications
Installation
/plugin install quant-trading-system
Configuration
Required Environment Variables
EXCHANGE_API_KEY=your_api_key
EXCHANGE_SECRET=your_api_secret
Optional Configuration
PAPER_TRADING=true # Default: true (safe mode)
TRADE_INTERVAL=5 # Minutes between trades
MAX_POSITION_SIZE=1000 # Maximum position size in USD
RISK_LIMIT_PERCENT=2 # Max risk per trade (%)
Usage
Paper Trading (Safe)
# Hooks automatically enforce paper mode without PIN
/crypto-trader start
Live Trading (Requires Approval)
# Set environment
export PAPER_TRADING=false
# Start trading (will prompt for PIN via guard_approve.sh)
/crypto-trader start
Emergency Stop
# Immediately halt all trading
.claude/hooks/kill_switch.sh
Circuit Breaker
The circuit breaker automatically triggers when:
- Risk limits exceeded
- API latency > threshold
- Unexpected errors occur
- Loss limit reached
Status: Automatically flips to paper trading mode
Hooks
pre_trade.sh
Runs before every trade:
- Validates exchange connection
- Checks risk limits
- Verifies API keys
- Requires approval for live trades
post_trade.sh
Runs after every trade:
- Logs trade details to
logs/trades.jsonl - Updates metrics database
- Calculates P&L
- Sends notifications (if configured)
circuit_breaker.sh
Continuously monitors:
- API latency
- Error rates
- Position sizes
- P&L thresholds
Auto-recovery: Resumes paper trading after cooldown
Commands
/ccxt-exchange
CCXT exchange operations:
/ccxt-exchange balance # Check account balance
/ccxt-exchange ticker BTC/USDT # Get ticker data
/ccxt-exchange markets # List available markets
/metrics-write
Write custom metrics:
/metrics-write trade_count 42
/metrics-write total_pnl 1250.50
Safety Checklist
Before going live:
- Test in paper mode for 7+ days
- Verify risk limits are appropriate
- Set up kill switch access
- Configure notification alerts
- Review circuit breaker thresholds
- Backup API keys securely
- Document emergency procedures
Workflows
crypto-trader.md
5-minute trading loop:
- Fetch market data
- Run strategy signals
- Pre-trade validation
- Execute trades
- Post-trade logging
- Sleep until next interval
quant-trading-workflow.md
Complete workflow:
- Research phase (DSPy optimization)
- Backtesting
- Paper trading validation
- Gradual live deployment
- Continuous monitoring
Risk Management
The risk-manager agent enforces:
- Position Sizing - Kelly Criterion or fixed %
- Stop Losses - Automatic exit on loss threshold
- Take Profits - Lock in gains at targets
- Exposure Limits - Max total portfolio risk
- Correlation Limits - Avoid concentrated risk
Troubleshooting
Trade Rejected
Check:
pre_trade.shlogs in.claude/hooks/logs/- Risk limits in configuration
- Exchange API connectivity
- Account balance
Circuit Breaker Triggered
- Check
.claude/hooks/logs/circuit_breaker.json - Review error messages
- Wait for cooldown period
- Restart in paper mode
- Investigate root cause
Kill Switch Activated
- All positions immediately closed
- All orders cancelled
- System halted
- Manual intervention required to restart
Examples
Basic Setup
# Install plugin
/plugin install quant-trading-system
# Configure
export EXCHANGE_API_KEY=xxx
export EXCHANGE_SECRET=yyy
export PAPER_TRADING=true
# Start paper trading
/crypto-trader start
Production Deployment
# After successful paper trading
export PAPER_TRADING=false
export MAX_POSITION_SIZE=500
export RISK_LIMIT_PERCENT=1
# Start with approval guard
/crypto-trader start
# (Will prompt for PIN approval)
Monitoring
Logs stored in:
.claude/hooks/logs/
βββ trades.jsonl # All trades
βββ circuit_breaker.json # Circuit breaker events
βββ pre_trade.json # Pre-trade validations
βββ post_trade.json # Post-trade results
Metrics database:
db/metrics.db # SQLite database
Support
- Issues: GitHub Issues
- Docs: Trading Workflows
- Source: Multi-Agent System
Readme
Quantitative Trading System Plugin
Complete production-grade quantitative trading stack for cryptocurrency markets.
Features
π‘οΈ Safety First
- Circuit Breaker - Automatic failover to paper trading on risk/latency errors
- Kill Switch - Emergency stop all trading with one command
- Approval Guards - Manual approval required for live trades
- Pre-trade Validation - Risk checks before every execution
π Trading Infrastructure
- Risk Manager - Multi-layer risk validation and position sizing
- CCXT Integration - Support for 100+ cryptocurrency exchanges
- Metrics Tracking - Comprehensive trade logging and analytics
- Paper/Live Modes - Safe testing before going live
π Automated Workflows
- 5-Minute Loop - Continuous trading execution (configurable)
- Pre-Trade Hooks - Validation, risk checks, approvals
- Post-Trade Hooks - Logging, metrics, notifications
Installation
/plugin install quant-trading-system
Configuration
Required Environment Variables
EXCHANGE_API_KEY=your_api_key
EXCHANGE_SECRET=your_api_secret
Optional Configuration
PAPER_TRADING=true # Default: true (safe mode)
TRADE_INTERVAL=5 # Minutes between trades
MAX_POSITION_SIZE=1000 # Maximum position size in USD
RISK_LIMIT_PERCENT=2 # Max risk per trade (%)
Usage
Paper Trading (Safe)
# Hooks automatically enforce paper mode without PIN
/crypto-trader start
Live Trading (Requires Approval)
# Set environment
export PAPER_TRADING=false
# Start trading (will prompt for PIN via guard_approve.sh)
/crypto-trader start
Emergency Stop
# Immediately halt all trading
.claude/hooks/kill_switch.sh
Circuit Breaker
The circuit breaker automatically triggers when:
- Risk limits exceeded
- API latency > threshold
- Unexpected errors occur
- Loss limit reached
Status: Automatically flips to paper trading mode
Hooks
pre_trade.sh
Runs before every trade:
- Validates exchange connection
- Checks risk limits
- Verifies API keys
- Requires approval for live trades
post_trade.sh
Runs after every trade:
- Logs trade details to
logs/trades.jsonl - Updates metrics database
- Calculates P&L
- Sends notifications (if configured)
circuit_breaker.sh
Continuously monitors:
- API latency
- Error rates
- Position sizes
- P&L thresholds
Auto-recovery: Resumes paper trading after cooldown
Commands
/ccxt-exchange
CCXT exchange operations:
/ccxt-exchange balance # Check account balance
/ccxt-exchange ticker BTC/USDT # Get ticker data
/ccxt-exchange markets # List available markets
/metrics-write
Write custom metrics:
/metrics-write trade_count 42
/metrics-write total_pnl 1250.50
Safety Checklist
Before going live:
- Test in paper mode for 7+ days
- Verify risk limits are appropriate
- Set up kill switch access
- Configure notification alerts
- Review circuit breaker thresholds
- Backup API keys securely
- Document emergency procedures
Workflows
crypto-trader.md
5-minute trading loop:
- Fetch market data
- Run strategy signals
- Pre-trade validation
- Execute trades
- Post-trade logging
- Sleep until next interval
quant-trading-workflow.md
Complete workflow:
- Research phase (DSPy optimization)
- Backtesting
- Paper trading validation
- Gradual live deployment
- Continuous monitoring
Risk Management
The risk-manager agent enforces:
- Position Sizing - Kelly Criterion or fixed %
- Stop Losses - Automatic exit on loss threshold
- Take Profits - Lock in gains at targets
- Exposure Limits - Max total portfolio risk
- Correlation Limits - Avoid concentrated risk
Troubleshooting
Trade Rejected
Check:
pre_trade.shlogs in.claude/hooks/logs/- Risk limits in configuration
- Exchange API connectivity
- Account balance
Circuit Breaker Triggered
- Check
.claude/hooks/logs/circuit_breaker.json - Review error messages
- Wait for cooldown period
- Restart in paper mode
- Investigate root cause
Kill Switch Activated
- All positions immediately closed
- All orders cancelled
- System halted
- Manual intervention required to restart
Examples
Basic Setup
# Install plugin
/plugin install quant-trading-system
# Configure
export EXCHANGE_API_KEY=xxx
export EXCHANGE_SECRET=yyy
export PAPER_TRADING=true
# Start paper trading
/crypto-trader start
Production Deployment
# After successful paper trading
export PAPER_TRADING=false
export MAX_POSITION_SIZE=500
export RISK_LIMIT_PERCENT=1
# Start with approval guard
/crypto-trader start
# (Will prompt for PIN approval)
Monitoring
Logs stored in:
.claude/hooks/logs/
βββ trades.jsonl # All trades
βββ circuit_breaker.json # Circuit breaker events
βββ pre_trade.json # Pre-trade validations
βββ post_trade.json # Post-trade results
Metrics database:
db/metrics.db # SQLite database
Support
- Issues: GitHub Issues
- Docs: Trading Workflows
- Source: Multi-Agent System
Details
- Marketplace
- jmanhype/claude-code-plugin-marketplace
- Source
- plugins/quant-trading-system
- Category
- Community
- Listed since
- Apr 7, 2026
Questions
What does the quant-trading-system plugin add to Claude Code?
The quant-trading-system plugin adds a crypto trading stack with a circuit breaker that fails over to paper trading, a kill switch, approval guards for live trades, and pre-trade and post-trade hooks. It also provides the /crypto-trader workflow and the /ccxt-exchange and /metrics-write commands.
How do I install the quant-trading-system plugin?
Run /plugin marketplace add jmanhype/claude-code-plugin-marketplace first, then run /plugin install quant-trading-system@multi-agent-intelligence-marketplace inside Claude Code. The plugin then gives you the crypto-trader and exchange commands for trading on cryptocurrency exchanges.
Does quant-trading-system trade with real money by default?
No, the quant-trading-system plugin defaults to paper trading through its PAPER_TRADING setting. Live trades need PAPER_TRADING set to false and a PIN approval through its guard_approve.sh script.
Where does quant-trading-system stand in the Finance & Trading category?
The quant-trading-system plugin is listed in the Finance & Trading category on Claude Marketplaces, alongside ruflo-market-data, ruflo-neural-trader, daily-stock-analysis, benzinga-automation and Braintree Automation. It stands out for its built-in safety layer of circuit breakers, kill switch and approval guards.
More from jmanhype/claude-code-plugin-marketplace
All 22- repo-management-tools
- research-execution-pipeline
- safety-compliance
- sparc-methodology
- swarm-coordination
- testing-qa-framework
- ace-context-engineeringv1.0.0
- api-docs-generator
- architecture-design
- base-template-generator
- cicd-automation
- code-safety-monitor
- consensus-protocols
- core-dev-suite
- github-automation-suite
- hive-mind-orchestration
- market-intelligence
- memory-coordination
- mobile-automation
- modular-agentic-dev
- performance-optimization
Similar to quant-trading-system
More Finance & Tradingquantitative-tradingPluginwshobson/agents42.9K starsQuantitative analysis, algorithmic trading strategies, financial modeling, portfolio risk management, and backtesting
trading-expertSkillpersonamanagmentlayer/pcl972 installsExpert guidance for algorithmic trading systems, market data processing, and execution with pre-trade risk checks.
quant-skillsPluginlzwme/finance-quant-skills499 starsιθιεζ‘ζΆδΈζη
tradingview-quantitativeSkillhypier/tradingview-quantitative-skills1.5K installsA quantitative analysis system built on TradingView's MCP tools that combines real-time quotes, technical indicators, and fundamental screening into structured
research-execution-pipelinePluginjmanhype/claude-code-plugin-marketplace29 starsDSPy-powered research pipeline with automated strategy discovery, backtesting, and continuous optimization
market-intelligencePluginjmanhype/claude-code-plugin-marketplace29 starsMarket analysis, monitoring, and intelligence gathering for trading and financial applications