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

#include <trade_api.hpp>

Public Attributes

common::Required< std::string > symbol
common::Required< OrderListPlaceOpocoWorkingTypeEnum > working_type
 Supported values: LIMIT, LIMIT_MAKER.
common::Required< OrderListPlaceOpocoWorkingSideEnum > working_side
 Supported values: Order Side.
common::Required< common::Decimal > working_price
 Price for the working order.
common::Required< common::Decimal > working_quantity
 Sets the quantity for the working order.
common::Required< OrderListPlaceOpocoPendingSideEnum > pending_side
 Supported values: Order Side.
common::Required< OrderListPlaceOpocoPendingAboveTypeEnum > pending_above_type
 Supported values: STOP_LOSS_LIMIT, STOP_LOSS, LIMIT_MAKER, TAKE_PROFIT, TAKE_PROFIT_LIMIT.
std::optional< std::string > id = std::nullopt
 Client-generated request identifier.
std::optional< std::string > list_client_order_id = std::nullopt
 Arbitrary unique ID among open order lists.
std::optional< OrderListPlaceOpocoNewOrderRespTypeEnum > new_order_resp_type = std::nullopt
 Format of the JSON response. Supported values: Order Response Type.
std::optional< OrderListPlaceOpocoSelfTradePreventionModeEnum > self_trade_prevention_mode
 The allowed enums is dependent on what is configured on the symbol.
std::optional< std::string > working_client_order_id = std::nullopt
 Arbitrary unique ID among open orders for the working order.
std::optional< common::Decimal > working_iceberg_qty = std::nullopt
 This can only be used if workingTimeInForce is GTC, or if workingType is LIMIT_MAKER.
std::optional< OrderListPlaceOpocoWorkingTimeInForceEnum > working_time_in_force = std::nullopt
 Supported values: Time In Force.
std::optional< std::int64_t > working_strategy_id = std::nullopt
 Arbitrary numeric value identifying the working order within an order strategy.
std::optional< std::int64_t > working_strategy_type = std::nullopt
 Arbitrary numeric value identifying the working order strategy.
std::optional< OrderListPlaceOpocoWorkingPegPriceTypeEnum > working_peg_price_type = std::nullopt
 See Pegged Orders.
std::optional< OrderListPlaceOpocoWorkingPegOffsetTypeEnum > working_peg_offset_type
 See Pegged Orders.
std::optional< std::int64_t > working_peg_offset_value = std::nullopt
 Price level for pegging (max: 100). See Pegged Orders.
std::optional< std::string > pending_above_client_order_id = std::nullopt
 Arbitrary unique ID among open orders for the pending above order.
std::optional< common::Decimal > pending_above_price = std::nullopt
 Can be used if pendingAboveType is STOP_LOSS_LIMIT, LIMIT_MAKER, or TAKE_PROFIT_LIMIT to specify the limit price.
std::optional< common::Decimal > pending_above_stop_price = std::nullopt
 Can be used if pendingAboveType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT.
std::optional< common::Decimal > pending_above_trailing_delta = std::nullopt
 See Trailing Stop order FAQ.
std::optional< common::Decimal > pending_above_iceberg_qty = std::nullopt
 This can only be used if pendingAboveTimeInForce is GTC or pendingAboveType is LIMIT_MAKER.
std::optional< OrderListPlaceOpocoPendingAboveTimeInForceEnum > pending_above_time_in_force
 Required if pendingAboveType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT.
std::optional< std::int64_t > pending_above_strategy_id = std::nullopt
 Arbitrary numeric value identifying the pending above order within an order strategy.
std::optional< std::int64_t > pending_above_strategy_type = std::nullopt
 Arbitrary numeric value identifying the pending above order strategy.
std::optional< OrderListPlaceOpocoPendingAbovePegPriceTypeEnum > pending_above_peg_price_type
 See Pegged Orders.
std::optional< OrderListPlaceOpocoPendingAbovePegOffsetTypeEnum > pending_above_peg_offset_type
 See Pegged Orders.
std::optional< std::int64_t > pending_above_peg_offset_value = std::nullopt
 Price level for pegging (max: 100). See Pegged Orders.
std::optional< OrderListPlaceOpocoPendingBelowTypeEnum > pending_below_type = std::nullopt
 Supported values: STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT.
std::optional< std::string > pending_below_client_order_id = std::nullopt
 Arbitrary unique ID among open orders for the pending below order.
std::optional< common::Decimal > pending_below_price = std::nullopt
 Can be used if pendingBelowType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT to specify the limit price.
std::optional< common::Decimal > pending_below_stop_price = std::nullopt
 Can be used if pendingBelowType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT.
std::optional< common::Decimal > pending_below_trailing_delta = std::nullopt
 See Trailing Stop order FAQ.
std::optional< common::Decimal > pending_below_iceberg_qty = std::nullopt
 This can only be used if pendingBelowTimeInForce is GTC or pendingBelowType is LIMIT_MAKER.
std::optional< OrderListPlaceOpocoPendingBelowTimeInForceEnum > pending_below_time_in_force
 Supported values: Time In Force.
