Skip to content
🌐Network: Mainnet

System Endpoints

System monitoring and health check endpoints.

WebSocket

For real-time data streaming via WebSocket, see the dedicated WebSocket documentation.

Quick Reference:

  • URL: wss://api.testnet.o2.app/v1/ws
  • Subscriptions: subscribe_depth, subscribe_depth_view, subscribe_trades, subscribe_orders, subscribe_balances, subscribe_nonce
  • Heartbeat: Send PING, receive PONG
  • Timeout: 60 seconds inactivity

Health Check

Endpoint: GET /health

Description: Check API server health status.

Response:

json
{
  "status": "ok"
}

Source: packages/api/src/websocket/