Skip to main content
QFEX provides a 500ms pulsed stream of the order book up to 20 levels deep via websocket.

How it works

Connect to the public websocket:
  • URL: wss://mds.qfex.com
Then send a subscribe message:
You can also use a wildcard to subscribe to all symbols:

Significant Figures (Optional)

You can optionally specify sig_figs to aggregate order book levels:
  • Default: 0 (no aggregation)
  • Valid values: 0, 1, or 2
  • Purpose: Aggregates individual levels to the next significant figure from the tick size
    • Bids round down
    • Offers round up
  • Response format: Unchanged (same structure as without sig_figs)

Sample Code

Example Response

Unsubscribe (optional)


Notes
  • Pulsed at 500ms intervals.
  • Depth: up to 20 levels.
  • symbols accepts a wildcard * to stream all symbols.

Private liquidity and public depth

This public feed includes displayed resting quantities only. The engine excludes private quantities from public depth snapshots before MDS publication; mixed levels publish only displayed size, and private-only levels do not consume the public depth limit. Public reconnect snapshots and HTTP depth use the same filtered view. Public depth is therefore not the complete executable book. Funding, marks and risk continue to use the full internal book, including private liquidity. See Private-order API.