AI TradingRisk Management

Risk Management

Overview

GX AI Trading Vaults implement multiple layers of risk management to protect user capital. Every trade proposed by the AI must pass through a deterministic Rust-based risk validator before execution. The system includes circuit breakers, automatic pause mechanisms, and a paper trading mode for validation.

Risk Validator (Layer 4)

The risk validator is a hard-coded Rust module that acts as the final gate before any order is sent to execution. It enforces the following checks on every trade:

CheckDescriptionAction on Failure
Leverage LimitOrder leverage <= tier maximumTrade rejected
Position SizeOrder size <= tier equity percentageTrade rejected
Stop-Loss RequiredEvery position must have a stop-lossTrade rejected
Stop-Loss DistanceSL within reasonable ATR-based rangeTrade rejected
Daily Loss BudgetDay’s cumulative loss < daily limitTrade rejected
Drawdown ThresholdCurrent drawdown < tier maximumVault paused
Concentration LimitNo single asset > 60% of equityTrade rejected
Correlated ExposureCombined exposure to correlated assets cappedTrade rejected

The risk validator cannot be bypassed by the LLM. If any rule is violated, the trade is rejected and the rejection is logged with the specific rule that failed.

Circuit Breakers

Automatic circuit breakers halt trading when abnormal conditions are detected.

Circuit BreakerTriggerAction
Price MoveMark price moves >10% in 5 minutesAll trading paused for 15 minutes
Drawdown LimitVault drawdown exceeds tier maximumVault enters reduce-only mode
Daily LossCumulative daily loss exceeds tier limitNo new positions until next UTC day
Oracle FailurePrice feed stale for >60 secondsAll trading paused until feed resumes
Consecutive Losses5+ consecutive losing tradesAI pauses for 30 minutes, recalibrates
Execution Failure3+ failed order submissionsTrading paused, alert sent

Automatic Pause (Max Drawdown)

When a vault’s equity drops below the maximum drawdown threshold for its tier, the following sequence executes:

  1. All open orders are cancelled immediately
  2. The vault enters reduce-only mode (can only close existing positions)
  3. No new positions can be opened
  4. The user receives a notification
  5. The vault remains paused until the user manually reactivates it or withdraws
TierMax DrawdownAuto-Pause Trigger
Capital Guard10%Vault equity drops to 90% of deposit
Growth15%Vault equity drops to 85% of deposit
High Octane25%Vault equity drops to 75% of deposit

Paper Trading Mode

Every new strategy undergoes a mandatory paper trading validation period before being deployed with real capital.

Paper Mode Specifications:

ParameterValue
DurationMinimum 7 days
Data SourceLive market data (real-time)
ExecutionSimulated fills at market price + estimated slippage
Metrics TrackedSharpe ratio, max drawdown, win rate, profit factor
Graduation CriteriaPositive PnL over 7 days with drawdown < tier limit

Paper mode uses identical AI logic, risk validation, and data pipelines as live trading. The only difference is that orders are simulated rather than submitted to the GXCore matching engine.

”Do Nothing” as First-Class Action

The AI is explicitly designed to hold when conviction is low. Research shows that “Monk Mode” (doing nothing) frequently outperforms active models in uncertain markets:

  • If the LLM’s confidence score < 0.3, the AI holds and logs its reasoning
  • Every action includes a confidence score (0-1) and a reasoning annotation
  • The AI is rewarded for avoiding trades in high-uncertainty environments
  • Hold decisions are logged with the same detail as trade decisions for transparency

Security Layers

Custody

GX Core’s API Wallet mechanism ensures the AI agent can trade but cannot withdraw. Withdrawal requires the user’s master key, enforced at the GX Chain protocol level.

Risk Isolation

Each vault operates independently with its own:

  • API wallet (separate key per vault)
  • Risk parameters (based on selected tier)
  • Position tracking (no cross-vault exposure)
  • Circuit breaker state

Monitoring

  • 24/7 automated monitoring of all active vaults
  • Real-time alerts for circuit breaker triggers
  • Daily automated reconciliation of vault balances
  • Weekly performance reports available in the user dashboard

User Controls

Users retain the following controls at all times:

ActionDescription
Withdraw AnytimeFull withdrawal with immediate position closure
Pause VaultManually pause AI trading without withdrawing
Change TierSwitch risk tier (requires closing all positions first)
View TradesFull transparency into every trade with reasoning
Export HistoryDownload complete trade history as CSV