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

#include <trade_api.hpp>

Public Attributes

common::Required< std::string > symbol
common::Required< OrderListOcoSideEnum > side
common::Required< common::Decimal > quantity
 Quantity for both orders of the order list.
common::Required< OrderListOcoAboveTypeEnum > above_type
common::Required< OrderListOcoBelowTypeEnum > below_type
 Supported values: STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT.
std::optional< std::string > list_client_order_id = std::nullopt
 Arbitrary unique ID among open order lists.
std::optional< std::string > above_client_order_id = std::nullopt
 Arbitrary unique ID among open orders for the above order.
std::optional< common::Decimal > above_iceberg_qty = std::nullopt
 Note that this can only be used if aboveTimeInForce is GTC.
std::optional< common::Decimal > above_price = std::nullopt
 Can be used if aboveType is STOP_LOSS_LIMIT, LIMIT_MAKER, or TAKE_PROFIT_LIMIT to specify the limit price.
std::optional< common::Decimal > above_stop_price = std::nullopt
 Can be used if aboveType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT.
std::optional< std::int64_t > above_trailing_delta = std::nullopt
 See Trailing Stop order FAQ.
std::optional< OrderListOcoAboveTimeInForceEnum > above_time_in_force = std::nullopt
 Required if aboveType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT.
std::optional< std::int64_t > above_strategy_id = std::nullopt
 Arbitrary numeric value identifying the above order within an order strategy.
std::optional< std::int64_t > above_strategy_type = std::nullopt
 Arbitrary numeric value identifying the above order strategy.
std::optional< OrderListOcoAbovePegPriceTypeEnum > above_peg_price_type = std::nullopt
 PRIMARY_PEG or MARKET_PEG. See Pegged Orders
std::optional< OrderListOcoAbovePegOffsetTypeEnum > above_peg_offset_type = std::nullopt
std::optional< std::int64_t > above_peg_offset_value = std::nullopt
std::optional< std::string > below_client_order_id = std::nullopt
 Arbitrary unique ID among open orders for the below order.
std::optional< common::Decimal > below_iceberg_qty = std::nullopt
 Note that this can only be used if belowTimeInForce is GTC.
std::optional< common::Decimal > below_price = std::nullopt
 Can be used if belowType is STOP_LOSS_LIMIT, LIMIT_MAKER, or TAKE_PROFIT_LIMIT to specify the limit price.
std::optional< common::Decimal > below_stop_price = std::nullopt
 Can be used if belowType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT.
std::optional< std::int64_t > below_trailing_delta = std::nullopt
 See Trailing Stop order FAQ.
std::optional< OrderListOcoBelowTimeInForceEnum > below_time_in_force = std::nullopt
 Required if belowType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT.
std::optional< std::int64_t > below_strategy_id = std::nullopt
 Arbitrary numeric value identifying the below order within an order strategy.
std::optional< std::int64_t > below_strategy_type = std::nullopt
 Arbitrary numeric value identifying the below order strategy.
std::optional< OrderListOcoBelowPegPriceTypeEnum > below_peg_price_type = std::nullopt
 See Pegged Orders.
std::optional< OrderListOcoBelowPegOffsetTypeEnum > below_peg_offset_type = std::nullopt
std::optional< std::int64_t > below_peg_offset_value = std::nullopt
std::optional< OrderListOcoNewOrderRespTypeEnum > new_order_resp_type = std::nullopt
 Select response format: ACK, RESULT, FULL.
std::optional< OrderListOcoSelfTradePreventionModeEnum > self_trade_prevention_mode
 The allowed enums is dependent on what is configured on the symbol.
std::optional< common::Decimal > above_quote_notional_limit = std::nullopt
 Quote notional limit for the above order (only for orders on the BUY side).
std::optional< common::Decimal > below_quote_notional_limit = std::nullopt
 Quote notional limit for the below order (only for orders on the BUY side).
std::optional< common::Decimal > recv_window = std::nullopt
 The value cannot be greater than 60000.

Member Data Documentation

◆ symbol

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

◆ side

common::Required<OrderListOcoSideEnum> binance::spot::rest_api::OrderListOcoParams::side

◆ quantity

common::Required<common::Decimal> binance::spot::rest_api::OrderListOcoParams::quantity

Quantity for both orders of the order list.

◆ above_type

common::Required<OrderListOcoAboveTypeEnum> binance::spot::rest_api::OrderListOcoParams::above_type

◆ below_type

common::Required<OrderListOcoBelowTypeEnum> binance::spot::rest_api::OrderListOcoParams::below_type

Supported values: STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT.

◆ list_client_order_id

std::optional<std::string> binance::spot::rest_api::OrderListOcoParams::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 aboveClientOrderId and the belowClientOrderId.

◆ above_client_order_id

std::optional<std::string> binance::spot::rest_api::OrderListOcoParams::above_client_order_id = std::nullopt

Arbitrary unique ID among open orders for the above order.

Automatically generated if not sent.

◆ above_iceberg_qty

std::optional<common::Decimal> binance::spot::rest_api::OrderListOcoParams::above_iceberg_qty = std::nullopt

