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

24-hour rolling window ticker statistics. More...

#include <ticker_response_data.hpp>

Public Member Functions

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

Public Attributes

std::optional< std::string > symbol
 Trading pair symbol.
std::optional< std::string > price_change
 Absolute price change in the 24h window.
std::optional< std::string > price_change_percent
 Percentage price change in the 24h window.
std::optional< std::string > weighted_avg_price
 Weighted average price in the 24h window.
std::optional< std::string > last_price
 Latest traded price.
std::optional< std::string > last_qty
 Quantity of the latest trade.
std::optional< std::string > open_price
 Opening price of the 24h window.
std::optional< std::string > high_price
 Highest price in the 24h window.
std::optional< std::string > low_price
 Lowest price in the 24h window.
std::optional< std::string > volume
 Base asset volume in the 24h window.
std::optional< std::string > quote_volume
 Quote asset volume in the 24h window.
std::optional< std::int64_t > open_time
 Start time of the 24h window (milliseconds).
std::optional< std::int64_t > close_time
 End time of the 24h window (milliseconds).
std::optional< std::int64_t > first_id
 First trade ID in the 24h window.
std::optional< std::int64_t > last_id
 Last trade ID in the 24h window.
std::optional< std::int64_t > count
 Total number of trades in the 24h window.

Detailed Description

24-hour rolling window ticker statistics.

Member Function Documentation

◆ operator==()

bool binance::alpha::rest_api::TickerResponseData::operator== ( const TickerResponseData & ) const
default

Member Data Documentation

◆ symbol

std::optional<std::string> binance::alpha::rest_api::TickerResponseData::symbol

Trading pair symbol.

◆ price_change

std::optional<std::string> binance::alpha::rest_api::TickerResponseData::price_change

Absolute price change in the 24h window.

◆ price_change_percent

std::optional<std::string> binance::alpha::rest_api::TickerResponseData::price_change_percent

Percentage price change in the 24h window.

◆ weighted_avg_price

std::optional<std::string> binance::alpha::rest_api::TickerResponseData::weighted_avg_price

Weighted average price in the 24h window.

◆ last_price

std::optional<std::string> binance::alpha::rest_api::TickerResponseData::last_price

Latest traded price.

◆ last_qty

std::optional<std::string> binance::alpha::rest_api::TickerResponseData::last_qty

Quantity of the latest trade.

◆ open_price

std::optional<std::string> binance::alpha::rest_api::TickerResponseData::open_price

Opening price of the 24h window.

◆ high_price

std::optional<std::string> binance::alpha::rest_api::TickerResponseData::high_price

Highest price in the 24h window.

◆ low_price

std::optional<std::string> binance::alpha::rest_api::TickerResponseData::low_price

Lowest price in the 24h window.

◆ volume

std::optional<std::string> binance::alpha::rest_api::TickerResponseData::volume

Base asset volume in the 24h window.

◆ quote_volume

std::optional<std::string> binance::alpha::rest_api::TickerResponseData::quote_volume

Quote asset volume in the 24h window.

◆ open_time

std::optional<std::int64_t> binance::alpha::rest_api::TickerResponseData::open_time

Start time of the 24h window (milliseconds).

◆ close_time

std::optional<std::int64_t> binance::alpha::rest_api::TickerResponseData::close_time

End time of the 24h window (milliseconds).

◆ first_id

std::optional<std::int64_t> binance::alpha::rest_api::TickerResponseData::first_id

First trade ID in the 24h window.

◆ last_id

std::optional<std::int64_t> binance::alpha::rest_api::TickerResponseData::last_id

Last trade ID in the 24h window.

◆ count

std::optional<std::int64_t> binance::alpha::rest_api::TickerResponseData::count

Total number of trades in the 24h window.