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

#include <trade_api.hpp>

Public Attributes

common::Required< std::string > symbol
common::Required< OrderListPlaceOcoSideEnum > side
 BUY or SELL
common::Required< common::Decimal > quantity
 Quantity for both orders of the order list.
common::Required< OrderListPlaceOcoAboveTypeEnum > above_type
common::Required< OrderListPlaceOcoBelowTypeEnum > below_type
 Supported values: STOP_LOSS, STOP_LOSS_LIMIT, 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< 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< OrderListPlaceOcoAboveTimeInForceEnum > 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< OrderListPlaceOcoAbovePegPriceTypeEnum > above_peg_price_type = std::nullopt
 PRIMARY_PEG or MARKET_PEG. See Pegged Orders
std::optional< OrderListPlaceOcoAbovePegOffsetTypeEnum > 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< OrderListPlaceOcoBelowTimeInForceEnum > 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< OrderListPlaceOcoBelowPegPriceTypeEnum > below_peg_price_type = std::nullopt
 See Pegged Orders.
std::optional< OrderListPlaceOcoBelowPegOffsetTypeEnum > below_peg_offset_type = std::nullopt
std::optional< std::int64_t > below_peg_offset_value = std::nullopt
std::optional< OrderListPlaceOcoNewOrderRespTypeEnum > new_order_resp_type = std::nullopt
 Select response format: ACK, RESULT, FULL.
std::optional< OrderListPlaceOcoSelfTradePreventionModeEnum > 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
 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::OrderListPlaceOcoParams::symbol

◆ side

common::Required<OrderListPlaceOcoSideEnum> binance::spot::websocket_api::OrderListPlaceOcoParams::side

BUY or SELL

◆ quantity

common::Required<common::Decimal> binance::spot::websocket_api::OrderListPlaceOcoParams::quantity

Quantity for both orders of the order list.

◆ above_type

common::Required<OrderListPlaceOcoAboveTypeEnum> binance::spot::websocket_api::OrderListPlaceOcoParams::above_type

◆ below_type

common::Required<OrderListPlaceOcoBelowTypeEnum> binance::spot::websocket_api::OrderListPlaceOcoParams::below_type

Supported values: STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT.

◆ id

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

Client-generated request identifier.

◆ list_client_order_id

std::optional<std::string> binance::spot::websocket_api::OrderListPlaceOcoParams::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::websocket_api::OrderListPlaceOcoParams::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::websocket_api::OrderListPlaceOcoParams::above_iceberg_qty = std::nullopt

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

◆ above_price

std::optional<common::Decimal> binance::spot::websocket_api::OrderListPlaceOcoParams::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::websocket_api::OrderListPlaceOcoParams::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::websocket_api::OrderListPlaceOcoParams::above_trailing_delta = std::nullopt

See Trailing Stop order FAQ.

◆ above_time_in_force

std::optional<OrderListPlaceOcoAboveTimeInForceEnum> binance::spot::websocket_api::OrderListPlaceOcoParams::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::websocket_api::OrderListPlaceOcoParams::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::websocket_api::OrderListPlaceOcoParams::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<OrderListPlaceOcoAbovePegPriceTypeEnum> binance::spot::websocket_api::OrderListPlaceOcoParams::above_peg_price_type = std::nullopt

PRIMARY_PEG or MARKET_PEG. See Pegged Orders

◆ above_peg_offset_type

std::optional<OrderListPlaceOcoAbovePegOffsetTypeEnum> binance::spot::websocket_api::OrderListPlaceOcoParams::above_peg_offset_type = std::nullopt

◆ above_peg_offset_value

std::optional<std::int64_t> binance::spot::websocket_api::OrderListPlaceOcoParams::above_peg_offset_value = std::nullopt

◆ below_client_order_id

std::optional<std::string> binance::spot::websocket_api::OrderListPlaceOcoParams::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::websocket_api::OrderListPlaceOcoParams::below_iceberg_qty = std::nullopt

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

◆ below_price

std::optional<common::Decimal> binance::spot::websocket_api::OrderListPlaceOcoParams::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::websocket_api::OrderListPlaceOcoParams::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::websocket_api::OrderListPlaceOcoParams::below_trailing_delta = std::nullopt

See Trailing Stop order FAQ.

◆ below_time_in_force

std::optional<OrderListPlaceOcoBelowTimeInForceEnum> binance::spot::websocket_api::OrderListPlaceOcoParams::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::websocket_api::OrderListPlaceOcoParams::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::websocket_api::OrderListPlaceOcoParams::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<OrderListPlaceOcoBelowPegPriceTypeEnum> binance::spot::websocket_api::OrderListPlaceOcoParams::below_peg_price_type = std::nullopt

See Pegged Orders.

◆ below_peg_offset_type

std::optional<OrderListPlaceOcoBelowPegOffsetTypeEnum> binance::spot::websocket_api::OrderListPlaceOcoParams::below_peg_offset_type = std::nullopt

◆ below_peg_offset_value

std::optional<std::int64_t> binance::spot::websocket_api::OrderListPlaceOcoParams::below_peg_offset_value = std::nullopt

◆ new_order_resp_type

std::optional<OrderListPlaceOcoNewOrderRespTypeEnum> binance::spot::websocket_api::OrderListPlaceOcoParams::new_order_resp_type = std::nullopt

Select response format: ACK, RESULT, FULL.

◆ self_trade_prevention_mode

std::optional<OrderListPlaceOcoSelfTradePreventionModeEnum> binance::spot::websocket_api::OrderListPlaceOcoParams::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::websocket_api::OrderListPlaceOcoParams::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::websocket_api::OrderListPlaceOcoParams::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::websocket_api::OrderListPlaceOcoParams::recv_window = std::nullopt

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