Skip to content

[RISK] R1 — Default leverage 100x will cause instant liquidation #14

@cluster2600

Description

@cluster2600

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 100x

Fix

For paper trading validation:

DEFAULT_LEVERAGE = 1   # No leverage during testing
MAX_LEVERAGE = 5       # Max 5x even in production

For cautious live trading (after validation):

DEFAULT_LEVERAGE = 3
MAX_LEVERAGE = 5

Acceptance 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    criticalCritical priorityriskRisk management issuesprint-1Sprint 1 scope

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions