Skip to main content

Connection

const ws = new WebSocket('wss://exchange-wss.bulk.trade');
Exchange WebSocket URL: wss://exchange-wss.bulk.trade

Stream Types


Quick Example

const WebSocket = require('ws');

const ws = new WebSocket('wss://exchange-wss.bulk.trade');

ws.on('open', () => {
  // Subscribe to ticker
  ws.send(JSON.stringify({
    method: 'subscribe',
    subscription: [{
      type: 'ticker',
      symbol: 'BTC-USDC'
    }]
  }));
});

ws.on('message', (data) => {
  const message = JSON.parse(data);
  console.log('Received:', message);
});

Rate Limits

  • Maximum 100 subscriptions per connection
  • Maximum 1000 messages per second
  • Violating limits will result in disconnection

Next Steps