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

#include <ticker_response.hpp>

Public Member Functions

bool operator== (const TickerResponse &) const =default

Public Attributes

std::optional< std::string > e
 Event type.
std::optional< std::int64_t > e_uppercase
 Event time.
std::optional< std::string > s
 Symbol.
std::optional< std::string > p
 Price change.
std::optional< std::string > p_uppercase
 Price change percent.
std::optional< std::string > w
 Weighted average price.
std::optional< std::string > x
 First trade(F)-1 price (first trade before the 24hr rolling window).
std::optional< std::string > c
 Last price.
std::optional< std::string > q_uppercase
 Last quantity.
std::optional< std::string > b
 Best bid price.
std::optional< std::string > b_uppercase
 Best bid quantity.
std::optional< std::string > a
 Best ask price.
std::optional< std::string > a_uppercase
 Best ask quantity.
std::optional< std::string > o
 Open price.
std::optional< std::string > h
 High price.
std::optional< std::string > l
 Low price.
std::optional< std::string > v
 Total traded base asset volume.
std::optional< std::string > q
 Total traded quote asset volume.
std::optional< std::int64_t > o_uppercase
 Statistics open time.
std::optional< std::int64_t > c_uppercase
 Statistics close time.
std::optional< std::int64_t > f_uppercase
 First trade ID.
std::optional< std::int64_t > l_uppercase
 Last trade Id.
std::optional< std::int64_t > n
 Total number of trades.

Member Function Documentation

◆ operator==()

bool binance::spot::websocket_streams::TickerResponse::operator== ( const TickerResponse & ) const
default

Member Data Documentation

◆ e

std::optional<std::string> binance::spot::websocket_streams::TickerResponse::e

Event type.

◆ e_uppercase

std::optional<std::int64_t> binance::spot::websocket_streams::TickerResponse::e_uppercase

Event time.

◆ s

std::optional<std::string> binance::spot::websocket_streams::TickerResponse::s

Symbol.

◆ p

std::optional<std::string> binance::spot::websocket_streams::TickerResponse::p

Price change.

◆ p_uppercase

std::optional<std::string> binance::spot::websocket_streams::TickerResponse::p_uppercase

Price change percent.

◆ w

std::optional<std::string> binance::spot::websocket_streams::TickerResponse::w

Weighted average price.

◆ x

std::optional<std::string> binance::spot::websocket_streams::TickerResponse::x

First trade(F)-1 price (first trade before the 24hr rolling window).

◆ c

std::optional<std::string> binance::spot::websocket_streams::TickerResponse::c

Last price.

◆ q_uppercase

std::optional<std::string> binance::spot::websocket_streams::TickerResponse::q_uppercase

Last quantity.

◆ b

std::optional<std::string> binance::spot::websocket_streams::TickerResponse::b

Best bid price.

◆ b_uppercase

std::optional<std::string> binance::spot::websocket_streams::TickerResponse::b_uppercase

Best bid quantity.

◆ a

std::optional<std::string> binance::spot::websocket_streams::TickerResponse::a

Best ask price.

◆ a_uppercase

std::optional<std::string> binance::spot::websocket_streams::TickerResponse::a_uppercase

Best ask quantity.

◆ o

std::optional<std::string> binance::spot::websocket_streams::TickerResponse::o

Open price.

◆ h

std::optional<std::string> binance::spot::websocket_streams::TickerResponse::h

High price.

◆ l

std::optional<std::string> binance::spot::websocket_streams::TickerResponse::l

Low price.

◆ v

std::optional<std::string> binance::spot::websocket_streams::TickerResponse::v

Total traded base asset volume.

◆ q

std::optional<std::string> binance::spot::websocket_streams::TickerResponse::q

Total traded quote asset volume.

◆ o_uppercase

std::optional<std::int64_t> binance::spot::websocket_streams::TickerResponse::o_uppercase

Statistics open time.

◆ c_uppercase

std::optional<std::int64_t> binance::spot::websocket_streams::TickerResponse::c_uppercase

Statistics close time.

◆ f_uppercase

std::optional<std::int64_t> binance::spot::websocket_streams::TickerResponse::f_uppercase

First trade ID.

◆ l_uppercase

std::optional<std::int64_t> binance::spot::websocket_streams::TickerResponse::l_uppercase

Last trade Id.

◆ n

std::optional<std::int64_t> binance::spot::websocket_streams::TickerResponse::n

Total number of trades.