Aggregate Trade Streams
The Aggregate Trade Streams push market trade information that is aggregated for fills with same price and taking side every 100 milliseconds.
After CM migration, the payload is appended with a new
stfield (1= UM,2= CM).
Aggregate Trade Streams › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://dstream.binance.com/ws/{symbol}@aggTrade - Combined stream via URL:
wss://dstream.binance.com/stream?streams={symbol}@aggTrade - Combined stream via request: Connect to
wss://dstream.binance.com/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
Aggregate Trade Streams › Responses
Aggregate Trade Streams
eEvent type
EEvent time
aAggregate trade ID
sSymbol
pPrice
qQuantity
fFirst trade ID
lLast trade ID
TTrade time
mIs the buyer the market maker?
st(After CM migration) Symbol type: 1 = UM, 2 = CM
All Book Tickers Stream
Pushes any update to the best bid or ask's price or quantity in real-time for all symbols.
After CM migration, this stream pushes the merged UM + CM universe (subscribable on both
fstreamanddstream); each payload is appended with a newstfield (1= UM,2= CM).
All Book Tickers Stream › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://dstream.binance.com/ws/!bookTicker - Combined stream via URL:
wss://dstream.binance.com/stream?streams=!bookTicker - Combined stream via request: Connect to
wss://dstream.binance.com/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
All Book Tickers Stream › Responses
All Book Tickers Stream
eEvent type
uOrder book update Id
sSymbol
bBest bid price
BBest bid qty
aBest ask price
ABest ask qty
TTransaction time
EEvent time
psPair
st(After CM migration) Symbol type: 1 = UM, 2 = CM
All Market Liquidation Order Streams
The All Liquidation Order Snapshot Streams push force liquidation order information for all symbols in the market. For each symbol,only the latest one liquidation order within 1000ms will be pushed as the snapshot. If no liquidation happens in the interval of 1000ms, no stream will be pushed.
After CM migration, this stream pushes the merged UM + CM universe (subscribable on both
fstreamanddstream); each payload is appended with a newstfield (1= UM,2= CM).
All Market Liquidation Order Streams › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://dstream.binance.com/ws/!forceOrder@arr - Combined stream via URL:
wss://dstream.binance.com/stream?streams=!forceOrder@arr - Combined stream via request: Connect to
wss://dstream.binance.com/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
All Market Liquidation Order Streams › Responses
All Market Liquidation Order Streams
eEvent Type
EEvent Time
Order Type
st(After CM migration) Symbol type: 1 = UM, 2 = CM
All Market Mini Tickers Stream
24hr rolling window mini-ticker statistics for all symbols. These are NOT the statistics of the UTC day, but a 24hr rolling window from requestTime to 24hrs before. Note that only tickers that have changed will be present in the array.
After CM migration, this stream pushes the merged UM + CM universe (subscribable on both
fstreamanddstream); each payload is appended with a newstfield (1= UM,2= CM).
All Market Mini Tickers Stream › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://dstream.binance.com/ws/!miniTicker@arr - Combined stream via URL:
wss://dstream.binance.com/stream?streams=!miniTicker@arr - Combined stream via request: Connect to
wss://dstream.binance.com/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
All Market Mini Tickers Stream › Responses
All Market Mini Tickers Stream
eEvent type
EEvent time
sSymbol
psPair
cClose price
oOpen price
hHigh price
lLow price
vTotal traded volume
qTotal traded base asset volume
st(After CM migration) Symbol type: 1 = UM, 2 = CM
All Market Tickers Streams
24hr rolling window ticker statistics for all symbols. These are NOT the statistics of the UTC day, but a 24hr rolling window from requestTime to 24hrs before. Note that only tickers that have changed will be present in the array.
After CM migration, this stream pushes the merged UM + CM universe (subscribable on both
fstreamanddstream); each payload is appended with a newstfield (1= UM,2= CM).
All Market Tickers Streams › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://dstream.binance.com/ws/!ticker@arr - Combined stream via URL:
wss://dstream.binance.com/stream?streams=!ticker@arr - Combined stream via request: Connect to
wss://dstream.binance.com/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
All Market Tickers Streams › Responses
All Market Tickers Streams
eEvent type
EEvent time
sSymbol
pPrice change
PPrice change percent
wWeighted average price
cLast price
QLast quantity
oOpen price
hHigh price
lLow price
vTotal traded volume
qTotal traded base asset volume
OStatistics open time
CStatistics close time
FFirst trade ID
LLast trade Id
nTotal number of trades
psPair
st(After CM migration) Symbol type: 1 = UM, 2 = CM
Continuous Contract Kline/Candlestick Streams
Kline update every second
After CM migration, both
fstreamanddstreammay subscribe to either UM or CM symbols on this stream.
Stream parameters
pairThe pair parameter
contractTypeThe contractType parameter
intervalThe interval parameter
Continuous Contract Kline/Candlestick Streams › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://dstream.binance.com/ws/{pair}_{contractType}@continuousKline_{interval} - Combined stream via URL:
wss://dstream.binance.com/stream?streams={pair}_{contractType}@continuousKline_{interval} - Combined stream via request: Connect to
wss://dstream.binance.com/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
Continuous Contract Kline/Candlestick Streams › Responses
Continuous Contract Kline/Candlestick Streams
eeventType
EeventTime
psPair
ctContract type
Kline payload
Contract Info Stream
ContractInfo stream pushes when contract info updates(listing/settlement/contract bracket update). bks field only shows up when bracket gets updated.
After CM migration, this stream pushes the merged UM + CM universe (subscribable on both
fstreamanddstream); each payload is appended with a newstfield (1= UM,2= CM).
Contract Info Stream › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://dstream.binance.com/ws/!contractInfo - Combined stream via URL:
wss://dstream.binance.com/stream?streams=!contractInfo - Combined stream via request: Connect to
wss://dstream.binance.com/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
Contract Info Stream › Responses
Contract Info Stream
eEvent Type
EEvent Time
sSymbol
psPair
ctContract type
dtDelivery date time
otonboard date time
csContract status
Bracket list.
st(After CM migration) Symbol type: 1 = UM, 2 = CM
Diff. Book Depth Streams
Bids and asks, pushed every 250 milliseconds, 500 milliseconds, or 100 milliseconds
After CM migration, the payload is appended with a new
stfield (1= UM,2= CM).
Stream parameters
symbolThe symbol parameter
updateSpeedWebSocket stream update speed
Diff. Book Depth Streams › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://dstream.binance.com/ws/{symbol}@depth@{updateSpeed} - Combined stream via URL:
wss://dstream.binance.com/stream?streams={symbol}@depth@{updateSpeed} - Combined stream via request: Connect to
wss://dstream.binance.com/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
Diff. Book Depth Streams › Responses
Diff. Book Depth Streams
eEvent type
EEvent time
TTransction time
sSymbol
psPair
UFirst update ID in event
uFinal update ID in event
puFinal update Id in last stream(ie u in last stream)
bBids to be updated
aAsks to be updated
st(After CM migration) Symbol type: 1 = UM, 2 = CM
Index Kline/Candlestick Streams
Index Kline/Candlestick Streams
After CM migration, both
fstreamanddstreammay subscribe to CM symbols on this stream.
Stream parameters
pairThe pair parameter
intervalThe interval parameter
Index Kline/Candlestick Streams › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://dstream.binance.com/ws/{pair}@indexPriceKline_{interval} - Combined stream via URL:
wss://dstream.binance.com/stream?streams={pair}@indexPriceKline_{interval} - Combined stream via request: Connect to
wss://dstream.binance.com/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
Index Kline/Candlestick Streams › Responses
Index Kline/Candlestick Streams
eeventType
EeventTime
psPair
Kline payload
Index Price Stream
Index Price Stream
Stream parameters
pairThe pair parameter
updateSpeedWebSocket stream update speed
Index Price Stream › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://dstream.binance.com/ws/{pair}@indexPrice@{updateSpeed} - Combined stream via URL:
wss://dstream.binance.com/stream?streams={pair}@indexPrice@{updateSpeed} - Combined stream via request: Connect to
wss://dstream.binance.com/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
Index Price Stream › Responses
Index Price Stream
eEvent type
EEvent time
iPair
pIndex Price
Individual Symbol Book Ticker Streams
Pushes any update to the best bid or ask's price or quantity in real-time for a specified symbol.
After CM migration, the payload is appended with a new
stfield (1= UM,2= CM).
Individual Symbol Book Ticker Streams › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://dstream.binance.com/ws/{symbol}@bookTicker - Combined stream via URL:
wss://dstream.binance.com/stream?streams={symbol}@bookTicker - Combined stream via request: Connect to
wss://dstream.binance.com/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
Individual Symbol Book Ticker Streams › Responses
Individual Symbol Book Ticker Streams
eEvent type
uOrder book update Id
sSymbol
bBest bid price
BBest bid qty
aBest ask price
ABest ask qty
TTransaction time
EEvent time
psPair
st(After CM migration) Symbol type: 1 = UM, 2 = CM
Individual Symbol Mini Ticker Stream
24hr rolling window mini-ticker statistics for a single symbol. These are NOT the statistics of the UTC day, but a 24hr rolling window from requestTime to 24hrs before.
After CM migration, the payload is appended with a new
stfield (1= UM,2= CM).
Individual Symbol Mini Ticker Stream › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://dstream.binance.com/ws/{symbol}@miniTicker - Combined stream via URL:
wss://dstream.binance.com/stream?streams={symbol}@miniTicker - Combined stream via request: Connect to
wss://dstream.binance.com/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
Individual Symbol Mini Ticker Stream › Responses
Individual Symbol Mini Ticker Stream
eEvent type
EEvent time
sSymbol
psPair
cClose price
oOpen price
hHigh price
lLow price
vTotal traded volume
qTotal traded base asset volume
st(After CM migration) Symbol type: 1 = UM, 2 = CM
Individual Symbol Ticker Streams
24hr rolling window ticker statistics for a single symbol. These are NOT the statistics of the UTC day, but a 24hr rolling window from requestTime to 24hrs before.
After CM migration, the payload is appended with a new
stfield (1= UM,2= CM).
Individual Symbol Ticker Streams › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://dstream.binance.com/ws/{symbol}@ticker - Combined stream via URL:
wss://dstream.binance.com/stream?streams={symbol}@ticker - Combined stream via request: Connect to
wss://dstream.binance.com/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
Individual Symbol Ticker Streams › Responses
Individual Symbol Ticker Streams
eEvent type
EEvent time
sSymbol
pPrice change
PPrice change percent
wWeighted average price
cLast price
QLast quantity
oOpen price
hHigh price
lLow price
vTotal traded volume
qTotal traded base asset volume
OStatistics open time
CStatistics close time
FFirst trade ID
LLast trade Id
nTotal number of trades
psPair
st(After CM migration) Symbol type: 1 = UM, 2 = CM
Kline/Candlestick Streams
The Kline/Candlestick Stream push updates to the current klines/candlestick every 250 milliseconds (if existing).
After CM migration, both
fstreamanddstreammay subscribe to either UM or CM symbols on this stream.
Stream parameters
symbolThe symbol parameter
intervalThe interval parameter
Kline/Candlestick Streams › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://dstream.binance.com/ws/{symbol}@kline_{interval} - Combined stream via URL:
wss://dstream.binance.com/stream?streams={symbol}@kline_{interval} - Combined stream via request: Connect to
wss://dstream.binance.com/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
Kline/Candlestick Streams › Responses
Kline/Candlestick Streams
eEvent type
EEvent time
sSymbol
Kline payload
Market Liquidation Order Streams
The Liquidation Order Snapshot Streams push force liquidation order information for specific symbol. For each symbol,only the latest one liquidation order within 1000ms will be pushed as the snapshot. If no liquidation happens in the interval of 1000ms, no stream will be pushed.
Market Liquidation Order Streams › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://dstream.binance.com/ws/{symbol}@forceOrder - Combined stream via URL:
wss://dstream.binance.com/stream?streams={symbol}@forceOrder - Combined stream via request: Connect to
wss://dstream.binance.com/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
Market Liquidation Order Streams › Responses
Liquidation Order Streams
eEvent Type
EEvent Time
Order Type
Mark Price Kline/Candlestick Streams
Mark Price Kline/Candlestick Streams
After CM migration, both
fstreamanddstreammay subscribe to CM symbols on this stream.
Stream parameters
symbolThe symbol parameter
intervalThe interval parameter
Mark Price Kline/Candlestick Streams › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://dstream.binance.com/ws/{symbol}@markPriceKline_{interval} - Combined stream via URL:
wss://dstream.binance.com/stream?streams={symbol}@markPriceKline_{interval} - Combined stream via request: Connect to
wss://dstream.binance.com/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
Mark Price Kline/Candlestick Streams › Responses
Mark Price Kline/Candlestick Streams
eEvent Name
EEvent Time
psPair
Kline payload
Mark Price of All Symbols of a Pair
Mark Price of All Symbols of a Pair
After CM migration, the payload is appended with a new
stfield (1= UM,2= CM); bothfstreamanddstreammay subscribe to either UM or CM symbols on this stream.
Stream parameters
pairThe pair parameter
updateSpeedWebSocket stream update speed
Mark Price of All Symbols of a Pair › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://dstream.binance.com/ws/{pair}@markPrice@{updateSpeed} - Combined stream via URL:
wss://dstream.binance.com/stream?streams={pair}@markPrice@{updateSpeed} - Combined stream via request: Connect to
wss://dstream.binance.com/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
Mark Price of All Symbols of a Pair › Responses
Mark Price of All Symbols of a Pair
eEvent type
EEvent time
sSymbol
pMark Price
PEstimated Settle Price, only useful in the last hour before the settlement starts.
iIndex Price
rfunding rate for perpetual symbol, "" will be shown for delivery symbol
Tnext funding time for perpetual symbol, 0 will be shown for delivery symbol
st(After CM migration) Symbol type: 1 = UM, 2 = CM
Mark Price Stream
Mark price update stream
After CM migration, the payload is appended with a new
stfield (1= UM,2= CM); bothfstreamanddstreammay subscribe to either UM or CM symbols on this stream.
Stream parameters
symbolThe symbol parameter
updateSpeedWebSocket stream update speed
Mark Price Stream › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://dstream.binance.com/ws/{symbol}@markPrice@{updateSpeed} - Combined stream via URL:
wss://dstream.binance.com/stream?streams={symbol}@markPrice@{updateSpeed} - Combined stream via request: Connect to
wss://dstream.binance.com/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
Mark Price Stream › Responses
Mark Price Stream
eEvent type
EEvent time
sSymbol
pMark Price
PEstimated Settle Price, only useful in the last hour before the settlement starts.
iIndex Price
rfunding rate for perpetual symbol, "" will be shown for delivery symbol
Tnext funding time for perpetual symbol, 0 will be shown for delivery symbol
st(After CM migration) Symbol type: 1 = UM, 2 = CM
Partial Book Depth Streams
Top levels bids and asks.
After CM migration, the payload is appended with a new
stfield (1= UM,2= CM).
Stream parameters
symbolThe symbol parameter
levelsThe levels parameter
updateSpeedWebSocket stream update speed
Partial Book Depth Streams › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://dstream.binance.com/ws/{symbol}@depth{levels}@{updateSpeed} - Combined stream via URL:
wss://dstream.binance.com/stream?streams={symbol}@depth{levels}@{updateSpeed} - Combined stream via request: Connect to
wss://dstream.binance.com/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
Partial Book Depth Streams › Responses
Partial Book Depth Streams
eEvent type
EEvent time
TTransaction time
sSymbol
psPair
UFirst update ID in event
uupdateId
puFinal update Id in last stream(ie u in last stream)
bBids to be updated
aAsks to be updated
st(After CM migration) Symbol type: 1 = UM, 2 = CM