Subscribe to all trade updates on the exchange. You will receive updates when a trade is settled or a new trade is placed.CHANNEL NAMErecent_trades:globalMESSAGE PAYLOAD FORMATSee the trades section for the format of the message.
// To subscribeconst sub = client.newSubscription("recent_trades:global", { positioned: true, recoverable: true });sub.on("publication", (ctx) => { const data = ctx.data; // message handler logic});sub.subscribe();