|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
Each method subscribes to one stream (or queues the subscription while the connection reconnects) and returns its handle. More...
#include <api.hpp>
Each method subscribes to one stream (or queues the subscription while the connection reconnects) and returns its handle.
Destroying the handle, or calling unsubscribe() on it, ends the subscription.
|
explicit |
|
nodiscard |
Aggregate Trade Streams.
<symbol>@aggTrade.
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 st field (1 = UM, 2 = CM).
Update Speed: 100ms
|
nodiscard |
All Book Tickers Stream.
!bookTicker.
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 fstream and dstream); each payload is appended with a new st field (1 = UM, 2 = CM).
Update Speed: Real-time
|
nodiscard |
All Market Liquidation Order Streams.
!forceOrder@arr.
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 fstream and dstream); each payload is appended with a new st field (1 = UM, 2 = CM).
Update Speed: 1000ms
|
nodiscard |
All Market Mini Tickers Stream.
!miniTicker@arr.
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 fstream and dstream); each payload is appended with a new st field (1 = UM, 2 = CM).
Update Speed: 1000ms
|
nodiscard |
All Market Tickers Streams.
!ticker@arr.
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 fstream and dstream); each payload is appended with a new st field (1 = UM, 2 = CM).
Update Speed: 1000ms
|
nodiscard |
Continuous Contract Kline/Candlestick Streams.
<pair>_<contractType>@continuousKline_<interval>.
Kline update every second
After CM migration, both fstream and dstream may subscribe to either UM or CM symbols on this stream.
Update Speed: 250ms
|
nodiscard |
Contract Info Stream.
!contractInfo.
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 fstream and dstream); each payload is appended with a new st field (1 = UM, 2 = CM).
Update Speed: Real-time
|
nodiscard |
Diff.
Book Depth Streams
<symbol>@depth@<updateSpeed>.
Bids and asks, pushed every 250 milliseconds, 500 milliseconds, or 100 milliseconds
After CM migration, the payload is appended with a new st field (1 = UM, 2 = CM).
Update Speed: 250ms or 500ms or 100ms
|
nodiscard |
Index Kline/Candlestick Streams.
<pair>@indexPriceKline_<interval>.
Index Kline/Candlestick Streams
After CM migration, both fstream and dstream may subscribe to CM symbols on this stream.
Update Speed: 250ms
|
nodiscard |
Index Price Stream.
<pair>@indexPrice@<updateSpeed>.
Index Price Stream
Update Speed: 3000ms OR 1000ms
|
nodiscard |
Individual Symbol Book Ticker Streams.
<symbol>@bookTicker.
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 st field (1 = UM, 2 = CM).
Update Speed: Real-time
|
nodiscard |
Individual Symbol Mini Ticker Stream.
<symbol>@miniTicker.
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 st field (1 = UM, 2 = CM).
Update Speed: 500ms
|
nodiscard |
Individual Symbol Ticker Streams.
<symbol>@ticker.
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 st field (1 = UM, 2 = CM).
Update Speed: 500ms
|
nodiscard |
Kline/Candlestick Streams.
<symbol>@kline_<interval>.
The Kline/Candlestick Stream push updates to the current klines/candlestick every 250 milliseconds (if existing).
After CM migration, both fstream and dstream may subscribe to either UM or CM symbols on this stream.
Update Speed: 250ms
|
nodiscard |
Mark Price Kline/Candlestick Streams.
<symbol>@markPriceKline_<interval>.
Mark Price Kline/Candlestick Streams
After CM migration, both fstream and dstream may subscribe to CM symbols on this stream.
Update Speed: 250ms
|
nodiscard |
Mark Price of All Symbols of a Pair.
<pair>@markPrice@<updateSpeed>.
Mark Price of All Symbols of a Pair
After CM migration, the payload is appended with a new st field (1 = UM, 2 = CM); both fstream and dstream may subscribe to either UM or CM symbols on this stream.
Update Speed: 3000ms OR 1000ms
|
nodiscard |
Mark Price Stream.
<symbol>@markPrice@<updateSpeed>.
Mark price update stream
After CM migration, the payload is appended with a new st field (1 = UM, 2 = CM); both fstream and dstream may subscribe to either UM or CM symbols on this stream.
Update Speed: 3000ms OR 1000ms
|
nodiscard |
Market Liquidation Order Streams.
<symbol>@forceOrder.
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.
Update Speed: 1000ms
|
nodiscard |
Partial Book Depth Streams.
<symbol>@depth<levels>@<updateSpeed>.
Top levels bids and asks.
After CM migration, the payload is appended with a new st field (1 = UM, 2 = CM).
Update Speed: 250ms, 500ms or 100ms