|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
#include <order_report_v2_stream_response.hpp>
Public Member Functions | |
| bool | operator== (const OrderReportV2StreamResponse &) const =default |
Public Attributes | |
| std::optional< std::string > | e |
| Event type, always "orderReportV2". | |
| std::optional< std::int64_t > | e_uppercase |
| Push time (ms). | |
| std::optional< std::string > | x |
| ORDER_UPDATE: the order is open (new, accepted by the broker, partially filled, cancel pending, etc.). | |
| std::optional< std::string > | i |
| Order ID. REST field orderId. | |
| std::optional< std::string > | ci |
| Client order ID. REST field clientOrderId. | |
| std::optional< std::string > | ai |
| Broker-side asset ID. Not needed by callers. | |
| std::optional< std::optional< std::string > > | b |
| Internal asset code (e.g. | |
| std::optional< std::optional< std::string > > | q |
| Quote asset; USDC for options. | |
| std::optional< std::string > | s_uppercase |
| Side: "buy" / "sell". Note: lowercase, unlike REST side. | |
| std::optional< std::string > | o |
| Order type, lowercase: "limit" for user orders; "market" for expiration-day auto-liquidation orders by the broker. | |
| std::optional< std::optional< common::Decimal > > | p |
| Limit price (premium per share). | |
| std::optional< common::Decimal > | q_uppercase |
| Order quantity (contracts). REST field qty. | |
| std::optional< std::optional< common::Decimal > > | n_uppercase |
| Order notional. | |
| std::optional< common::Decimal > | fq |
| Cumulative filled quantity (contracts). REST field filledQty. | |
| std::optional< common::Decimal > | fn_uppercase |
| Cumulative filled amount (USD) = average fill price × filled contracts × multiplier. | |
| std::optional< std::optional< common::Decimal > > | tc |
| Amount locked from the wallet at placement: premium plus fees for buy to open and buy to close (covered call); for buy to close (cash-secured put), only the shortfall after the collateral is released (usually 0); the collateral for sell to open (shares for a covered call, cash for a cash-secured put); 0 for sell to close. | |
| std::optional< common::Decimal > | z_uppercase |
| Fill progress percentage (0–100, 2 dp) = fq / Q × 100. REST field filledPercent. | |
| std::optional< std::string > | n |
| Trading session; always RTH for options. | |
| std::optional< std::string > | s |
| Order status, lowercase. | |
| std::optional< std::int64_t > | t_uppercase |
| Order creation time (ms). REST field createdAt. | |
| std::optional< std::int64_t > | u_uppercase |
| Order last update time (ms). REST field updatedAt. | |
| std::optional< std::string > | ac |
| Asset class: us_option (US stock options) / us_equity (US stocks). | |
| std::optional< std::string > | os |
| OCC contract symbol. REST field symbol. | |
| std::optional< std::optional< std::string > > | u |
| Underlying US-equity ticker. | |
| std::optional< std::string > | rs |
| OCC root; differs from u for contracts adjusted by a corporate action. | |
| std::optional< std::optional< std::string > > | ct |
| CALL / PUT. | |
| std::optional< std::optional< common::Decimal > > | sp |
| Strike price. | |
| std::optional< std::optional< std::int64_t > > | ed |
| Expiration date as the millisecond timestamp of 12:00 ET on the expiration day, same as REST expirationDate. | |
| std::optional< common::Decimal > | m |
| Contract multiplier. REST field multiplier. | |
| std::optional< std::string > | pi |
| Position intent, lowercase: buy_to_open / sell_to_close / sell_to_open / buy_to_close. | |
|
default |
| std::optional<std::string> binance::stock_options::websocket_streams::OrderReportV2StreamResponse::e |
Event type, always "orderReportV2".
| std::optional<std::int64_t> binance::stock_options::websocket_streams::OrderReportV2StreamResponse::e_uppercase |
Push time (ms).
| std::optional<std::string> binance::stock_options::websocket_streams::OrderReportV2StreamResponse::x |
ORDER_UPDATE: the order is open (new, accepted by the broker, partially filled, cancel pending, etc.).
ORDER_TERMINAL: the order reached a terminal state and will not be pushed again.
| std::optional<std::string> binance::stock_options::websocket_streams::OrderReportV2StreamResponse::i |
Order ID. REST field orderId.
| std::optional<std::string> binance::stock_options::websocket_streams::OrderReportV2StreamResponse::ci |
Client order ID. REST field clientOrderId.
| std::optional<std::string> binance::stock_options::websocket_streams::OrderReportV2StreamResponse::ai |
Broker-side asset ID. Not needed by callers.
| std::optional<std::optional<std::string> > binance::stock_options::websocket_streams::OrderReportV2StreamResponse::b |
Internal asset code (e.g.
EQ_SPCX). Not needed by callers; read the underlying from u. May be null for expiration-day auto-liquidation orders. std::nullopt when the field is absent; holds std::nullopt when it is null.
| std::optional<std::optional<std::string> > binance::stock_options::websocket_streams::OrderReportV2StreamResponse::q |
Quote asset; USDC for options.
REST field quoteAsset. May be null for expiration-day auto-liquidation orders. std::nullopt when the field is absent; holds std::nullopt when it is null.
| std::optional<std::string> binance::stock_options::websocket_streams::OrderReportV2StreamResponse::s_uppercase |
Side: "buy" / "sell". Note: lowercase, unlike REST side.
| std::optional<std::string> binance::stock_options::websocket_streams::OrderReportV2StreamResponse::o |
Order type, lowercase: "limit" for user orders; "market" for expiration-day auto-liquidation orders by the broker.
REST orderType is uppercase.
| std::optional<std::optional<common::Decimal> > binance::stock_options::websocket_streams::OrderReportV2StreamResponse::p |
Limit price (premium per share).
REST field limitPrice. May be null for expiration-day auto-liquidation orders. std::nullopt when the field is absent; holds std::nullopt when it is null.
| std::optional<common::Decimal> binance::stock_options::websocket_streams::OrderReportV2StreamResponse::q_uppercase |
Order quantity (contracts). REST field qty.
| std::optional<std::optional<common::Decimal> > binance::stock_options::websocket_streams::OrderReportV2StreamResponse::n_uppercase |
Order notional.
Always null for options. std::nullopt when the field is absent; holds std::nullopt when it is null.
| std::optional<common::Decimal> binance::stock_options::websocket_streams::OrderReportV2StreamResponse::fq |
Cumulative filled quantity (contracts). REST field filledQty.
| std::optional<common::Decimal> binance::stock_options::websocket_streams::OrderReportV2StreamResponse::fn_uppercase |
Cumulative filled amount (USD) = average fill price × filled contracts × multiplier.
REST field filledNotional.
| std::optional<std::optional<common::Decimal> > binance::stock_options::websocket_streams::OrderReportV2StreamResponse::tc |
Amount locked from the wallet at placement: premium plus fees for buy to open and buy to close (covered call); for buy to close (cash-secured put), only the shortfall after the collateral is released (usually 0); the collateral for sell to open (shares for a covered call, cash for a cash-secured put); 0 for sell to close.
REST field totalCost. May be null for expiration-day auto-liquidation orders. std::nullopt when the field is absent; holds std::nullopt when it is null.
| std::optional<common::Decimal> binance::stock_options::websocket_streams::OrderReportV2StreamResponse::z_uppercase |
Fill progress percentage (0–100, 2 dp) = fq / Q × 100. REST field filledPercent.
| std::optional<std::string> binance::stock_options::websocket_streams::OrderReportV2StreamResponse::n |
Trading session; always RTH for options.
| std::optional<std::string> binance::stock_options::websocket_streams::OrderReportV2StreamResponse::s |
Order status, lowercase.
With ORDER_UPDATE: new / pending_new / accepted / partially_filled / pending_cancel / pending_replace. With ORDER_TERMINAL: filled / canceled / expired / rejected / replaced. REST field status is uppercase.
| std::optional<std::int64_t> binance::stock_options::websocket_streams::OrderReportV2StreamResponse::t_uppercase |
Order creation time (ms). REST field createdAt.
| std::optional<std::int64_t> binance::stock_options::websocket_streams::OrderReportV2StreamResponse::u_uppercase |
Order last update time (ms). REST field updatedAt.
| std::optional<std::string> binance::stock_options::websocket_streams::OrderReportV2StreamResponse::ac |
Asset class: us_option (US stock options) / us_equity (US stocks).
| std::optional<std::string> binance::stock_options::websocket_streams::OrderReportV2StreamResponse::os |
OCC contract symbol. REST field symbol.
| std::optional<std::optional<std::string> > binance::stock_options::websocket_streams::OrderReportV2StreamResponse::u |
Underlying US-equity ticker.
REST field underlyingSymbol. May be null for expiration-day auto-liquidation orders. std::nullopt when the field is absent; holds std::nullopt when it is null.
| std::optional<std::string> binance::stock_options::websocket_streams::OrderReportV2StreamResponse::rs |
OCC root; differs from u for contracts adjusted by a corporate action.
REST field rootSymbol.
| std::optional<std::optional<std::string> > binance::stock_options::websocket_streams::OrderReportV2StreamResponse::ct |
CALL / PUT.
REST field contractType. May be null for expiration-day auto-liquidation orders. std::nullopt when the field is absent; holds std::nullopt when it is null.
| std::optional<std::optional<common::Decimal> > binance::stock_options::websocket_streams::OrderReportV2StreamResponse::sp |
Strike price.
REST field strikePrice. May be null for expiration-day auto-liquidation orders. std::nullopt when the field is absent; holds std::nullopt when it is null.
| std::optional<std::optional<std::int64_t> > binance::stock_options::websocket_streams::OrderReportV2StreamResponse::ed |
Expiration date as the millisecond timestamp of 12:00 ET on the expiration day, same as REST expirationDate.
May be null for expiration-day auto-liquidation orders. std::nullopt when the field is absent; holds std::nullopt when it is null.
| std::optional<common::Decimal> binance::stock_options::websocket_streams::OrderReportV2StreamResponse::m |
Contract multiplier. REST field multiplier.
| std::optional<std::string> binance::stock_options::websocket_streams::OrderReportV2StreamResponse::pi |
Position intent, lowercase: buy_to_open / sell_to_close / sell_to_open / buy_to_close.
REST field positionIntent is uppercase.