Ticker

Real-time streaming day OHLCV data and last trade

Receive aggregated 24-hour OHLCV data from all supported exchanges and the last price before each update every 3 seconds.

Subscriptions to the ticker feed will receive realtime trades that occur on any of the exchanges that are active on the sFOX platform.

Subscription Instructions

Authentication required. Please refer to the WebSocket Authentication page here for more details.

Payload Details

Example Code & Ticker Message

const WebSocket = require('ws')

const ws = new WebSocket('wss://ws.sfox.com/ws')

ws.on('message', function(data) {
    console.log(data);
});

ws.on('open', function() {
  const subscribeMsg = {
    type: 'subscribe',
    feeds: ['ticker.sfox.btcusd']
  }
  ws.send(JSON.stringify(subscribeMsg));
});

Last updated