std::optional< std::int64_t > pending_below_strategy_id = std::nullopt
 Arbitrary numeric value identifying the pending below order within an order strategy.
std::optional< std::int64_t > pending_below_strategy_type = std::nullopt
 Arbitrary numeric value identifying the pending below order strategy.
std::optional< OrderListPlaceOpocoPendingBelowPegPriceTypeEnum > pending_below_peg_price_type
 See Pegged Orders.
std::optional< OrderListPlaceOpocoPendingBelowPegOffsetTypeEnum > pending_below_peg_offset_type
std::optional< std::int64_t > pending_below_peg_offset_value = std::nullopt
std::optional< common::Decimal > working_quote_notional_limit = std::nullopt
 Quote notional limit for the working LIMIT order on the BUY side. See Quote Notional Limit.
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::websocket_api::OrderListPlaceOpocoParams::symbol

◆ working_type

common::Required<OrderListPlaceOpocoWorkingTypeEnum> binance::spot::websocket_api::OrderListPlaceOpocoParams::working_type

Supported values: LIMIT, LIMIT_MAKER.

◆ working_side

common::Required<OrderListPlaceOpocoWorkingSideEnum> binance::spot::websocket_api::OrderListPlaceOpocoParams::working_side

Supported values: Order Side.

◆ working_price

common::Required<common::Decimal> binance::spot::websocket_api::OrderListPlaceOpocoParams::working_price

Price for the working order.

◆ working_quantity

common::Required<common::Decimal> binance::spot::websocket_api::OrderListPlaceOpocoParams::working_quantity

Sets the quantity for the working order.

◆ pending_side

common::Required<OrderListPlaceOpocoPendingSideEnum> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_side

Supported values: Order Side.

◆ pending_above_type

common::Required<OrderListPlaceOpocoPendingAboveTypeEnum> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_above_type

Supported values: STOP_LOSS_LIMIT, STOP_LOSS, LIMIT_MAKER, TAKE_PROFIT, TAKE_PROFIT_LIMIT.

◆ id

std::optional<std::string> binance::spot::websocket_api::OrderListPlaceOpocoParams::id = std::nullopt

Client-generated request identifier.

◆ list_client_order_id

std::optional<std::string> binance::spot::websocket_api::OrderListPlaceOpocoParams::list_client_order_id = std::nullopt

Arbitrary unique ID among open order lists.

Automatically generated if not sent. A new order list with the same listClientOrderId is accepted only when the previous one is filled or completely expired. listClientOrderId is distinct from the workingClientOrderId, pendingAboveClientOrderId, and the pendingBelowClientOrderId.

◆ new_order_resp_type

std::optional<OrderListPlaceOpocoNewOrderRespTypeEnum> binance::spot::websocket_api::OrderListPlaceOpocoParams::new_order_resp_type = std::nullopt

Format of the JSON response. Supported values: Order Response Type.

◆ self_trade_prevention_mode

std::optional<OrderListPlaceOpocoSelfTradePreventionModeEnum> binance::spot::websocket_api::OrderListPlaceOpocoParams::self_trade_prevention_mode
Initial value:
=
std::nullopt

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

Supported values: STP Modes

◆ working_client_order_id

std::optional<std::string> binance::spot::websocket_api::OrderListPlaceOpocoParams::working_client_order_id = std::nullopt

Arbitrary unique ID among open orders for the working order.

Automatically generated if not sent.

◆ working_iceberg_qty

std::optional<common::Decimal> binance::spot::websocket_api::OrderListPlaceOpocoParams::working_iceberg_qty = std::nullopt

This can only be used if workingTimeInForce is GTC, or if workingType is LIMIT_MAKER.

◆ working_time_in_force

std::optional<OrderListPlaceOpocoWorkingTimeInForceEnum> binance::spot::websocket_api::OrderListPlaceOpocoParams::working_time_in_force = std::nullopt

Supported values: Time In Force.

◆ working_strategy_id

std::optional<std::int64_t> binance::spot::websocket_api::OrderListPlaceOpocoParams::working_strategy_id = std::nullopt

Arbitrary numeric value identifying the working order within an order strategy.

◆ working_strategy_type

std::optional<std::int64_t> binance::spot::websocket_api::OrderListPlaceOpocoParams::working_strategy_type = std::nullopt

Arbitrary numeric value identifying the working order strategy.

Values smaller than 1000000 are reserved and cannot be used.

◆ working_peg_price_type

std::optional<OrderListPlaceOpocoWorkingPegPriceTypeEnum> binance::spot::websocket_api::OrderListPlaceOpocoParams::working_peg_price_type = std::nullopt

See Pegged Orders.

◆ working_peg_offset_type

std::optional<OrderListPlaceOpocoWorkingPegOffsetTypeEnum> binance::spot::websocket_api::OrderListPlaceOpocoParams::working_peg_offset_type
Initial value:
=
std::nullopt

See Pegged Orders.

◆ working_peg_offset_value

