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

#include <trade_api.hpp>

Public Attributes

common::Required< std::string > symbol
common::Required< OrderCancelReplaceSideEnum > side
common::Required< OrderCancelReplaceTypeEnum > type
common::Required< OrderCancelReplaceCancelReplaceModeEnum > cancel_replace_mode
 The allowed values are: STOP_ON_FAILURE - If the cancel request fails, the new order placement will not be attempted.
std::optional< OrderCancelReplaceTimeInForceEnum > time_in_force = std::nullopt
std::optional< common::Decimal > quantity = std::nullopt
std::optional< common::Decimal > quote_order_qty = std::nullopt
std::optional< common::Decimal > price = std::nullopt
std::optional< std::string > cancel_new_client_order_id = std::nullopt
 Used to uniquely identify this cancel. Automatically generated by default.
std::optional< std::string > cancel_orig_client_order_id = std::nullopt
 Either cancelOrderId or cancelOrigClientOrderId must be sent.
std::optional< std::int64_t > cancel_order_id = std::nullopt
 Either cancelOrderId or cancelOrigClientOrderId must be sent.
std::optional< std::string > new_client_order_id = std::nullopt
 Used to identify the new order.
std::optional< std::int64_t > strategy_id = std::nullopt
std::optional< std::int64_t > strategy_type = std::nullopt
 The value cannot be less than 1000000.
std::optional< common::Decimal > stop_price = std::nullopt
std::optional< std::int64_t > trailing_delta = std::nullopt
 See Trailing Stop order FAQ.
std::optional< common::Decimal > iceberg_qty = std::nullopt
std::optional< OrderCancelReplaceNewOrderRespTypeEnum > new_order_resp_type = std::nullopt
 Allowed values: ACK, RESULT, FULL MARKET and LIMIT orders types default to FULL; all other orders default to ACK.
std::optional< OrderCancelReplaceSelfTradePreventionModeEnum > self_trade_prevention_mode
 The allowed enums is dependent on what is configured on the symbol.
std::optional< OrderCancelReplaceCancelRestrictionsEnum > cancel_restrictions = std::nullopt
 Supported values: ONLY_NEW - Cancel will succeed if the order status is NEW.
std::optional< OrderCancelReplaceOrderRateLimitExceededModeEnum > order_rate_limit_exceeded_mode
 Supported values: DO_NOTHING (default)- will only attempt to cancel the order if account has not exceeded the unfilled order rate limit CANCEL_ONLY - will always cancel the order.
std::optional< OrderCancelReplacePegPriceTypeEnum > peg_price_type = std::nullopt
 PRIMARY_PEG or MARKET_PEG See Pegged Orders
std::optional< std::int64_t > peg_offset_value = std::nullopt
 Price level to peg the price to (max: 100) See Pegged Orders.
std::optional< OrderCancelReplacePegOffsetTypeEnum > peg_offset_type = std::nullopt
 Only PRICE_LEVEL is supported See Pegged Orders.
std::optional< common::Decimal > quote_notional_limit = std::nullopt
 For replacement orders on the BUY side only.
std::optional< common::Decimal > recv_window = std::nullopt
 Supports up to three decimal places of precision (e.g., 6000.346) so that microseconds may be specified.

Member Data Documentation

◆ symbol

common::Required<std::string> binance::spot::rest_api::OrderCancelReplaceParams::symbol

◆ side

common::Required<OrderCancelReplaceSideEnum> binance::spot::rest_api::OrderCancelReplaceParams::side

◆ type

common::Required<OrderCancelReplaceTypeEnum> binance::spot::rest_api::OrderCancelReplaceParams::type

◆ cancel_replace_mode

common::Required<OrderCancelReplaceCancelReplaceModeEnum> binance::spot::rest_api::OrderCancelReplaceParams::cancel_replace_mode

The allowed values are: STOP_ON_FAILURE - If the cancel request fails, the new order placement will not be attempted.

ALLOW_FAILURE - new order placement will be attempted even if cancel request fails.

◆ time_in_force

std::optional<OrderCancelReplaceTimeInForceEnum> binance::spot::rest_api::OrderCancelReplaceParams::time_in_force = std::nullopt

◆ quantity

std::optional<common::Decimal> binance::spot::rest_api::OrderCancelReplaceParams::quantity = std::nullopt

◆ quote_order_qty

std::optional<common::Decimal> binance::spot::rest_api::OrderCancelReplaceParams::quote_order_qty = std::nullopt

◆ price

std::optional<common::Decimal> binance::spot::rest_api::OrderCancelReplaceParams::price = std::nullopt

◆ cancel_new_client_order_id

std::optional<std::string> binance::spot::rest_api::OrderCancelReplaceParams::cancel_new_client_order_id = std::nullopt

