Skip to Content
VPerpAPI

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)

EndpointWeight
Lightweight POST /info (l2Book, allMids, clearinghouseState, orderStatus, spotClearinghouseState, exchangeStatus)2
POST /info userRole60
All other POST /info queries20 (+1 per 20 rows for history queries; +1 per 60 rows for candleSnapshot)
POST /exchange & WebSocket post action1+⌊batch_len/40⌋1 + \lfloor \text{batch\_len} / 40 \rfloor

Connection, Concurrency & Timeout Caps

ResourceLimit
POST /exchange / /tx / /tx/batch throughput1,200 tx / min / IP (dedicated TCP ingress: 10,000 tx / s / IP)
Other non-weighted HTTP read routes100 req / s / IP (burst 4×)
Node in-flight & heavy query concurrency4,096 global in-flight; 16 global / 4 per-IP heavy reads (HTTP 503)
HTTP payload, timeouts & minHeightMax body 1 MiB; HTTP timeout 30 s (60 s heavy write deadline); minHeight max wait 500 ms
WebSocket connections4,096 node total; 10 concurrent / IP (30 new / min / IP)
WebSocket subscriptions1,000 total / IP (64 delta subs l2BookDelta/allMidsDelta, 10 unique users / IP)
WebSocket messages & post RPC2,000 messages / min / IP (100 concurrent in-flight post / IP)

2. Info Query Limits (POST /info)

Query Type (type)Max Rows / Scan CapNotes
l2BookDefault 20 levels (nLevels clamped 1 – 1,000)2 weight
recentTradesUp to 10 latest tradesFixed cap
candleSnapshotDefault 500 (no bounds); up to 5,000 with time bounds+1 weight per 60 rows
fundingHistoryUp to 500 rows / callPaginate via startTime / endTime
userFills / userFillsByTime / historicalOrdersUp to 2,000 rows / call+1 weight per 20 rows
userFunding / userNonFundingLedgerUpdatesUp to 2,000 rows / call+1 weight per 20 rows
twapHistory / userTwapSliceFills / userTwapSliceFillsByTimeUp to 2,000 rows / call+1 weight per 20 rows
portfolioScans up to 200,000 fill & funding history rowsAggregated by time bucket
Hot history window30 days rollingOlder queries return HTTP 307 redirect to archive node

3. Account Open-Order & Trading Safeguards

SafeguardLimit / Rule
Open Order Cap (Base)min⁡ ⁣(5,000, 1,000+⌊30d_WeightedVolUSDC/5,000,000⌋)\min\!\big(5{,}000,\ 1{,}000 + \lfloor \text{30d\_WeightedVol}_{\text{USDC}} / 5{,}000{,}000 \rfloor\big) across all resting orders and triggers
VIP & Market-Maker FloorsVIP 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-CapMax 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 CapMax 10 active TWAPs/account (duration 5 min – 7 days, min 100 USDC total, min 12 USDC slice, ±3% mark slippage)
Batch Action CapsUp to 256 items per order, batchModify, batchModifyAtomic, cancel, or cancelByCloid; massQuote max 64 markets / 256 legs
ScheduleCancelZero volume threshold; min lead 1.5 s; max 100 firings/UTC day; 0 on-chain weight when non-expired
Min Order Notional10 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 BandsResting limit orders within ±80% of reference index; aggressive IOC/Market default ±5% (configurable 1%–20%)
Congestion ThrottlingIf 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:

RequestBudget=10,000+⌊cumVlm_USDC⌋+surplus\text{RequestBudget} = 10{,}000 + \lfloor \text{cumVlm\_USDC} \rfloor + \text{surplus}
  • Cancels are free: Non-expired cancel, cancelByCloid, cancelAll, scheduleCancel, and twapCancel actions consume 0 weight. Cancels submitted past expiresAfter incur a 5× weight penalty; whenever cancel weight is charged, cancels enjoy an extended ceiling of min⁡(budget+100,000, 2×budget)\min(\text{budget} + 100{,}000,\ 2 \times \text{budget}).
  • 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 reserveRequestWeight at 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 /info with {"type": "userRateLimit", "user": "0x..."}.

On this page