std::optional<std::int64_t> binance::spot::websocket_api::OrderListPlaceOpocoParams::working_peg_offset_value = std::nullopt

Price level for pegging (max: 100). See Pegged Orders.

◆ pending_above_client_order_id

std::optional<std::string> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_above_client_order_id = std::nullopt

Arbitrary unique ID among open orders for the pending above order.

Automatically generated if not sent.

◆ pending_above_price

std::optional<common::Decimal> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_above_price = std::nullopt

Can be used if pendingAboveType is STOP_LOSS_LIMIT, LIMIT_MAKER, or TAKE_PROFIT_LIMIT to specify the limit price.

◆ pending_above_stop_price

std::optional<common::Decimal> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_above_stop_price = std::nullopt

Can be used if pendingAboveType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT.

◆ pending_above_trailing_delta

std::optional<common::Decimal> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_above_trailing_delta = std::nullopt

See Trailing Stop order FAQ.

◆ pending_above_iceberg_qty

std::optional<common::Decimal> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_above_iceberg_qty = std::nullopt

This can only be used if pendingAboveTimeInForce is GTC or pendingAboveType is LIMIT_MAKER.

◆ pending_above_time_in_force

std::optional<OrderListPlaceOpocoPendingAboveTimeInForceEnum> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_above_time_in_force
Initial value:
=
std::nullopt

Required if pendingAboveType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT.

◆ pending_above_strategy_id

std::optional<std::int64_t> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_above_strategy_id = std::nullopt

Arbitrary numeric value identifying the pending above order within an order strategy.

◆ pending_above_strategy_type

std::optional<std::int64_t> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_above_strategy_type = std::nullopt

Arbitrary numeric value identifying the pending above order strategy.

Values smaller than 1000000 are reserved and cannot be used.

◆ pending_above_peg_price_type

std::optional<OrderListPlaceOpocoPendingAbovePegPriceTypeEnum> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_above_peg_price_type
Initial value:
=
std::nullopt

See Pegged Orders.

◆ pending_above_peg_offset_type

std::optional<OrderListPlaceOpocoPendingAbovePegOffsetTypeEnum> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_above_peg_offset_type
Initial value:
=
std::nullopt

See Pegged Orders.

◆ pending_above_peg_offset_value

std::optional<std::int64_t> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_above_peg_offset_value = std::nullopt

Price level for pegging (max: 100). See Pegged Orders.

◆ pending_below_type

std::optional<OrderListPlaceOpocoPendingBelowTypeEnum> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_below_type = std::nullopt

Supported values: STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT.

◆ pending_below_client_order_id

std::optional<std::string> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_below_client_order_id = std::nullopt

Arbitrary unique ID among open orders for the pending below order.

Automatically generated if not sent.

◆ pending_below_price

std::optional<common::Decimal> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_below_price = std::nullopt

Can be used if pendingBelowType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT to specify the limit price.

◆ pending_below_stop_price

std::optional<common::Decimal> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_below_stop_price = std::nullopt

Can be used if pendingBelowType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT.

Either pendingBelowStopPrice or pendingBelowTrailingDelta or both, must be specified.

◆ pending_below_trailing_delta

std::optional<common::Decimal> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_below_trailing_delta = std::nullopt

See Trailing Stop order FAQ.

◆ pending_below_iceberg_qty

std::optional<common::Decimal> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_below_iceberg_qty = std::nullopt

This can only be used if pendingBelowTimeInForce is GTC or pendingBelowType is LIMIT_MAKER.

◆ pending_below_time_in_force

std::optional<OrderListPlaceOpocoPendingBelowTimeInForceEnum> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_below_time_in_force
Initial value:
=
std::nullopt

Supported values: Time In Force.

◆ pending_below_strategy_id

std::optional<std::int64_t> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_below_strategy_id = std::nullopt

Arbitrary numeric value identifying the pending below order within an order strategy.

◆ pending_below_strategy_type

std::optional<std::int64_t> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_below_strategy_type = std::nullopt

Arbitrary numeric value identifying the pending below order strategy.

Values smaller than 1000000 are reserved and cannot be used.

◆ pending_below_peg_price_type

std::optional<OrderListPlaceOpocoPendingBelowPegPriceTypeEnum> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_below_peg_price_type
Initial value:
=
std::nullopt

See Pegged Orders.

◆ pending_below_peg_offset_type

std::optional<OrderListPlaceOpocoPendingBelowPegOffsetTypeEnum> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_below_peg_offset_type
Initial value:
=
std::nullopt

◆ pending_below_peg_offset_value

std::optional<std::int64_t> binance::spot::websocket_api::OrderListPlaceOpocoParams::pending_below_peg_offset_value = std::nullopt

◆ working_quote_notional_limit

std::optional<common::Decimal> binance::spot::websocket_api::OrderListPlaceOpocoParams::working_quote_notional_limit = std::nullopt

Quote notional limit for the working LIMIT order on the BUY side. See Quote Notional Limit.

◆ recv_window

std::optional<common::Decimal> binance::spot::websocket_api::OrderListPlaceOpocoParams::recv_window = std::nullopt

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