Used to uniquely identify this cancel. Automatically generated by default.

◆ cancel_orig_client_order_id

std::optional<std::string> binance::spot::rest_api::OrderCancelReplaceParams::cancel_orig_client_order_id = std::nullopt

Either cancelOrderId or cancelOrigClientOrderId must be sent.

If both cancelOrderId and cancelOrigClientOrderId parameters are provided, the cancelOrderId is searched first, then the cancelOrigClientOrderId from that result is checked against that order.

If both conditions are not met the request will be rejected.

◆ cancel_order_id

std::optional<std::int64_t> binance::spot::rest_api::OrderCancelReplaceParams::cancel_order_id = std::nullopt

Either cancelOrderId or cancelOrigClientOrderId must be sent.

If both cancelOrderId and cancelOrigClientOrderId parameters are provided, the cancelOrderId is searched first, then the cancelOrigClientOrderId from that result is checked against that order.

If both conditions are not met the request will be rejected.

◆ new_client_order_id

std::optional<std::string> binance::spot::rest_api::OrderCancelReplaceParams::new_client_order_id = std::nullopt

Used to identify the new order.

◆ strategy_id

std::optional<std::int64_t> binance::spot::rest_api::OrderCancelReplaceParams::strategy_id = std::nullopt

◆ strategy_type

std::optional<std::int64_t> binance::spot::rest_api::OrderCancelReplaceParams::strategy_type = std::nullopt

The value cannot be less than 1000000.

◆ stop_price

std::optional<common::Decimal> binance::spot::rest_api::OrderCancelReplaceParams::stop_price = std::nullopt

◆ trailing_delta

std::optional<std::int64_t> binance::spot::rest_api::OrderCancelReplaceParams::trailing_delta = std::nullopt

See Trailing Stop order FAQ.

◆ iceberg_qty

std::optional<common::Decimal> binance::spot::rest_api::OrderCancelReplaceParams::iceberg_qty = std::nullopt

◆ new_order_resp_type

std::optional<OrderCancelReplaceNewOrderRespTypeEnum> binance::spot::rest_api::OrderCancelReplaceParams::new_order_resp_type = std::nullopt

Allowed values: ACK, RESULT, FULL MARKET and LIMIT orders types default to FULL; all other orders default to ACK.

◆ self_trade_prevention_mode

std::optional<OrderCancelReplaceSelfTradePreventionModeEnum> binance::spot::rest_api::OrderCancelReplaceParams::self_trade_prevention_mode
Initial value:
=
std::nullopt

The allowed enums is dependent on what is configured on the symbol.

The possible supported values are: STP Modes.

◆ cancel_restrictions

std::optional<OrderCancelReplaceCancelRestrictionsEnum> binance::spot::rest_api::OrderCancelReplaceParams::cancel_restrictions = std::nullopt

Supported values: ONLY_NEW - Cancel will succeed if the order status is NEW.

ONLY_PARTIALLY_FILLED - Cancel will succeed if order status is PARTIALLY_FILLED. For more information please refer to Regarding cancelRestrictions.

◆ order_rate_limit_exceeded_mode

std::optional<OrderCancelReplaceOrderRateLimitExceededModeEnum> binance::spot::rest_api::OrderCancelReplaceParams::order_rate_limit_exceeded_mode
Initial value:
=
std::nullopt

Supported values: DO_NOTHING (default)- will only attempt to cancel the order if account has not exceeded the unfilled order rate limit CANCEL_ONLY - will always cancel the order.

◆ peg_price_type

std::optional<OrderCancelReplacePegPriceTypeEnum> binance::spot::rest_api::OrderCancelReplaceParams::peg_price_type = std::nullopt

PRIMARY_PEG or MARKET_PEG See Pegged Orders

◆ peg_offset_value

std::optional<std::int64_t> binance::spot::rest_api::OrderCancelReplaceParams::peg_offset_value = std::nullopt

Price level to peg the price to (max: 100) See Pegged Orders.

◆ peg_offset_type

std::optional<OrderCancelReplacePegOffsetTypeEnum> binance::spot::rest_api::OrderCancelReplaceParams::peg_offset_type = std::nullopt

Only PRICE_LEVEL is supported See Pegged Orders.

◆ quote_notional_limit

std::optional<common::Decimal> binance::spot::rest_api::OrderCancelReplaceParams::quote_notional_limit = std::nullopt

For replacement orders on the BUY side only.

Maximum quote-asset notional the replacement order may consume. See Quote Notional Limit.

◆ recv_window

std::optional<common::Decimal> binance::spot::rest_api::OrderCancelReplaceParams::recv_window = std::nullopt

Supports up to three decimal places of precision (e.g., 6000.346) so that microseconds may be specified.