-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
criticalCritical priorityCritical priorityriskRisk management issueRisk management issuesprint-1Sprint 1 scopeSprint 1 scope
Description
Summary
Default leverage is configured at 100x in config/config.py:56, with max at 125x. This is catastrophically dangerous for live trading.
Risk
EXTREME — At 100x leverage with $1,000 capital:
- A 1% BTC price move = 100% loss (liquidation)
- BTC regularly moves 3-5% in minutes
- This configuration WILL liquidate the account on first significant move
Location
# config/config.py:54-56
MAX_LEVERAGE = 125
DEFAULT_LEVERAGE = 100
MAX_LOSS_PER_TRADE = 50 # USD — meaningless at 100xFix
For paper trading validation:
DEFAULT_LEVERAGE = 1 # No leverage during testing
MAX_LEVERAGE = 5 # Max 5x even in productionFor cautious live trading (after validation):
DEFAULT_LEVERAGE = 3
MAX_LEVERAGE = 5Acceptance Criteria
- Default leverage ≤ 3x
- Max leverage ≤ 10x
- Leverage configurable per strategy
- Warning logged when leverage > 5x
Sprint
Sprint 1 — Story 1.2 (Security Hardening) + Sprint 2 — Risk Management
Found by PM agent audit — Feb 17, 2026
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
criticalCritical priorityCritical priorityriskRisk management issueRisk management issuesprint-1Sprint 1 scopeSprint 1 scope