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

#include <order_report_stream_response.hpp>

Public Member Functions

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

Public Attributes

std::optional< std::string > e
 Event type, always "orderReport".
std::optional< std::int64_t > e_uppercase
 Event time (epoch milliseconds); server push time.
std::optional< std::string > x
 Execution type: "ORDER_UPDATE" (still open) or "ORDER_TERMINAL" (reached terminal state).
std::optional< std::string > i
 Order ID (UUID).
std::optional< std::string > ai
 Asset ID (internal identifier).
std::optional< std::string > b
 Base asset — the internal asset code with an EQ_ prefix (e.g.
std::optional< std::string > q
 Quote currency, e.g. "USD".
std::optional< std::string > s_uppercase
 Order side: "buy" or "sell". Note: lowercase, unlike REST responses.
std::optional< std::string > o
 Order type: "market" / "limit" / "stop" / "stop_limit" / "trailing_stop".
std::optional< std::optional< common::Decimal > > p
 Limit price; null for market orders.
std::optional< common::Decimal > q_uppercase
 Order quantity (shares); 0 when the order was submitted as notional.
std::optional< std::optional< common::Decimal > > n_uppercase
 Order notional; set when the order was submitted as notional (market buy), null when submitted as quantity.
std::optional< common::Decimal > fq
 Filled quantity.
std::optional< common::Decimal > fn_uppercase
 Filled notional (= filledQty × filledAvgPrice).
std::optional< common::Decimal > tc
 Total cost — cumulative buy-in cost including the commission fee.
std::optional< common::Decimal > z_uppercase
 Fill progress percentage (0–100, 2 dp). By notional: FN / N × 100. By qty: fq / Q × 100.
std::optional< std::string > n
 Trading session label, e.g. "Regular", "24 Hours Trading".
std::optional< std::string > s
 Order status, e.g.
std::optional< std::int64_t > t_uppercase
 Order create time (epoch milliseconds).
std::optional< std::int64_t > u_uppercase
 Order update time (epoch milliseconds).

Member Function Documentation

◆ operator==()

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

Member Data Documentation

◆ e

std::optional<std::string> binance::stocks::websocket_streams::OrderReportStreamResponse::e

Event type, always "orderReport".

◆ e_uppercase

std::optional<std::int64_t> binance::stocks::websocket_streams::OrderReportStreamResponse::e_uppercase

Event time (epoch milliseconds); server push time.

◆ x

std::optional<std::string> binance::stocks::websocket_streams::OrderReportStreamResponse::x

Execution type: "ORDER_UPDATE" (still open) or "ORDER_TERMINAL" (reached terminal state).

◆ i

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

Order ID (UUID).

◆ ai

std::optional<std::string> binance::stocks::websocket_streams::OrderReportStreamResponse::ai

Asset ID (internal identifier).

◆ b

std::optional<std::string> binance::stocks::websocket_streams::OrderReportStreamResponse::b

Base asset — the internal asset code with an EQ_ prefix (e.g.

"EQ_AAPL"), not the bare ticker used in REST responses / order input. Strip the EQ_ prefix to match a symbol used elsewhere.

◆ q

std::optional<std::string> binance::stocks::websocket_streams::OrderReportStreamResponse::q

Quote currency, e.g. "USD".

◆ s_uppercase

std::optional<std::string> binance::stocks::websocket_streams::OrderReportStreamResponse::s_uppercase

Order side: "buy" or "sell". Note: lowercase, unlike REST responses.

◆ o

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

Order type: "market" / "limit" / "stop" / "stop_limit" / "trailing_stop".

Note: lowercase.

◆ p

std::optional<std::optional<common::Decimal> > binance::stocks::websocket_streams::OrderReportStreamResponse::p

Limit price; null for market orders.

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

◆ q_uppercase

std::optional<common::Decimal> binance::stocks::websocket_streams::OrderReportStreamResponse::q_uppercase

Order quantity (shares); 0 when the order was submitted as notional.

◆ n_uppercase

std::optional<std::optional<common::Decimal> > binance::stocks::websocket_streams::OrderReportStreamResponse::n_uppercase

Order notional; set when the order was submitted as notional (market buy), null when submitted as quantity.

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

◆ fq

std::optional<common::Decimal> binance::stocks::websocket_streams::OrderReportStreamResponse::fq

Filled quantity.

◆ fn_uppercase

std::optional<common::Decimal> binance::stocks::websocket_streams::OrderReportStreamResponse::fn_uppercase

Filled notional (= filledQty × filledAvgPrice).

◆ tc

std::optional<common::Decimal> binance::stocks::websocket_streams::OrderReportStreamResponse::tc

Total cost — cumulative buy-in cost including the commission fee.

◆ z_uppercase

std::optional<common::Decimal> binance::stocks::websocket_streams::OrderReportStreamResponse::z_uppercase

Fill progress percentage (0–100, 2 dp). By notional: FN / N × 100. By qty: fq / Q × 100.

◆ n

std::optional<std::string> binance::stocks::websocket_streams::OrderReportStreamResponse::n

Trading session label, e.g. "Regular", "24 Hours Trading".

◆ s

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

Order status, e.g.

"accepted", "partially_filled", "filled", "canceled". Note: lowercase, unlike REST responses.

◆ t_uppercase

std::optional<std::int64_t> binance::stocks::websocket_streams::OrderReportStreamResponse::t_uppercase

Order create time (epoch milliseconds).

◆ u_uppercase

std::optional<std::int64_t> binance::stocks::websocket_streams::OrderReportStreamResponse::u_uppercase

Order update time (epoch milliseconds).