Aggregate Trade Streams
The Aggregate Trade Streams push trade information that is aggregated for a single taker order.
Aggregate Trade Streams › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://stream.binance.com:9443/ws/{symbol}@aggTrade - Combined stream via URL:
wss://stream.binance.com:9443/stream?streams={symbol}@aggTrade - Combined stream via request: Connect to
wss://stream.binance.com:9443/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
sSymbol
aAggregate trade ID
pPrice
qQuantity
fFirst trade ID
lLast trade ID
TTrade time
mIs the buyer the market maker?
MIgnore
All Market Rolling Window Statistics Streams
Rolling window ticker statistics for all market symbols, computed over multiple windows.
Note that only tickers that have changed will be present in the array.
All Market Rolling Window Statistics Streams › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://stream.binance.com:9443/ws/!ticker_{windowSize}@arr - Combined stream via URL:
wss://stream.binance.com:9443/stream?streams=!ticker_{windowSize}@arr - Combined stream via request: Connect to
wss://stream.binance.com:9443/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
All Market Rolling Window Statistics Streams › Responses
All Market Rolling Window Statistics Streams
eEvent type
EEvent time
sSymbol
pPrice change
PPrice change percent
oOpen price
hHigh price
lLow price
cLast price
wWeighted average price
vTotal traded base asset volume
qTotal traded quote asset volume
OStatistics open time
CStatistics close time
FFirst trade ID
LLast trade Id
nTotal number of trades
All Market Mini Tickers Stream
24hr rolling window mini-ticker statistics for all symbols that changed in an array. These are NOT the statistics of the UTC day, but a 24hr rolling window for the previous 24hrs. Note that only tickers that have changed will be present in the array.
All Market Mini Tickers Stream › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://stream.binance.com:9443/ws/!miniTicker@arr - Combined stream via URL:
wss://stream.binance.com:9443/stream?streams=!miniTicker@arr - Combined stream via request: Connect to
wss://stream.binance.com:9443/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
cClose price
oOpen price
hHigh price
lLow price
vTotal traded base asset volume
qTotal traded quote asset volume
Average Price
Average price streams push changes in the average price over a fixed time interval.
Average Price › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://stream.binance.com:9443/ws/{symbol}@avgPrice - Combined stream via URL:
wss://stream.binance.com:9443/stream?streams={symbol}@avgPrice - Combined stream via request: Connect to
wss://stream.binance.com:9443/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
Average Price › Responses
Average Price
eEvent type
EEvent time
sSymbol
iAverage price interval
wAverage price
TLast trade time
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.
Multiple <symbol>@bookTicker streams can be subscribed to over one
connection.
Individual Symbol Book Ticker Streams › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://stream.binance.com:9443/ws/{symbol}@bookTicker - Combined stream via URL:
wss://stream.binance.com:9443/stream?streams={symbol}@bookTicker - Combined stream via request: Connect to
wss://stream.binance.com:9443/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
uOrder book updateId
sSymbol
bBest bid price
BBest bid qty
aBest ask price
ABest ask qty
Diff. Depth Stream
Order book price and quantity depth updates used to locally manage an order book.
Stream parameters
symbolSymbol to query
updateSpeedOptional stream update speed suffix
Diff. Depth Stream › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://stream.binance.com:9443/ws/{symbol}@depth@{updateSpeed} - Combined stream via URL:
wss://stream.binance.com:9443/stream?streams={symbol}@depth@{updateSpeed} - Combined stream via request: Connect to
wss://stream.binance.com:9443/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
Diff. Depth Stream › Responses
Diff. Depth Stream
eEvent type
EEvent time
sSymbol
UFirst update ID in event
uFinal update ID in event
Bids to be updated
Asks to be updated
Kline/Candlestick Streams for UTC
The Kline/Candlestick Stream push updates to the current
klines/candlestick every second in UTC+0 timezone
Stream parameters
symbolSymbol to query
intervalKline/Candlestick Streams for UTC › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://stream.binance.com:9443/ws/{symbol}@kline_{interval} - Combined stream via URL:
wss://stream.binance.com:9443/stream?streams={symbol}@kline_{interval} - Combined stream via request: Connect to
wss://stream.binance.com:9443/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 for UTC › Responses
Kline/Candlestick Streams for UTC
eEvent type
EEvent time
sSymbol
Kline payload
Kline/Candlestick Streams with timezone offset
The Kline/Candlestick Stream push updates to the current
klines/candlestick every second in UTC+8 timezone
Kline/Candlestick chart intervals:
Supported intervals: See Kline/Candlestick chart intervals
UTC+8 timezone offset:
- Kline intervals open and close in the UTC+8 timezone. For example the 1d klines will open at the beginning of the UTC+8 day, and close at the end of the UTC+8 day.
- Note that E (event time), t (start time) and T (close time) in the payload are Unix timestamps, which are always interpreted in UTC.
Stream parameters
symbolSymbol to query
intervalKline/Candlestick Streams with timezone offset › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://stream.binance.com:9443/ws/{symbol}@kline_{interval}@+08:00 - Combined stream via URL:
wss://stream.binance.com:9443/stream?streams={symbol}@kline_{interval}@+08:00 - Combined stream via request: Connect to
wss://stream.binance.com:9443/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 with timezone offset › Responses
Kline/Candlestick Streams with timezone offset
eEvent type
EEvent time
sSymbol
Kline payload
Individual Symbol Mini Ticker Stream
24hr rolling window mini-ticker statistics. These are NOT the statistics of the UTC day, but a 24hr rolling window for the previous 24hrs.
Individual Symbol Mini Ticker Stream › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://stream.binance.com:9443/ws/{symbol}@miniTicker - Combined stream via URL:
wss://stream.binance.com:9443/stream?streams={symbol}@miniTicker - Combined stream via request: Connect to
wss://stream.binance.com:9443/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
cClose price
oOpen price
hHigh price
lLow price
vTotal traded base asset volume
qTotal traded quote asset volume
WebSocket Partial Book Depth Streams
Top <levels> bids and asks, pushed every second.
Stream parameters
symbolSymbol to query
levelsupdateSpeedOptional stream update speed suffix
WebSocket Partial Book Depth Streams › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://stream.binance.com:9443/ws/{symbol}@depth{levels}@{updateSpeed} - Combined stream via URL:
wss://stream.binance.com:9443/stream?streams={symbol}@depth{levels}@{updateSpeed} - Combined stream via request: Connect to
wss://stream.binance.com:9443/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
WebSocket Partial Book Depth Streams › Responses
Partial Book Depth Streams
lastUpdateIdLast update ID
Bids to be updated
Asks to be updated
Reference Price Streams
Reference price stream for a symbol.
Reference Price Streams › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://stream.binance.com:9443/ws/{symbol}@referencePrice - Combined stream via URL:
wss://stream.binance.com:9443/stream?streams={symbol}@referencePrice - Combined stream via request: Connect to
wss://stream.binance.com:9443/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
Reference Price Streams › Responses
Reference Price Streams
eEvent type
sSymbol
rReference price (null if no reference price)
tEngine timestamp when reference price was valid
Individual Symbol Rolling Window Statistics Streams
Rolling window ticker statistics for a single symbol, computed over multiple windows.
Note: This stream is different from the <symbol>@ticker stream. The open time "O" always starts on a minute, while the closing time "C" is the current time
of the update. As such, the effective window might be up to 59999ms wider than <window_size>.
Stream parameters
symbolSymbol to query
windowSizeIndividual Symbol Rolling Window Statistics Streams › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://stream.binance.com:9443/ws/{symbol}@ticker_{windowSize} - Combined stream via URL:
wss://stream.binance.com:9443/stream?streams={symbol}@ticker_{windowSize} - Combined stream via request: Connect to
wss://stream.binance.com:9443/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
Individual Symbol Rolling Window Statistics Streams › Responses
Individual Symbol Rolling Window Statistics Streams
eEvent type
EEvent time
sSymbol
pPrice change
PPrice change percent
oOpen price
hHigh price
lLow price
cLast price
wWeighted average price
vTotal traded base asset volume
qTotal traded quote asset volume
OStatistics open time
CStatistics close time
FFirst trade ID
LLast trade Id
nTotal number of trades
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 for the previous 24hrs.
Individual Symbol Ticker Streams › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://stream.binance.com:9443/ws/{symbol}@ticker - Combined stream via URL:
wss://stream.binance.com:9443/stream?streams={symbol}@ticker - Combined stream via request: Connect to
wss://stream.binance.com:9443/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
xFirst trade(F)-1 price (first trade before the 24hr rolling window)
cLast price
QLast quantity
bBest bid price
BBest bid quantity
aBest ask price
ABest ask quantity
oOpen price
hHigh price
lLow price
vTotal traded base asset volume
qTotal traded quote asset volume
OStatistics open time
CStatistics close time
FFirst trade ID
LLast trade Id
nTotal number of trades
Trade Streams
The Trade Streams push raw trade information; each trade has a unique buyer and seller.
Trade Streams › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://stream.binance.com:9443/ws/{symbol}@trade - Combined stream via URL:
wss://stream.binance.com:9443/stream?streams={symbol}@trade - Combined stream via request: Connect to
wss://stream.binance.com:9443/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
Trade Streams › Responses
Trade Streams
eEvent type
EEvent time
sSymbol
tTrade ID
pPrice
qQuantity
TTrade time
mIs the buyer the market maker?
MIgnore
Block Trade Streams
Block Trade Streams push block trade information in real-time.
Block Trade Streams › Request
You can subscribe to this stream using one of the following options:
- Raw stream:
wss://stream.binance.com:9443/ws/{symbol}@blockTrade - Combined stream via URL:
wss://stream.binance.com:9443/stream?streams={symbol}@blockTrade - Combined stream via request: Connect to
wss://stream.binance.com:9443/stream, then send the SUBSCRIBE request shown below.
methodWebSocket Streams method name.
paramsList of streams to subscribe to.
idUnique WebSocket request ID.
Block Trade Streams › Responses
Block Trade Streams
eEvent type
EEvent time
sSymbol
tBlock Trade ID
pPrice
qQuantity
TTrade time
mIs the buyer the maker?