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

Candlestick payload. More...

#include <kline_stream_response_k.hpp>

Public Member Functions

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

Public Attributes

std::optional< std::int64_t > t
 Open time (epoch milliseconds).
std::optional< std::int64_t > ct
 Close time (epoch milliseconds).
std::optional< std::string > s
 Symbol (UPPERCASE ticker).
std::optional< std::string > i
 Interval — "5m" / "1h" / "1d" / "1w" / "1M".
std::optional< std::string > o
 Open price.
std::optional< std::string > c
 Close price (latest print within the interval).
std::optional< std::string > h
 High price.
std::optional< std::string > l
 Low price.
std::optional< std::string > v
 Volume (shares), default "0".
std::optional< std::optional< std::int64_t > > n
 Trade count; absent when upstream did not populate.
std::optional< bool > x
 Candle is closed — true once the interval has ended.
std::optional< std::optional< std::string > > vw
 VWAP (volume-weighted average price); absent when upstream did not populate.

Detailed Description

Candlestick payload.

Member Function Documentation

◆ operator==()

bool binance::stocks::websocket_streams::KlineStreamResponseK::operator== ( const KlineStreamResponseK & ) const
default

Member Data Documentation

◆ t

std::optional<std::int64_t> binance::stocks::websocket_streams::KlineStreamResponseK::t

Open time (epoch milliseconds).

◆ ct

std::optional<std::int64_t> binance::stocks::websocket_streams::KlineStreamResponseK::ct

Close time (epoch milliseconds).

For fixed intervals: openTime + duration − 1ms. For 1M: last day of month at 23:59:59.999 UTC.

◆ s

std::optional<std::string> binance::stocks::websocket_streams::KlineStreamResponseK::s

Symbol (UPPERCASE ticker).

◆ i

std::optional<std::string> binance::stocks::websocket_streams::KlineStreamResponseK::i

Interval — "5m" / "1h" / "1d" / "1w" / "1M".

◆ o

std::optional<std::string> binance::stocks::websocket_streams::KlineStreamResponseK::o

Open price.

◆ c

std::optional<std::string> binance::stocks::websocket_streams::KlineStreamResponseK::c

Close price (latest print within the interval).

◆ h

std::optional<std::string> binance::stocks::websocket_streams::KlineStreamResponseK::h

High price.

◆ l

std::optional<std::string> binance::stocks::websocket_streams::KlineStreamResponseK::l

Low price.

◆ v

std::optional<std::string> binance::stocks::websocket_streams::KlineStreamResponseK::v

Volume (shares), default "0".

◆ n

std::optional<std::optional<std::int64_t> > binance::stocks::websocket_streams::KlineStreamResponseK::n

Trade count; absent when upstream did not populate.

std::nullopt when the field is absent; holds std::nullopt when it is null.

◆ x

std::optional<bool> binance::stocks::websocket_streams::KlineStreamResponseK::x

Candle is closed — true once the interval has ended.

◆ vw

std::optional<std::optional<std::string> > binance::stocks::websocket_streams::KlineStreamResponseK::vw

VWAP (volume-weighted average price); absent when upstream did not populate.

std::nullopt when the field is absent; holds std::nullopt when it is null.