Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
Loading...
Searching...
No Matches
binance::derivatives_trading_options::websocket_streams::MarketApi Class Reference

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 &params={}) const
 Index Price Streams.
common::WebsocketStream< KlineCandlestickStreamsResponse > kline_candlestick_streams (const KlineCandlestickStreamsParams &params) const
 Kline/Candlestick Streams.
common::WebsocketStream< NewSymbolInfoResponse > new_symbol_info (const NewSymbolInfoParams &params={}) const
 New Symbol Info.
common::WebsocketStream< std::vector< OpenInterestResponseInner > > open_interest (const OpenInterestParams &params) const
 Open Interest.
common::WebsocketStream< std::vector< OptionMarkPriceResponseInner > > option_mark_price (const OptionMarkPriceParams &params) const
 Option Mark Price.

Detailed Description

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.

Constructor & Destructor Documentation

◆ MarketApi()

binance::derivatives_trading_options::websocket_streams::MarketApi::MarketApi ( std::shared_ptr< common::WebsocketStreams > client)
explicit

Member Function Documentation

◆ index_price_streams()

common::WebsocketStream< std::vector< IndexPriceStreamsResponseInner > > binance::derivatives_trading_options::websocket_streams::MarketApi::index_price_streams ( const IndexPriceStreamsParams & params = {}) const
nodiscard

Index Price Streams.

!index@arr.

Underlying(e.g ETHUSDT) index stream.

Update Speed: 1000ms

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/market#index-price-streams

◆ kline_candlestick_streams()

common::WebsocketStream< KlineCandlestickStreamsResponse > binance::derivatives_trading_options::websocket_streams::MarketApi::kline_candlestick_streams ( const KlineCandlestickStreamsParams & params) const
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

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/market#kline-candlestick-streams

◆ new_symbol_info()

common::WebsocketStream< NewSymbolInfoResponse > binance::derivatives_trading_options::websocket_streams::MarketApi::new_symbol_info ( const NewSymbolInfoParams & params = {}) const
nodiscard

New Symbol Info.

!optionSymbol.

New symbol listing stream.

Update Speed: 50ms

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/market#new-symbol-info

◆ open_interest()

common::WebsocketStream< std::vector< OpenInterestResponseInner > > binance::derivatives_trading_options::websocket_streams::MarketApi::open_interest ( const OpenInterestParams & params) const
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

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/market#open-interest

◆ option_mark_price()

common::WebsocketStream< std::vector< OptionMarkPriceResponseInner > > binance::derivatives_trading_options::websocket_streams::MarketApi::option_mark_price ( const OptionMarkPriceParams & params) const
nodiscard

Option Mark Price.

<underlying>@optionMarkPrice.

The mark price for all option symbols on specific underlying asset. E.g.btcusdt@optionMarkPrice

Update Speed: 1000ms

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/market#option-mark-price