Skip to main content

WebSocket API

The NBX WebSocket API provides real-time updates for market data, order books, and private trading events. WebSocket URL: wss://api.novig.us/tape QA Environment: wss://api-qa.novig.us/tape

Key Features

  • Real-time order book updates - Subscribe to public order book ticks (PLACE, CANCEL)
  • Market lifecycle events - Get notified when markets open, close, start, or end
  • Private trading updates - Receive fill and cancel notifications for your orders
  • Heartbeat mechanism - Client-initiated ping/pong to keep the connection alive

Constraints

  • Idle timeout: the connection is dropped after 300 seconds with no traffic in either direction. Any message (including server-sent data) resets the idle timer; clients should send pings during quiet periods (see Heartbeat)
  • Rate Limits 10 messages per minute

Available Channels

Connection Flow

  1. Establish WebSocket connection with Authorization header
  2. Wait for connection to open
  3. Send subscription messages for desired channels
  4. Receive subscription confirmation
  5. Process incoming messages
  6. Send a ping if no message has been received from the server for ~30 seconds — the server replies with a pong, and either resets the 300s idle timer (any traffic in either direction will)
  7. Handle reconnection if connection drops