|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
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. | |
Candlestick payload.
|
default |
| std::optional<std::int64_t> binance::stocks::websocket_streams::KlineStreamResponseK::t |
Open time (epoch milliseconds).
| 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.
| std::optional<std::string> binance::stocks::websocket_streams::KlineStreamResponseK::s |
Symbol (UPPERCASE ticker).
| std::optional<std::string> binance::stocks::websocket_streams::KlineStreamResponseK::i |
Interval — "5m" / "1h" / "1d" / "1w" / "1M".
| std::optional<std::string> binance::stocks::websocket_streams::KlineStreamResponseK::o |
Open price.
| std::optional<std::string> binance::stocks::websocket_streams::KlineStreamResponseK::c |
Close price (latest print within the interval).
| std::optional<std::string> binance::stocks::websocket_streams::KlineStreamResponseK::h |
High price.
| std::optional<std::string> binance::stocks::websocket_streams::KlineStreamResponseK::l |
Low price.
| std::optional<std::string> binance::stocks::websocket_streams::KlineStreamResponseK::v |
Volume (shares), default "0".
| 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.
| std::optional<bool> binance::stocks::websocket_streams::KlineStreamResponseK::x |
Candle is closed — true once the interval has ended.
| 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.