
- HTTP & WebSocket JSON-RPC API: send state-changing requests with self-custodial signed actions or non-sensitive market-data requests.
- L1 Transactions: deposit to the exchange via on-chain contract calls or interact with the exchange with a multi-sig. This method also allows users to withdraw funds using the “escape hatch”.
SDKs
TypeScript
@derivexyz/derive-tsRust
Coming soon.
Python
Coming soon.
OpenAPI / AsyncAPI
Detailed API specifications can be downloaded by adding the below to the docs base url:- OpenAPI:
DOCS_BASE_URL/openapi.json(applies to both WS and HTTP) - AsyncAPI for WS-only routes:
DOCS_BASE_URL/websocket.asyncapi.json - AsyncAPI for WS subscriptions:
DOCS_BASE_URL/subscriptions.asyncapi.json
Endpoints
Next steps
Quickstart
Connect, log in, and place your first order end-to-end.
Authentication
Session login and per-action EIP-712 signing, step by step.
Subscriptions
WebSocket channels for order books, tickers, trades, and account updates.
Action signing
Typehashes, modules, and per-deployment signing parameters.

