|
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 <market_api.hpp>
Public Member Functions | |
| MarketApi (std::shared_ptr< common::WebsocketStreams > client) | |
| common::WebsocketStream< std::vector< IndexPriceStreamsResponseInner > > | index_price_streams (const IndexPriceStreamsParams ¶ms={}) const |
| Index Price Streams. | |
| common::WebsocketStream< KlineCandlestickStreamsResponse > | kline_candlestick_streams (const KlineCandlestickStreamsParams ¶ms) const |
| Kline/Candlestick Streams. | |
| common::WebsocketStream< NewSymbolInfoResponse > | new_symbol_info (const NewSymbolInfoParams ¶ms={}) const |
| New Symbol Info. | |
| common::WebsocketStream< std::vector< OpenInterestResponseInner > > | open_interest (const OpenInterestParams ¶ms) const |
| Open Interest. | |
| common::WebsocketStream< std::vector< OptionMarkPriceResponseInner > > | option_mark_price (const OptionMarkPriceParams ¶ms) const |
| Option Mark Price. | |
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 |
Index Price Streams.
!index@arr.
Underlying(e.g ETHUSDT) index stream.
Update Speed: 1000ms
|
nodiscard |
Kline/Candlestick Streams.
<symbol>@kline_<interval>.
The Kline/Candlestick Stream push updates to the current klines/candlestick every 1000 milliseconds (if existing).
Update Speed: 1000ms
|
nodiscard |
New Symbol Info.
!optionSymbol.
New symbol listing stream.
Update Speed: 50ms
|
nodiscard |
Open Interest.
<underlying>@optionOpenInterest@<expirationDate>.
Option open interest for specific underlying asset on specific expiration date. E.g.ethusdt@optionOpenInterest@221125
Update Speed: 60s
|
nodiscard |
Option Mark Price.
<underlying>@optionMarkPrice.
The mark price for all option symbols on specific underlying asset. E.g.btcusdt@optionMarkPrice
Update Speed: 1000ms