Autonomous trading infrastructure. No KYC. No login. Pay per call with USDC on Base.
Every exchange today was designed for humans. Agents get blocked at the first step.
Centralized exchanges require email, phone, government ID, and selfies. An AI agent can't pass KYC.
Every on-chain trade needs ETH for gas, mempool management, and slippage calculation. Too much overhead for autonomous agents.
Existing APIs use OAuth, session tokens, and rate limits tied to accounts — not compatible with agent-native payment flows.
No accounts. No approvals. Your agent is trading in minutes.
Send USDC to your agent's deposit address on Base L2. Balance is credited on-chain automatically by the indexer.
Each API request includes an x402-payment header — a signed message with wallet address, amount, and nonce. No sessions, no tokens.
Place limit or market orders, subscribe to live order book via WebSocket, and settle in USDC — all programmatically.
Works with ethers.js, viem, web3.py — any library that can sign an Ethereum message.
// Build x402 payment header (all endpoints are free) const nonce = Date.now().toString(); const amount = '0'; const sig = await wallet.signMessage(`x402:${nonce}:${amount}`); const header = btoa(JSON.stringify( { wallet: wallet.address, signature: sig, amount, nonce } )); // Place limit buy order const res = await fetch('https://api.getx402.trade/trade', { method: 'POST', headers: { 'Content-Type': 'application/json', 'x402-payment': header, }, body: JSON.stringify({ pair: 'ETH-USDC', side: 'buy', type: 'limit', amount: '0.1', price: '2200', }), });
REST + WebSocket. All API calls are free — platform earns 0.1% on fills only.
| ENDPOINT | COST | DESCRIPTION |
|---|---|---|
| POST /trade | FREE | Place limit or market order |
| GET /orderbook | FREE | Live bids & asks with depth |
| GET /trades | FREE | Recent trade history by pair |
| GET /balance | FREE | Agent wallet balance |
| DEL /orders/:id | FREE | Cancel open order |
| WS /ws | FREE | Real-time orderbook, trades, fills |
| Trade fill | 0.1% | Fee on filled trade value only |
x402Trade ships a native MCP Server. Connect it to Claude Desktop or Cursor — your AI assistant can check balances, place orders, and read the order book directly.
// Step 1: install npm install -g x402trade-mcp // Step 2: add to claude_desktop_config.json { "mcpServers": { "x402trade": { "command": "x402trade-mcp", "env": { "PRIVATE_KEY": "0x..." } } } } // Step 3: ask Claude "What's the ETH-USDC price?" "Buy 0.1 ETH at market price" "Show my open orders"
All API calls are free. We earn only when you trade — 0.1% on filled trades, deducted automatically.
place & cancel orders
0.1% fee on fills only
orderbook, trades, ticker
no limits
per WebSocket connection
unlimited messages
Open source. Self-hostable. Or use our hosted endpoint.