Note that this can only be used if aboveTimeInForce is GTC.

◆ above_price

std::optional<common::Decimal> binance::spot::rest_api::OrderListOcoParams::above_price = std::nullopt

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

◆ above_stop_price

std::optional<common::Decimal> binance::spot::rest_api::OrderListOcoParams::above_stop_price = std::nullopt

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

Either aboveStopPrice or aboveTrailingDelta or both, must be specified.

◆ above_trailing_delta

std::optional<std::int64_t> binance::spot::rest_api::OrderListOcoParams::above_trailing_delta = std::nullopt

See Trailing Stop order FAQ.

◆ above_time_in_force

std::optional<OrderListOcoAboveTimeInForceEnum> binance::spot::rest_api::OrderListOcoParams::above_time_in_force = std::nullopt

Required if aboveType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT.

◆ above_strategy_id

std::optional<std::int64_t> binance::spot::rest_api::OrderListOcoParams::above_strategy_id = std::nullopt

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

◆ above_strategy_type

std::optional<std::int64_t> binance::spot::rest_api::OrderListOcoParams::above_strategy_type = std::nullopt

Arbitrary numeric value identifying the above order strategy.

Values smaller than 1000000 are reserved and cannot be used.

◆ above_peg_price_type

std::optional<OrderListOcoAbovePegPriceTypeEnum> binance::spot::rest_api::OrderListOcoParams::above_peg_price_type = std::nullopt

PRIMARY_PEG or MARKET_PEG. See Pegged Orders

◆ above_peg_offset_type

std::optional<OrderListOcoAbovePegOffsetTypeEnum> binance::spot::rest_api::OrderListOcoParams::above_peg_offset_type = std::nullopt

◆ above_peg_offset_value

std::optional<std::int64_t> binance::spot::rest_api::OrderListOcoParams::above_peg_offset_value = std::nullopt

◆ below_client_order_id

std::optional<std::string> binance::spot::rest_api::OrderListOcoParams::below_client_order_id = std::nullopt

Arbitrary unique ID among open orders for the below order.

Automatically generated if not sent.

◆ below_iceberg_qty

std::optional<common::Decimal> binance::spot::rest_api::OrderListOcoParams::below_iceberg_qty = std::nullopt

Note that this can only be used if belowTimeInForce is GTC.

◆ below_price

std::optional<common::Decimal> binance::spot::rest_api::OrderListOcoParams::below_price = std::nullopt

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

◆ below_stop_price

std::optional<common::Decimal> binance::spot::rest_api::OrderListOcoParams::below_stop_price = std::nullopt

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

Either belowStopPrice or belowTrailingDelta or both, must be specified.

◆ below_trailing_delta

std::optional<std::int64_t> binance::spot::rest_api::OrderListOcoParams::below_trailing_delta = std::nullopt

See Trailing Stop order FAQ.

◆ below_time_in_force

std::optional<OrderListOcoBelowTimeInForceEnum> binance::spot::rest_api::OrderListOcoParams::below_time_in_force = std::nullopt

Required if belowType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT.

◆ below_strategy_id

std::optional<std::int64_t> binance::spot::rest_api::OrderListOcoParams::below_strategy_id = std::nullopt

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

◆ below_strategy_type

std::optional<std::int64_t> binance::spot::rest_api::OrderListOcoParams::below_strategy_type = std::nullopt

Arbitrary numeric value identifying the below order strategy.

Values smaller than 1000000 are reserved and cannot be used.

◆ below_peg_price_type

std::optional<OrderListOcoBelowPegPriceTypeEnum> binance::spot::rest_api::OrderListOcoParams::below_peg_price_type = std::nullopt

See Pegged Orders.

◆ below_peg_offset_type

std::optional<OrderListOcoBelowPegOffsetTypeEnum> binance::spot::rest_api::OrderListOcoParams::below_peg_offset_type = std::nullopt

◆ below_peg_offset_value

std::optional<std::int64_t> binance::spot::rest_api::OrderListOcoParams::below_peg_offset_value = std::nullopt

◆ new_order_resp_type

std::optional<OrderListOcoNewOrderRespTypeEnum> binance::spot::rest_api::OrderListOcoParams::new_order_resp_type = std::nullopt

Select response format: ACK, RESULT, FULL.

◆ self_trade_prevention_mode

std::optional<OrderListOcoSelfTradePreventionModeEnum> binance::spot::rest_api::OrderListOcoParams::self_trade_prevention_mode
Initial value:
=
std::nullopt

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

Supported values: STP Modes

◆ above_quote_notional_limit

std::optional<common::Decimal> binance::spot::rest_api::OrderListOcoParams::above_quote_notional_limit = std::nullopt

Quote notional limit for the above order (only for orders on the BUY side).

See Quote Notional Limit.

◆ below_quote_notional_limit

std::optional<common::Decimal> binance::spot::rest_api::OrderListOcoParams::below_quote_notional_limit = std::nullopt

Quote notional limit for the below order (only for orders on the BUY side).

See Quote Notional Limit.

◆ recv_window

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

The value cannot be greater than 60000.

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