Status
The checked-inasyncapi.yaml file has been upgraded to AsyncAPI 3 for Mintlify. Use the WebSocket Reference tab for the generated channel and message reference.
This page remains the protocol guide and highlights the runtime behavior that matters most when integrating.
Transport
- Protocol: raw WebSocket
- Message envelope: JSON-RPC 2.0
- Trading: WebSocket only
- Market-data subscriptions: WebSocket only
Request shape
Success response
Subscription notification
Core methods
Authentication
public/auth
Trading
private/buyprivate/sellprivate/cancelprivate/cancel_all
Queries
public/get_instrumentsprivate/get_open_ordersprivate/get_account
Subscriptions
public/subscribepublic/unsubscribe
Channel patterns
| Channel | Auth | Description |
|---|---|---|
book.{instrument_id}.{depth} | no | Book snapshots and updates |
trades.{instrument_id} | no | Public trade feed |
user.orders | yes | Order status updates for the authenticated user |
user.trades | yes | Trade notifications for the authenticated user |
logs | no | Gateway log stream for dashboards and debugging |
Common application errors
| Code | Meaning |
|---|---|
1001 | Not authenticated |
1002 | Insufficient balance |
1003 | Order not found |
1004 | Instrument not found |
1005 | Invalid price |
1006 | Invalid size |
1007 | Rate limit exceeded |
1009 | Market closed or instrument expired |
Reference split
WebSocket Referencetab: generated reference fromasyncapi.yaml- This page: conceptual guide and notable protocol behavior