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

#include <market_api.hpp>

Public Attributes

std::optional< std::string > symbol = std::nullopt
 Parameter symbol and symbols cannot be used in combination.
std::optional< std::vector< std::string > > symbols = std::nullopt
 Parameter symbol and symbols cannot be used in combination.
std::optional< TickerPriceSymbolStatusEnum > symbol_status = std::nullopt
 Filters for symbols that have this tradingStatus.

Member Data Documentation

◆ symbol

std::optional<std::string> binance::spot::rest_api::TickerPriceParams::symbol = std::nullopt

Parameter symbol and symbols cannot be used in combination.

If neither parameter is sent, prices for all symbols will be returned in an array.

◆ symbols

std::optional<std::vector<std::string> > binance::spot::rest_api::TickerPriceParams::symbols = std::nullopt

Parameter symbol and symbols cannot be used in combination.

If neither parameter is sent, prices for all symbols will be returned in an array. Examples of accepted format for the symbols parameter: ["BTCUSDT","BNBUSDT"] or %5B%22BTCUSDT%22,%22BNBUSDT%22%5D

◆ symbol_status

std::optional<TickerPriceSymbolStatusEnum> binance::spot::rest_api::TickerPriceParams::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.