WebSocket
$ wscat -c wss://ws.qubit.com/ws/v1
Connected (press CTRL+C to quit)
> {"op":"subscribe","args":[{"channel":"trades","instId":"BTC-USDT-SWAP"}]}
< {"event":"subscribe","arg":{"channel":"trades","instId":"BTC-USDT-SWAP"},"ts":...}{ "op": "subscribe", // Operation: subscribe, unsubscribe, login, pong "args": [ ... ] // Operation arguments in an array, supporting batch operations }{ "event": "subscribe", // Event type: subscribe, unsubscribe, login, error, or a channel name "arg": { ... }, // Corresponding channel arguments "data": [ ... ], // The pushed business data "ts": 1678889400123 // Message timestamp (milliseconds) }
Last updated