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

#include <reference_price_calculation_response.hpp>

Public Member Functions

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

Public Attributes

std::optional< std::string > symbol
std::optional< std::string > calculation_type
 Either ARITHMETIC_MEAN or EXTERNAL.
std::optional< std::int64_t > bucket_count
 Present when calculationType is ARITHMETIC_MEAN.
std::optional< std::int64_t > bucket_width_ms
 Present when calculationType is ARITHMETIC_MEAN.
std::optional< std::int64_t > external_calculation_id
 Present when calculationType is EXTERNAL.

Member Function Documentation

◆ operator==()

bool binance::spot::rest_api::ReferencePriceCalculationResponse::operator== ( const ReferencePriceCalculationResponse & ) const
default

Member Data Documentation

◆ symbol

std::optional<std::string> binance::spot::rest_api::ReferencePriceCalculationResponse::symbol

◆ calculation_type

std::optional<std::string> binance::spot::rest_api::ReferencePriceCalculationResponse::calculation_type

Either ARITHMETIC_MEAN or EXTERNAL.

◆ bucket_count

std::optional<std::int64_t> binance::spot::rest_api::ReferencePriceCalculationResponse::bucket_count

Present when calculationType is ARITHMETIC_MEAN.

◆ bucket_width_ms

std::optional<std::int64_t> binance::spot::rest_api::ReferencePriceCalculationResponse::bucket_width_ms

Present when calculationType is ARITHMETIC_MEAN.

◆ external_calculation_id

std::optional<std::int64_t> binance::spot::rest_api::ReferencePriceCalculationResponse::external_calculation_id

Present when calculationType is EXTERNAL.