Documentation Index
Fetch the complete documentation index at: https://docs.sx.bet/llms.txt
Use this file to discover all available pages before exploring further.
This WebSocket API will be deprecated on July 1, 2026. See the Migration Guide to move to the Centrifuge-based API.
Subscribe to all consolidated trade updates on the exchange. You will receive updates when a consolidated trade is settled or a new consolidated trade available.
CHANNEL NAME FORMAT
recent_trades_consolidated
MESSAGE PAYLOAD FORMAT
See the trades section for the format of the message
Quarter-line bets emit three messages: two legs flagged with
isQuarterlineLeg: true and one synthetic parent flagged with
isQuarterLineParent: true. See the
quarter lines changelog entry.
const channel = realtime.channels.get('recent_trades_consolidated');
channel.subscribe((message) => {
console.log(message.data);
});
The above command returns JSON structured like this
{
"baseToken": "0x5147891461a7C81075950f8eE6384e019e39ab90",
"tradeStatus": "PENDING",
"bettor": "0x1562258769E6c0527bd83502E9dfc803929fa446",
"totalStake": "10.0",
"weightedAverageOdds": "707500000000000000000",
"marketHash": "0x5bea2dc8ad1be455547d1ed043cea34457c0b49a4f6aad0d4ddcb19107e9057f3",
"maker": false,
"settled": false,
"fillHash": "0xd81d39b80f1336affc84c6f03944ad5bc6d6ee1cd7a6ba8318595812d8ad11c7",
"gameLabel": "Andrey Rublev vs Fabian Marozsan",
"sportXeventId": "L13351999",
"gameTime": "2024-07-25T16:00:00.000Z",
"leagueLabel": "ATP Umag",
"bettingOutcomeLabel": "Andrey Rublev",
"bettingOutcome": 1,
"chainVersion": "SXN"
}