Rate Limits & Quotas
IP-level request weights, info query row caps, WebSocket caps, account open-order limits, and on-chain address quotas.
Edge IP Weight
1,200 / min
Shared across REST + WS post
Active Cancels
0 weight
Expired cancels cost 5×
Open Orders
1,000 – 5,000
VIP 3+ 2,500 floor · MM 5,000
VPerp enforces limits across three layers: API edge rate & query limits, account open-order & notional safeguards, and deterministic on-chain address quotas.
1. Edge IP Limits
IPv6 addresses are aggregated by /64 prefix. Exceeding rate caps returns HTTP 429 (or a WebSocket 429 Too Many Requests error); exceeding heavy concurrency caps returns HTTP 503.
Request Weight (1,200 weight / min / IP)
| Endpoint | Weight |
|---|---|
Lightweight POST /info (l2Book, allMids, clearinghouseState, orderStatus, spotClearinghouseState, exchangeStatus) | 2 |
POST /info userRole | 60 |
All other POST /info queries | 20 (+1 per 20 rows for history queries; +1 per 60 rows for candleSnapshot) |
POST /exchange & WebSocket post action |
Connection, Concurrency & Timeout Caps
| Resource | Limit |
|---|---|
POST /exchange / /tx / /tx/batch throughput | 1,200 tx / min / IP (dedicated TCP ingress: 10,000 tx / s / IP) |
| Other non-weighted HTTP read routes | 100 req / s / IP (burst 4×) |
| Node in-flight & heavy query concurrency | 4,096 global in-flight; 16 global / 4 per-IP heavy reads (HTTP 503) |
HTTP payload, timeouts & minHeight | Max body 1 MiB; HTTP timeout 30 s (60 s heavy write deadline); minHeight max wait 500 ms |
| WebSocket connections | 4,096 node total; 10 concurrent / IP (30 new / min / IP) |
| WebSocket subscriptions | 1,000 total / IP (64 delta subs l2BookDelta/allMidsDelta, 10 unique users / IP) |
WebSocket messages & post RPC | 2,000 messages / min / IP (100 concurrent in-flight post / IP) |
2. Info Query Limits (POST /info)
Query Type (type) | Max Rows / Scan Cap | Notes |
|---|---|---|
l2Book | Default 20 levels (nLevels clamped 1 – 1,000) | 2 weight |
recentTrades | Up to 10 latest trades | Fixed cap |
candleSnapshot | Default 500 (no bounds); up to 5,000 with time bounds | +1 weight per 60 rows |
fundingHistory | Up to 500 rows / call | Paginate via startTime / endTime |
userFills / userFillsByTime / historicalOrders | Up to 2,000 rows / call | +1 weight per 20 rows |
userFunding / userNonFundingLedgerUpdates | Up to 2,000 rows / call | +1 weight per 20 rows |
twapHistory / userTwapSliceFills / userTwapSliceFillsByTime | Up to 2,000 rows / call | +1 weight per 20 rows |
portfolio | Scans up to 200,000 fill & funding history rows | Aggregated by time bucket |
| Hot history window | 30 days rolling | Older queries return HTTP 307 redirect to archive node |
3. Account Open-Order & Trading Safeguards
| Safeguard | Limit / Rule |
|---|---|
| Open Order Cap (Base) | across all resting orders and triggers |
| VIP & Market-Maker Floors | VIP 3+ accounts receive a 2,500 open-order floor; active Market Makers (> 0.5% 7d/30d maker share) unlock the 5,000 max |
| Trigger & Reduce-Only Sub-Cap | Max 1,000 active triggers/account; new resting RO/trigger placement requires total open orders < 1,000. Non-resting IOC/Market closes, liquidations, and already-fired RO triggers are exempt |
| Active TWAP Cap | Max 10 active TWAPs/account (duration 5 min – 7 days, min 100 USDC total, min 12 USDC slice, ±3% mark slippage) |
| Batch Action Caps | Up to 256 items per order, batchModify, batchModifyAtomic, cancel, or cancelByCloid; massQuote max 64 markets / 256 legs |
| ScheduleCancel | Zero volume threshold; min lead 1.5 s; max 100 firings/UTC day; 0 on-chain weight when non-expired |
| Min Order Notional | 10 USDC at tradeable price (full-position reduce-only closes exempt) |
| Max Immediate Perp Order (IOC/Market) | >= 25× leverage: 30M USDC; 20–24×: 5M USDC; 10–19×: 2M USDC; < 10×: 500k USDC |
| Price Bands | Resting limit orders within ±80% of reference index; aggressive IOC/Market default ±5% (configurable 1%–20%) |
| Congestion Throttling | If prior block reaches >= 90% capacity (>= 29,491 / 32,768 ops), new opening ops cap at 2× yesterday's maker share; cancels and reduce-only closes are never throttled |
4. On-Chain Address Quota & Mempool Limits
Each master account (pooled with its sub-accounts) receives an on-chain request budget that scales with cumulative trading volume:
- Cancels are free: Non-expired
cancel,cancelByCloid,cancelAll,scheduleCancel, andtwapCancelactions consume 0 weight. Cancels submitted pastexpiresAfterincur a 5× weight penalty; whenever cancel weight is charged, cancels enjoy an extended ceiling of . - Batch weight: Single action = 1 weight; batch actions (
order,batchModify,batchModifyAtomic,massQuote) =max(items_or_legs, 1)(max 256 per batch). - Slow lane & permanent surplus: When exhausted, accounts throttle to 1 single-weight request per 10 seconds. Purchase permanent surplus anytime via
reserveRequestWeightat 0.0005 USDC / unit. - Mempool pending queue: Up to 4,096 pending transactions per signing address (with additional reserved headroom for cancels), paired with the 100-nonce sliding window.
- Protocol Vault (MMV) exemption: All four MMV family accounts are exempt from on-chain address quotas.
- Live check: Query
POST /infowith{"type": "userRateLimit", "user": "0x..."}.