Connecting

Connecting to the sFOX websocket feed gives you access to real-time market data from all supported exchanges.

EnvironmentEndpoint

Production

wss://ws.sfox.com/ws

Sandbox

wss://ws.staging.sfox.com/ws Contact support to access the Sandbox environment

const WebSocket = require('ws');

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

// don't forget to subscribe (see below)
ws.on('message', function(data) {
    // Do something with data
    console.log(data);
});

Last updated