Backpack Exchange: REST, WebSocket, RFQ, and vaults logoBackpack Exchange: REST, WebSocket, RFQ, and vaults
Signed requests use X-Timestamp, X-Window, X-API-Key, X-Signature. Window default 5000, max 60000. Older API guide stays.
devrels.xyz/a/314Backpack Exchange API is the live Redoc for programmatic trade execution. REST is https://api.backpack.exchange/. WebSocket is wss://ws.backpack.exchange/. Create a key in account settings. Spec version 1.0. 70 paths.
Signed requests mutate state. Some reads also accept a signature or a session. Headers: X-Timestamp (unix ms), X-Window (default 5000, max 60000), X-API-Key (base64 ED25519 verifying key), X-Signature (base64). The June developer guide stays: Backpack Exchange API developer guide.
Signing
Sort body or query keys alphabetically into a query string. Prefix the instruction type. Append ×tamp=<ms>&window=<window>. If you omit X-Window, still sign the default 5000. Batch POST /orders repeats instruction=orderExecute per order, then timestamp and window once at the end.
instruction=orderCancel&orderId=28&symbol=BTC_USDT×tamp=1614550000000&window=5000What the spec lists now
Public market data: ping, time, status, markets, ticker, depth, klines, trades, mark prices, funding, open interest, holidays, sessions, securities.
Private: account, capital, collateral, wallets, positions, orders, borrow/lend, dust convert. History under /wapi/v1/history/*. Deposits and withdrawals under /wapi/v1/capital/*.
Newer groups on the same 70 paths: RFQ (/api/v1/rfq, quote, accept, refresh, cancel), prediction markets, vault mint/redeem/NAV, and strategies. RFQ fills stream on account.rfqUpdate. Deferred settlement is documented for the exchange broker on stock markets.
Resources
Keep reading
Backpack Exchange processes orders through a single linear command stream into one matching engine. The API uses ED25519 keypair auth — no API-key secrets, just public/private keypairs you control. REST at api.backpack.exchange, WebSocket at wss://ws.backpack.exchange. Official Rust SDK; community Python SDK on PyPI.
Prepare returns an unsigned payment transaction. Sign it locally. Submit. Poll the payment signature. Never pay twice.
Parse signatures or address history into decoded instructions, transfers, and summaries. Same IDL catalog as Parsed Streams. Enhanced Transactions stays in maintenance mode.
Get new articles in your inbox
Technical deep-dives on Solana tooling, infrastructure, and ecosystem. No noise.
