|
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 <public_api.hpp>
Public Member Functions | |
| PublicApi (std::shared_ptr< common::WebsocketStreams > client) | |
| common::WebsocketStream< DiffBookDepthStreamsResponse > | diff_book_depth_streams (const DiffBookDepthStreamsParams ¶ms) const |
| Diff Book Depth Streams. | |
| common::WebsocketStream< Hour24TickerResponse > | hour24_ticker (const Hour24TickerParams ¶ms) const |
| 24-hour TICKER | |
| common::WebsocketStream< IndividualSymbolBookTickerStreamsResponse > | individual_symbol_book_ticker_streams (const IndividualSymbolBookTickerStreamsParams ¶ms) const |
| Individual Symbol Book Ticker Streams. | |
| common::WebsocketStream< PartialBookDepthStreamsResponse > | partial_book_depth_streams (const PartialBookDepthStreamsParams ¶ms) const |
| Partial Book Depth Streams. | |
| common::WebsocketStream< TradeStreamsResponse > | trade_streams (const TradeStreamsParams ¶ms) const |
| Trade Streams. | |
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 |
Diff Book Depth Streams.
<symbol>@depth@<updateSpeed>.
Bids and asks, pushed every 500 milliseconds, 100 milliseconds (if existing)
Update Speed: 100ms or 500ms
|
nodiscard |
24-hour TICKER
<symbol>@optionTicker<expirationDate>.
24hr ticker info for all symbols. Only symbols whose ticker info changed will be sent.
Update Speed: 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.
Update Speed: Real-Time
|
nodiscard |
Partial Book Depth Streams.
<symbol>@depth<level>@<updateSpeed>.
Top <levels> bids and asks. Valid <levels> are 5, 10, 20.
Update Speed: 100ms or 500ms
|
nodiscard |
Trade Streams.
<symbol>@optionTrade.
The Trade Streams push raw trade information for specific symbol or underlying asset. E.g.btcusdt@optionTrade
Update Speed: 50ms