Overview
Architecture, trading mechanics, VIP schedules, account security, and programmatic APIs for VPerp and VCore.
VPerp is an on-chain perpetual futures and spot trading platform powered by VCore—a purpose-built Layer 1 blockchain where the order book, matching engine, margin system, hourly funding, liquidations, and settlement execute deterministically inside consensus.
Every confirmed order, fill, fee, funding tick, and liquidation produces an auditable, independently replayable state transition—eliminating opaque off-chain matching engines while delivering exchange-grade throughput and zero gas fees for trading.
Bridge official Circle USDC from Base or Arbitrum One into your VPerp account.
Sign via EIP-712 (MetaMask / API Agent) or post-quantum ML-DSA-44 with zero trading gas.
VCore orders blocks Cancel-First, matches FIFO on-chain, and settles balances atomically.
Verify state roots, finality certificates, and fills via /info, WebSocket, or archive replay.
Documentation Map
Choose the section that matches what you are building or trading:
| Audience | Recommended Reading Path | Key Topics |
|---|---|---|
| New Traders & Developers | Quickstart Guide → Order Types → Errors & Order Statuses | 5-minute onboarding, curl / TypeScript / Python starter snippets, production checklist, rejection troubleshooting |
| Core Protocol & Security | Consensus & Finality → Execution Engine → Matching & Pricing | DAG BFT consensus, finality certificates, Post-Quantum defense-in-depth, 5-class ordering, Oracle & Mark Price, STP |
| Active Traders | Order Types → Funding & Margin → Fees & VIP | GTC/IOC/ALO, Reduce-Only (200 cap), Mark TP/SL, TWAP, cross/isolated/unified margin, tiered MM, hourly funding |
| Institutions & Market Makers | Accounts & Security → Fees & VIP → Rate Limits & Quotas | Sub-accounts (up to 10), scoped API agents (up to 50), MM 1–3 rebates (up to -0.3 bps), MassQuote, Plan B address budgets |
| Liquidity & Bridge Users | Bridge & Protocol Vault | Base & Arbitrum USDC bridge caps, dispute windows, 7d/30d MMV vault queues, 2× VIP NAV boost |
| API Developers | Asset IDs & Conventions → Authentication & Signing → Info / Exchange / WebSocket | Schema, EIP-712 & ml-dsa-44 signing, 100-nonce window, Read/Write IP limits, per-block L2 deltas, WS post RPC |
Core API Interfaces
VPerp exposes three primary programmatic interfaces across hot API nodes (30-day rolling history) and archive nodes:
| Interface | Method & Path | Purpose |
|---|---|---|
| Info | POST /info | Public read-only market data, L2 order books, candles, funding history, account positions, fills, VIP fees, and vault states |
| Exchange | POST /exchange | Signed state-changing actions: placing/cancelling/modifying orders, mass quotes, leverage, TWAPs, transfers, agents, and withdrawals |
| WebSocket | GET /ws | Low-latency public market streams, real-time user order/fill events, and bidirectional WebSocket post RPC |
Hyperliquid-Compatible API Schema
VPerp’s REST and WebSocket payloads follow the Hyperliquid JSON schema so existing trading bots and market-making stacks integrate cleanly. The critical difference is the signing domain: VPerp signs under domain name: "vperp", version: "1", and uses vperpChain (instead of hyperliquidChain) for user-signed actions. See Authentication & Signing.
Request Basics & Read-After-Write Consistency
- Content-Type: All REST calls use
POSTwithContent-Type: application/jsonand atypediscriminator field (POST /infomax body 64 KiB;POST /exchangemax body 1 MiB). - Decimal Strings: Prices (
p/px), sizes (s/sz), and USD amounts are encoded as decimal strings without insignificant trailing zeros (e.g.,"98420.5","0.25"). - Timestamps: All timestamps are Unix epoch milliseconds (e.g.,
1700000000000). - Response Headers: Every
POST /infoandPOST /exchangeresponse returnsx-vcore-height(the committed block height served by the node).POST /exchangealso returnsx-vcore-tx-hash, andwithdraw3includesx-vcore-withdrawal-id. - Read-After-Write (
minHeight): Pass"minHeight"in anyPOST /inforequest to guarantee your read reflects a transaction you just confirmed. The node waits up to 500 ms until its local state reaches that height before answering:
{
"type": "clearinghouseState",
"user": "0x0000000000000000000000000000000000000000",
"minHeight": 2418553
}- Historical Retention: Hot API nodes keep 30 days of rolling history. Queries spanning older timestamps return
HTTP 307 Temporary Redirectpointing to an archive node.