Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
Loading...
Searching...
No Matches
binance::spot::websocket_api::OrderPlaceResponseResult Struct Reference

#include <order_place_response_result.hpp>

Public Member Functions

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

Public Attributes

std::optional< std::string > symbol
std::optional< std::int64_t > order_id
std::optional< std::int64_t > order_list_id
 always -1 for singular orders
std::optional< std::string > client_order_id
std::optional< std::int64_t > transact_time
std::optional< std::string > price
std::optional< std::string > orig_qty
std::optional< std::string > executed_qty
std::optional< std::string > orig_quote_order_qty
std::optional< std::string > cummulative_quote_qty
std::optional< std::string > status
std::optional< std::string > time_in_force
std::optional< std::string > type
std::optional< std::string > side
std::optional< std::int64_t > working_time
std::optional< std::string > self_trade_prevention_mode
std::optional< std::string > stop_price
 Appears for STOP_LOSS, TAKE_PROFIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT orders.
std::optional< std::int64_t > trailing_delta
 Delta price change required before order activation.
std::optional< std::string > iceberg_qty
 Appears only if the parameter icebergQty was sent in the request.
std::optional< std::int64_t > strategy_id
 Appears only if the strategyId parameter was provided upon order placement.
std::optional< std::int64_t > strategy_type
 Appears only if the strategyType parameter was provided upon order placement.
std::optional< std::int64_t > prevented_match_id
 Appears only if the order expired due to STP.
std::optional< std::string > prevented_quantity
 Order quantity that expired due to STP.
std::optional< std::int64_t > trailing_time
 Time when the trailing order is now active and tracking price changes.
std::optional< bool > used_sor
 Field that determines whether order used SOR.
std::optional< std::string > working_floor
 Determines whether the order is being filled by the SOR or by the order book.
std::optional< std::string > peg_price_type
 Price peg type. Only for pegged orders.
std::optional< std::string > peg_offset_type
 Price peg offset type. Only for pegged orders, if requested.
std::optional< std::int64_t > peg_offset_value
 Price peg offset value. Only for pegged orders, if requested.
std::optional< std::string > pegged_price
 Current price order is pegged at. Only for pegged orders, once determined.
std::optional< std::string > expiry_reason
 Cause of the order's expiration. Appears when an order has expired.
std::optional< std::vector< OrderPlaceResponseResultFillsInner > > fills
 FULL response is identical to RESULT response, with the same optional fields based on the order type and parameters.

Member Function Documentation

◆ operator==()

bool binance::spot::websocket_api::OrderPlaceResponseResult::operator== ( const OrderPlaceResponseResult & ) const
default

Member Data Documentation

◆ symbol

std::optional<std::string> binance::spot::websocket_api::OrderPlaceResponseResult::symbol

◆ order_id

std::optional<std::int64_t> binance::spot::websocket_api::OrderPlaceResponseResult::order_id

◆ order_list_id

std::optional<std::int64_t> binance::spot::websocket_api::OrderPlaceResponseResult::order_list_id

always -1 for singular orders

◆ client_order_id

std::optional<std::string> binance::spot::websocket_api::OrderPlaceResponseResult::client_order_id

◆ transact_time

std::optional<std::int64_t> binance::spot::websocket_api::OrderPlaceResponseResult::transact_time

◆ price

std::optional<std::string> binance::spot::websocket_api::OrderPlaceResponseResult::price

◆ orig_qty

std::optional<std::string> binance::spot::websocket_api::OrderPlaceResponseResult::orig_qty

◆ executed_qty

std::optional<std::string> binance::spot::websocket_api::OrderPlaceResponseResult::executed_qty

◆ orig_quote_order_qty

std::optional<std::string> binance::spot::websocket_api::OrderPlaceResponseResult::orig_quote_order_qty

◆ cummulative_quote_qty

std::optional<std::string> binance::spot::websocket_api::OrderPlaceResponseResult::cummulative_quote_qty

◆ status

std::optional<std::string> binance::spot::websocket_api::OrderPlaceResponseResult::status

◆ time_in_force

std::optional<std::string> binance::spot::websocket_api::OrderPlaceResponseResult::time_in_force

◆ type

std::optional<std::string> binance::spot::websocket_api::OrderPlaceResponseResult::type

◆ side

std::optional<std::string> binance::spot::websocket_api::OrderPlaceResponseResult::side

◆ working_time

std::optional<std::int64_t> binance::spot::websocket_api::OrderPlaceResponseResult::working_time

◆ self_trade_prevention_mode

std::optional<std::string> binance::spot::websocket_api::OrderPlaceResponseResult::self_trade_prevention_mode

◆ stop_price

std::optional<std::string> binance::spot::websocket_api::OrderPlaceResponseResult::stop_price

Appears for STOP_LOSS, TAKE_PROFIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT orders.

◆ trailing_delta

std::optional<std::int64_t> binance::spot::websocket_api::OrderPlaceResponseResult::trailing_delta

Delta price change required before order activation.

◆ iceberg_qty

std::optional<std::string> binance::spot::websocket_api::OrderPlaceResponseResult::iceberg_qty

Appears only if the parameter icebergQty was sent in the request.

◆ strategy_id

std::optional<std::int64_t> binance::spot::websocket_api::OrderPlaceResponseResult::strategy_id

Appears only if the strategyId parameter was provided upon order placement.

◆ strategy_type

std::optional<std::int64_t> binance::spot::websocket_api::OrderPlaceResponseResult::strategy_type

Appears only if the strategyType parameter was provided upon order placement.

◆ prevented_match_id

std::optional<std::int64_t> binance::spot::websocket_api::OrderPlaceResponseResult::prevented_match_id

Appears only if the order expired due to STP.

◆ prevented_quantity

std::optional<std::string> binance::spot::websocket_api::OrderPlaceResponseResult::prevented_quantity

Order quantity that expired due to STP.

◆ trailing_time

std::optional<std::int64_t> binance::spot::websocket_api::OrderPlaceResponseResult::trailing_time

Time when the trailing order is now active and tracking price changes.

◆ used_sor

std::optional<bool> binance::spot::websocket_api::OrderPlaceResponseResult::used_sor

Field that determines whether order used SOR.

◆ working_floor

std::optional<std::string> binance::spot::websocket_api::OrderPlaceResponseResult::working_floor

Determines whether the order is being filled by the SOR or by the order book.

◆ peg_price_type

std::optional<std::string> binance::spot::websocket_api::OrderPlaceResponseResult::peg_price_type

Price peg type. Only for pegged orders.

◆ peg_offset_type

std::optional<std::string> binance::spot::websocket_api::OrderPlaceResponseResult::peg_offset_type

Price peg offset type. Only for pegged orders, if requested.

◆ peg_offset_value

std::optional<std::int64_t> binance::spot::websocket_api::OrderPlaceResponseResult::peg_offset_value

Price peg offset value. Only for pegged orders, if requested.

◆ pegged_price

std::optional<std::string> binance::spot::websocket_api::OrderPlaceResponseResult::pegged_price

Current price order is pegged at. Only for pegged orders, once determined.

◆ expiry_reason

std::optional<std::string> binance::spot::websocket_api::OrderPlaceResponseResult::expiry_reason

Cause of the order's expiration. Appears when an order has expired.

◆ fills

std::optional<std::vector<OrderPlaceResponseResultFillsInner> > binance::spot::websocket_api::OrderPlaceResponseResult::fills

FULL response is identical to RESULT response, with the same optional fields based on the order type and parameters.

FULL response additionally includes the list of trades which immediately filled the order.