Trading events
Pushed on the TRADING channel: order booked, rejected, closed, trade executed, fully filled and moved (spot and futures variants), plus futures MARGIN_UPDATE, minutely SETTLEMENT, four-hourly FUNDING_PAYMENT, and BALANCE_ADJUSTMENT on deposits and withdrawals.
Order events carry event: ORDER and a status; their type field is deprecated.
Private. Create, move and cancel orders, and receive a feed of order updates based on the trading activity in your account. You must be authenticated (token with the Trade permission) and subscribed to this channel to send trading messages. Order requests share one rate limit per account (see Rate limits).
apiTokenAuthorizationBearer <token>API token sent in the AUTHENTICATE message (not as a header). Generate it in the One Trading UI with the Trade permission; a valid token authorises all private channels for the connection.
const socket = new WebSocket("wss://streams.fast.onetrading.com/");socket.addEventListener("message", (event) => { console.log(event.data);});