Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
Loading...
Searching...
No Matches
binance::spot::websocket_api::TickerParams Struct Reference

#include <market_api.hpp>

Public Attributes

std::optional< std::string > id = std::nullopt
 Client-generated request identifier.
std::optional< std::string > symbol = std::nullopt
 Query ticker of a single symbol.
std::optional< std::vector< std::string > > symbols = std::nullopt
 Query ticker for multiple symbols.
std::optional< TickerTypeEnum > type = std::nullopt
 Ticker type. Supported values: FULL (default) or MINI.
std::optional< TickerWindowSizeEnum > window_size = std::nullopt
 Defaults to 1d if no parameter provided.
std::optional< TickerSymbolStatusEnum > symbol_status = std::nullopt
 Filters for symbols that have this tradingStatus.

Member Data Documentation

◆ id

std::optional<std::string> binance::spot::websocket_api::TickerParams::id = std::nullopt

Client-generated request identifier.

◆ symbol

std::optional<std::string> binance::spot::websocket_api::TickerParams::symbol = std::nullopt

Query ticker of a single symbol.

◆ symbols

std::optional<std::vector<std::string> > binance::spot::websocket_api::TickerParams::symbols = std::nullopt

Query ticker for multiple symbols.

◆ type

std::optional<TickerTypeEnum> binance::spot::websocket_api::TickerParams::type = std::nullopt

Ticker type. Supported values: FULL (default) or MINI.

◆ window_size

std::optional<TickerWindowSizeEnum> binance::spot::websocket_api::TickerParams::window_size = std::nullopt

Defaults to 1d if no parameter provided.

◆ symbol_status

std::optional<TickerSymbolStatusEnum> binance::spot::websocket_api::TickerParams::symbol_status = std::nullopt

Filters for symbols that have this tradingStatus.

For a single symbol, a status mismatch returns error -1220 SYMBOL_DOES_NOT_MATCH_STATUS. For multiple or all symbols, non-matching ones are simply excluded from the response. Valid values: TRADING, HALT, BREAK, CANCEL_ONLY