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

#include <prediction_order_book_by_market_id_response.hpp>

Public Member Functions

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

Public Attributes

std::optional< std::string > msg_type
 Message type, always orderbook.
std::optional< std::int64_t > market_id
 Market ID of this order book, the same markets[].marketId used by the REST API.
std::optional< std::int64_t > update_timestamp_ms
 Quote update time in milliseconds (UTC).
std::optional< std::vector< std::vector< common::Decimal > > > asks
 Ask levels sorted by price ascending, usually the top 50 or fewer; an empty array means no asks.
std::optional< std::vector< std::vector< common::Decimal > > > bids
 Bid levels sorted by price descending, usually the top 50 or fewer; an empty array means no bids.

Member Function Documentation

◆ operator==()

bool binance::w3w_prediction::websocket_streams::PredictionOrderBookByMarketIdResponse::operator== ( const PredictionOrderBookByMarketIdResponse & ) const
default

Member Data Documentation

◆ msg_type

std::optional<std::string> binance::w3w_prediction::websocket_streams::PredictionOrderBookByMarketIdResponse::msg_type

Message type, always orderbook.

◆ market_id

std::optional<std::int64_t> binance::w3w_prediction::websocket_streams::PredictionOrderBookByMarketIdResponse::market_id

Market ID of this order book, the same markets[].marketId used by the REST API.

◆ update_timestamp_ms

std::optional<std::int64_t> binance::w3w_prediction::websocket_streams::PredictionOrderBookByMarketIdResponse::update_timestamp_ms

Quote update time in milliseconds (UTC).

Messages for the same market may arrive out of order, so discard anything older than the snapshot you already have.

◆ asks

std::optional<std::vector<std::vector<common::Decimal> > > binance::w3w_prediction::websocket_streams::PredictionOrderBookByMarketIdResponse::asks

Ask levels sorted by price ascending, usually the top 50 or fewer; an empty array means no asks.

Values may carry floating-point noise (e.g. 6865.999999999999), so round them before display.

◆ bids

std::optional<std::vector<std::vector<common::Decimal> > > binance::w3w_prediction::websocket_streams::PredictionOrderBookByMarketIdResponse::bids

Bid levels sorted by price descending, usually the top 50 or fewer; an empty array means no bids.

Values may carry floating-point noise (e.g. 6865.999999999999), so round them before display.