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

Top-level fields mirror an order row from /order/history (orderId, symbol, quote, side, orderType, limitPrice, avgFilledPrice, qty, notional, filledQty, filledTotal, fee, session, status, createdAt, updatedAt), plus a trades array. More...

#include <equity_order_detail_response.hpp>

Public Member Functions

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

Public Attributes

std::optional< std::string > order_id
 Equity order id.
std::optional< std::string > client_order_id
 Client-supplied order id. Present only in Order Detail, not in Order History.
std::optional< std::string > symbol
 US-equity ticker.
std::optional< std::string > quote
 Quote asset.
std::optional< std::string > side
 BUY / SELL.
std::optional< std::string > order_type
 MARKET / LIMIT.
std::optional< std::optional< std::string > > limit_price
 Limit price (USD).
std::optional< std::optional< std::string > > avg_filled_price
 Average fill price (USD).
std::optional< std::optional< std::string > > qty
 Requested quantity.
std::optional< std::optional< std::string > > notional
 Requested notional.
std::optional< std::string > filled_qty
 Cumulative filled quantity.
std::optional< std::optional< std::string > > filled_total
 Cumulative filled notional.
std::optional< std::string > fee
 Total commission fee (USD).
std::optional< std::optional< std::string > > session
 Trading session.
std::optional< std::string > status
 Order lifecycle status.
std::optional< std::int64_t > created_at
 Order creation time (ms epoch).
std::optional< std::int64_t > updated_at
 Last update time (ms epoch).
std::optional< std::vector< EquityOrderDetailResponseTradesInner > > trades
 Trade executions for this order, most recent first. Empty array when no fills.

Detailed Description

Top-level fields mirror an order row from /order/history (orderId, symbol, quote, side, orderType, limitPrice, avgFilledPrice, qty, notional, filledQty, filledTotal, fee, session, status, createdAt, updatedAt), plus a trades array.

clientOrderId is present only in Order Detail, not in Order History.

Member Function Documentation

◆ operator==()

bool binance::stocks::rest_api::EquityOrderDetailResponse::operator== ( const EquityOrderDetailResponse & ) const
default

Member Data Documentation

◆ order_id

std::optional<std::string> binance::stocks::rest_api::EquityOrderDetailResponse::order_id

Equity order id.

◆ client_order_id

std::optional<std::string> binance::stocks::rest_api::EquityOrderDetailResponse::client_order_id

Client-supplied order id. Present only in Order Detail, not in Order History.

◆ symbol

std::optional<std::string> binance::stocks::rest_api::EquityOrderDetailResponse::symbol

US-equity ticker.

◆ quote

std::optional<std::string> binance::stocks::rest_api::EquityOrderDetailResponse::quote

Quote asset.

◆ side

std::optional<std::string> binance::stocks::rest_api::EquityOrderDetailResponse::side

BUY / SELL.

◆ order_type

std::optional<std::string> binance::stocks::rest_api::EquityOrderDetailResponse::order_type

MARKET / LIMIT.

◆ limit_price

std::optional<std::optional<std::string> > binance::stocks::rest_api::EquityOrderDetailResponse::limit_price

Limit price (USD).

Non-null for LIMIT, null for MARKET. std::nullopt when the field is absent; holds std::nullopt when it is null.

◆ avg_filled_price

std::optional<std::optional<std::string> > binance::stocks::rest_api::EquityOrderDetailResponse::avg_filled_price

Average fill price (USD).

Only present when the order has at least one fill. std::nullopt when the field is absent; holds std::nullopt when it is null.

◆ qty

std::optional<std::optional<std::string> > binance::stocks::rest_api::EquityOrderDetailResponse::qty

Requested quantity.

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

◆ notional

std::optional<std::optional<std::string> > binance::stocks::rest_api::EquityOrderDetailResponse::notional

Requested notional.

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

◆ filled_qty

std::optional<std::string> binance::stocks::rest_api::EquityOrderDetailResponse::filled_qty

Cumulative filled quantity.

◆ filled_total

std::optional<std::optional<std::string> > binance::stocks::rest_api::EquityOrderDetailResponse::filled_total

Cumulative filled notional.

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

◆ fee

std::optional<std::string> binance::stocks::rest_api::EquityOrderDetailResponse::fee

Total commission fee (USD).

◆ session

std::optional<std::optional<std::string> > binance::stocks::rest_api::EquityOrderDetailResponse::session

Trading session.

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

◆ status

std::optional<std::string> binance::stocks::rest_api::EquityOrderDetailResponse::status

Order lifecycle status.

◆ created_at

std::optional<std::int64_t> binance::stocks::rest_api::EquityOrderDetailResponse::created_at

Order creation time (ms epoch).

◆ updated_at

std::optional<std::int64_t> binance::stocks::rest_api::EquityOrderDetailResponse::updated_at

Last update time (ms epoch).

◆ trades

std::optional<std::vector<EquityOrderDetailResponseTradesInner> > binance::stocks::rest_api::EquityOrderDetailResponse::trades

Trade executions for this order, most recent first. Empty array when no fills.