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

#include <price_stream_response_rates_inner.hpp>

Public Member Functions

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

Public Attributes

std::optional< std::string > s
 Symbol (UPPERCASE ticker), e.g. "AAPL".
std::optional< std::string > ac
 Internal asset code, EQ_{symbol}. Reference only; do not use as a trading identifier.
std::optional< std::string > p
 Latest price, trailing-zero stripped.
std::optional< std::optional< std::int64_t > > t
 Price time (epoch milliseconds UTC); may be null.
std::optional< std::string > pc
 Previous trading day's close price; absent when unknown.
std::optional< std::string > tc
 Today's close price; absent before After-Hours.
std::optional< std::string > lrc
 Final close price of the most recent completed RTH trading day.
std::optional< std::optional< std::string > > prc
 Final close price of the trading day before the lrc trading day.
std::optional< std::string > mp
 Per-symbol market phase: C Closed, ON Overnight, PRE Pre-Market, O Market Open, POST Post-Market.

Member Function Documentation

◆ operator==()

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

Member Data Documentation

◆ s

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

Symbol (UPPERCASE ticker), e.g. "AAPL".

◆ ac

std::optional<std::string> binance::stocks::websocket_streams::PriceStreamResponseRatesInner::ac

Internal asset code, EQ_{symbol}. Reference only; do not use as a trading identifier.

◆ p

std::optional<std::string> binance::stocks::websocket_streams::PriceStreamResponseRatesInner::p

Latest price, trailing-zero stripped.

◆ t

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

Price time (epoch milliseconds UTC); may be null.

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

◆ pc

std::optional<std::string> binance::stocks::websocket_streams::PriceStreamResponseRatesInner::pc

Previous trading day's close price; absent when unknown.

◆ tc

std::optional<std::string> binance::stocks::websocket_streams::PriceStreamResponseRatesInner::tc

Today's close price; absent before After-Hours.

◆ lrc

std::optional<std::string> binance::stocks::websocket_streams::PriceStreamResponseRatesInner::lrc

Final close price of the most recent completed RTH trading day.

Rolls forward only once the next trading day enters Post-Market and the 1-minute kline for the minute before that day's RTH close is available; while unavailable, the previous lrc/prc pair is retained.

◆ prc

std::optional<std::optional<std::string> > binance::stocks::websocket_streams::PriceStreamResponseRatesInner::prc

Final close price of the trading day before the lrc trading day.

null when the symbol has only one completed RTH trading day (e.g. a new IPO). std::nullopt when the field is absent; holds std::nullopt when it is null.

◆ mp

std::optional<std::string> binance::stocks::websocket_streams::PriceStreamResponseRatesInner::mp

Per-symbol market phase: C Closed, ON Overnight, PRE Pre-Market, O Market Open, POST Post-Market.