wss://api.binance.com/sapi/wssPrediction Order Book by marketId
Order book (bid/ask) updates for one market. Only active markets are pushed.
Stream parameters
marketIdMarket ID to subscribe to — the marketId inside markets[] returned by market/list
or market/detail. It is not marketTopicId and not externalId. A wrong id is
never rejected: subscribing with marketTopicId, externalId, or with a closed or
resolved market returns the same successful COMMAND reply as a correct id and then
pushes nothing at all, so a stream that stays silent is far more likely a wrong id than
a broken connection.
Prediction Order Book by marketId › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://api.binance.com/sapi/wss/ws/web3_prediction_orderbook_{marketId} - Combined stream via URL:
wss://api.binance.com/sapi/wss/stream?streams=web3_prediction_orderbook_{marketId} - Combined stream via request: Connect to
wss://api.binance.com/sapi/wss/stream, then send the SUBSCRIBE request shown below.
commandSubscription command.
valueTopics to subscribe to, joined by |.
Prediction Order Book by marketId › Responses
Prediction Stream response
msgTypeMessage type, always orderbook.
marketIdMarket ID of this order book, the same markets[].marketId used by the REST
API.
updateTimestampMsQuote update time in milliseconds (UTC). Messages for the same market may arrive out of order, so discard anything older than the snapshot you already have.
Ask levels sorted by price ascending, usually the top 50 or fewer; an empty
array means no asks. Values may carry floating-point noise (e.g.
6865.999999999999), so round them before display.
[0]Price between 0 and 1 — 0.32 means 0.32 USDT per share.
[1]Number of shares, decimals allowed. Always greater than 0.
Bid levels sorted by price descending, usually the top 50 or fewer; an empty
array means no bids. Values may carry floating-point noise (e.g.
6865.999999999999), so round them before display.
[0]Price between 0 and 1 — 0.31 means 0.31 USDT per share.
[1]Number of shares, decimals allowed. Always greater than 0.
Reward claim failed
Pushed when a claim fails completely — a single claim, or every item of a batch. For a batch, only the first failed item's amount and outcome are included.
Reward claim failed › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://api.binance.com/sapi/wss/ws/web3_prediction_pm_claim_fail - Combined stream via URL:
wss://api.binance.com/sapi/wss/stream?streams=web3_prediction_pm_claim_fail - Combined stream via request: Connect to
wss://api.binance.com/sapi/wss/stream, then send the SUBSCRIBE request shown below.
commandSubscription command.
valueTopics to subscribe to, joined by |.
Reward claim failed › Responses
Prediction Stream response
pushIdUnique ID of this push. Use it to remove duplicates.
amountAmount of the first failed claim. Rounded down to 2 decimals; shown as
<0.01 if smaller.
outcomeOutcome name of the first failed claim, such as Yes or No; empty if
unavailable.
Batch claim partially succeeded
Pushed when only part of a batch claim succeeds. Only pushId is included — call the REST
API for details.
Batch claim partially succeeded › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://api.binance.com/sapi/wss/ws/web3_prediction_pm_claim_partial_success - Combined stream via URL:
wss://api.binance.com/sapi/wss/stream?streams=web3_prediction_pm_claim_partial_success - Combined stream via request: Connect to
wss://api.binance.com/sapi/wss/stream, then send the SUBSCRIBE request shown below.
commandSubscription command.
valueTopics to subscribe to, joined by |.
Batch claim partially succeeded › Responses
Prediction Stream response
pushIdUnique ID of this push. Use it to remove duplicates.
Reward claim succeeded
Pushed when a claim fully succeeds — a single claim, or every item of a batch. Only the total is reported; no market title or outcome is included.
Reward claim succeeded › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://api.binance.com/sapi/wss/ws/web3_prediction_pm_claim_success - Combined stream via URL:
wss://api.binance.com/sapi/wss/stream?streams=web3_prediction_pm_claim_success - Combined stream via request: Connect to
wss://api.binance.com/sapi/wss/stream, then send the SUBSCRIBE request shown below.
commandSubscription command.
valueTopics to subscribe to, joined by |.
Reward claim succeeded › Responses
Prediction Stream response
pushIdUnique ID of this push. Use it to remove duplicates.
amountTotal USDT claimed. Rounded down to 2 decimals; shown as <0.01 if smaller.
Limit order fully filled
Pushed when a limit order is fully filled.
Limit order fully filled › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://api.binance.com/sapi/wss/ws/web3_prediction_pm_limit_order_filled - Combined stream via URL:
wss://api.binance.com/sapi/wss/stream?streams=web3_prediction_pm_limit_order_filled - Combined stream via request: Connect to
wss://api.binance.com/sapi/wss/stream, then send the SUBSCRIBE request shown below.
commandSubscription command.
valueTopics to subscribe to, joined by |.
Limit order fully filled › Responses
Prediction Stream response
pushIdUnique ID of this push. Use it to remove duplicates.
amountFilled amount in USDT — paid for a buy, received after fees for a sell. Rounded
down to 2 decimals; shown as <0.01 if smaller.
topicMarket title, cut to 12 characters with .. added when longer; empty if
unavailable.
Limit order partially filled
Pushed on each new partial fill of a limit order. One order can be pushed several times,
so always remove duplicates by pushId.
Limit order partially filled › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://api.binance.com/sapi/wss/ws/web3_prediction_pm_limit_order_partial_fill - Combined stream via URL:
wss://api.binance.com/sapi/wss/stream?streams=web3_prediction_pm_limit_order_partial_fill - Combined stream via request: Connect to
wss://api.binance.com/sapi/wss/stream, then send the SUBSCRIBE request shown below.
commandSubscription command.
valueTopics to subscribe to, joined by |.
Limit order partially filled › Responses
Prediction Stream response
pushIdUnique ID of this push. Use it to remove duplicates.
amountTotal filled so far in USDT, not just this fill — paid for a buy, received
after fees for a sell. Rounded down to 2 decimals; shown as <0.01 if smaller.
topicMarket title, cut to 12 characters with .. added when longer; empty if
unavailable.
Limit order submission failed
Pushed when a limit order is rejected when placed. No amount is included.
Limit order submission failed › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://api.binance.com/sapi/wss/ws/web3_prediction_pm_limit_submit_fail - Combined stream via URL:
wss://api.binance.com/sapi/wss/stream?streams=web3_prediction_pm_limit_submit_fail - Combined stream via request: Connect to
wss://api.binance.com/sapi/wss/stream, then send the SUBSCRIBE request shown below.
commandSubscription command.
valueTopics to subscribe to, joined by |.
Limit order submission failed › Responses
Prediction Stream response
pushIdUnique ID of this push. Use it to remove duplicates.
topicMarket title, cut to 12 characters with .. added when longer; empty if
unavailable.
Limit order submitted successfully
Pushed when the user's limit order is successfully placed on the order book.
Limit order submitted successfully › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://api.binance.com/sapi/wss/ws/web3_prediction_pm_limit_submit_success - Combined stream via URL:
wss://api.binance.com/sapi/wss/stream?streams=web3_prediction_pm_limit_submit_success - Combined stream via request: Connect to
wss://api.binance.com/sapi/wss/stream, then send the SUBSCRIBE request shown below.
commandSubscription command.
valueTopics to subscribe to, joined by |.
Limit order submitted successfully › Responses
Prediction Stream response
pushIdUnique ID of this push. Use it to remove duplicates.
amountTotal order amount in USDT, before fees. Rounded down to 2 decimals; shown as
<0.01 if smaller.
topicMarket title, cut to 12 characters with .. added when longer; empty if
unavailable.
Market buy order failed / expired
Pushed when the user's market buy order fails or expires.
Market buy order failed / expired › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://api.binance.com/sapi/wss/ws/web3_prediction_pm_market_buy_fail - Combined stream via URL:
wss://api.binance.com/sapi/wss/stream?streams=web3_prediction_pm_market_buy_fail - Combined stream via request: Connect to
wss://api.binance.com/sapi/wss/stream, then send the SUBSCRIBE request shown below.
commandSubscription command.
valueTopics to subscribe to, joined by |.
Market buy order failed / expired › Responses
Prediction Stream response
pushIdUnique ID of this push. Use it to remove duplicates.
amountOriginal order amount in USDT — not actually charged. Rounded down to 2
decimals; shown as <0.01 if smaller.
topicMarket title, cut to 12 characters with .. added when longer; empty if
unavailable.
Market buy order fully filled
Pushed when the user's market buy order is fully filled.
Market buy order fully filled › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://api.binance.com/sapi/wss/ws/web3_prediction_pm_market_buy_success - Combined stream via URL:
wss://api.binance.com/sapi/wss/stream?streams=web3_prediction_pm_market_buy_success - Combined stream via request: Connect to
wss://api.binance.com/sapi/wss/stream, then send the SUBSCRIBE request shown below.
commandSubscription command.
valueTopics to subscribe to, joined by |.
Market buy order fully filled › Responses
Prediction Stream response
pushIdUnique ID of this push. Use it to remove duplicates.
amountUSDT the user paid. Rounded down to 2 decimals; shown as <0.01 if smaller.
topicMarket title, cut to 12 characters with .. added when longer; empty if
unavailable.
Market sell order failed / expired
Pushed when the user's market sell order fails or expires.
Market sell order failed / expired › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://api.binance.com/sapi/wss/ws/web3_prediction_pm_market_sell_fail - Combined stream via URL:
wss://api.binance.com/sapi/wss/stream?streams=web3_prediction_pm_market_sell_fail - Combined stream via request: Connect to
wss://api.binance.com/sapi/wss/stream, then send the SUBSCRIBE request shown below.
commandSubscription command.
valueTopics to subscribe to, joined by |.
Market sell order failed / expired › Responses
Prediction Stream response
pushIdUnique ID of this push. Use it to remove duplicates.
amountUSDT the user would have received after fees — not credited. Rounded down to
2 decimals; shown as <0.01 if smaller.
topicMarket title, cut to 12 characters with .. added when longer; empty if
unavailable.
Market sell order fully filled
Pushed when the user's market sell order is fully filled.
Market sell order fully filled › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://api.binance.com/sapi/wss/ws/web3_prediction_pm_market_sell_success - Combined stream via URL:
wss://api.binance.com/sapi/wss/stream?streams=web3_prediction_pm_market_sell_success - Combined stream via request: Connect to
wss://api.binance.com/sapi/wss/stream, then send the SUBSCRIBE request shown below.
commandSubscription command.
valueTopics to subscribe to, joined by |.
Market sell order fully filled › Responses
Prediction Stream response
pushIdUnique ID of this push. Use it to remove duplicates.
amountUSDT the user received, after fees. Rounded down to 2 decimals; shown as
<0.01 if smaller.
topicMarket title, cut to 12 characters with .. added when longer; empty if
unavailable.
Fund transfer failed
Pushed when a fund transfer fails.
Fund transfer failed › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://api.binance.com/sapi/wss/ws/web3_prediction_pm_transfer_fail - Combined stream via URL:
wss://api.binance.com/sapi/wss/stream?streams=web3_prediction_pm_transfer_fail - Combined stream via request: Connect to
wss://api.binance.com/sapi/wss/stream, then send the SUBSCRIBE request shown below.
commandSubscription command.
valueTopics to subscribe to, joined by |.
Fund transfer failed › Responses
Prediction Stream response
pushIdUnique ID of this push. Use it to remove duplicates.
amountAmount of the attempted transfer. Rounded down to 2 decimals; shown as <0.01
if smaller.
Fund transfer succeeded
Pushed when a fund transfer into or out of the prediction wallet succeeds. The direction and the token are not included (currently USDT only).
Fund transfer succeeded › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://api.binance.com/sapi/wss/ws/web3_prediction_pm_transfer_success - Combined stream via URL:
wss://api.binance.com/sapi/wss/stream?streams=web3_prediction_pm_transfer_success - Combined stream via request: Connect to
wss://api.binance.com/sapi/wss/stream, then send the SUBSCRIBE request shown below.
commandSubscription command.
valueTopics to subscribe to, joined by |.
Fund transfer succeeded › Responses
Prediction Stream response
pushIdUnique ID of this push. Use it to remove duplicates.
amountAmount transferred. Rounded down to 2 decimals; shown as <0.01 if smaller.
Market resolution notification
Pushed when a market is resolved, to every user holding a position in it, win or lose. No amount or outcome is included — call the REST API for the user's profit and loss.
Market resolution notification › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://api.binance.com/sapi/wss/ws/web3_prediction_pm_market_close - Combined stream via URL:
wss://api.binance.com/sapi/wss/stream?streams=web3_prediction_pm_market_close - Combined stream via request: Connect to
wss://api.binance.com/sapi/wss/stream, then send the SUBSCRIBE request shown below.
commandSubscription command.
valueTopics to subscribe to, joined by |.
Market resolution notification › Responses
Prediction Stream response
pushIdUnique ID of this push. Use it to remove duplicates.
topicMarket title, cut to 12 characters with .. added when longer; empty if
unavailable.