Equity
Unrealized PnL
Long:PositionSize * (Mark - EntryPrice)
Short: PositionSize * (EntryPrice - Mark)
Margin Requirements
Base Calculation
Leverage Tiers
| Position Notional | Max Leverage | Initial Margin | Maintenance Margin |
|---|---|---|---|
| 50k | 10× | 10% | 5% |
| 250k | 5× | 20% | 10% |
| 1M | 3× | 33% | 16.7% |
| $1M+ | 2× | 50% | 25% |
Session Add-Ons
| Session | IM Add-On | Example (Base 10%) |
|---|---|---|
| Reference Open | 0% | 10% |
| Weekday Overnight | 10-25% | 11-12.5% |
| Weekend | 50-100% | 15-20% |
Margin States
| State | Condition | Behavior |
|---|---|---|
| Healthy | Equity ≥ IM | Normal trading |
| Margin Call | MM ≤ Equity < IM | Reduce-only mode |
| Liquidation | Equity < MM | Liquidation triggered |
Margin Checks
Pre-Trade
- Compute new position after order fills
- Calculate
IM_required(including session add-ons) - Reject if
Equity < IM_required
Continuous Monitoring
Every 1-3 seconds:- If
Equity < MM→ liquidation - If
MM ≤ Equity < IM→ reduce-only (optional)
Session Transitions
Market Opens
- Remove session margin add-on
- Accounts in margin call may return to healthy
Market Closes
- Apply session margin add-on
- Grace period (15 min) before liquidating due to add-on alone
- Cancel orders violating new leverage limits
Deposits & Withdrawals
Deposits: Instantly increase equity Withdrawals: RequireEquity_after ≥ IM_required