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 50ms intervals.
  • Depth: up to 20 levels.
  • symbols accepts a wildcard * to stream all symbols.