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

#include <trade_api.hpp>

Public Attributes

common::Required< std::string > symbol
common::Required< OrderListPlaceOtoWorkingTypeEnum > working_type
 Supported values: LIMIT, LIMIT_MAKER.
common::Required< OrderListPlaceOtoWorkingSideEnum > working_side
 Supported values: Order Side.
common::Required< common::Decimal > working_price
common::Required< common::Decimal > working_quantity
 Sets the quantity for the working order.
common::Required< OrderListPlaceOtoPendingTypeEnum > pending_type
 Supported values: Order Types.
common::Required< OrderListPlaceOtoPendingSideEnum > pending_side
 Supported values: Order Side.
common::Required< common::Decimal > pending_quantity
 Sets the quantity for the pending order.
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< OrderListPlaceOtoNewOrderRespTypeEnum > new_order_resp_type = std::nullopt
 Format of the JSON response. Supported values: Order Response Type.
std::optional< OrderListPlaceOtoSelfTradePreventionModeEnum > 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< OrderListPlaceOtoWorkingTimeInForceEnum > 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< OrderListPlaceOtoWorkingPegPriceTypeEnum > working_peg_price_type = std::nullopt
 See Pegged Orders.
std::optional< OrderListPlaceOtoWorkingPegOffsetTypeEnum > working_peg_offset_type = std::nullopt
std::optional< std::int64_t > working_peg_offset_value = std::nullopt
std::optional< std::string > pending_client_order_id = std::nullopt
 Arbitrary unique ID among open orders for the pending order.
std::optional< common::Decimal > pending_price = std::nullopt
std::optional< common::Decimal > pending_stop_price = std::nullopt
std::optional< common::Decimal > pending_trailing_delta = std::nullopt
std::optional< common::Decimal > pending_iceberg_qty = std::nullopt
 This can only be used if pendingTimeInForce is GTC or if pendingType is LIMIT_MAKER.
std::optional< OrderListPlaceOtoPendingTimeInForceEnum > pending_time_in_force = std::nullopt
 Supported values: Time In Force.
std::optional< std::int64_t > pending_strategy_id = std::nullopt
 Arbitrary numeric value identifying the pending order within an order strategy.
std::optional< std::int64_t > pending_strategy_type = std::nullopt
 Arbitrary numeric value identifying the pending order strategy.
std::optional< OrderListPlaceOtoPendingPegOffsetTypeEnum > pending_peg_offset_type = std::nullopt
std::optional< OrderListPlaceOtoPendingPegPriceTypeEnum > pending_peg_price_type = std::nullopt
 See Pegged Orders.
std::optional< std::int64_t > pending_peg_offset_value = std::nullopt
std::optional< common::Decimal > working_quote_notional_limit = std::nullopt
 Quote notional limit for the working order (only for orders on the BUY side).
std::optional< common::Decimal > pending_quote_notional_limit = std::nullopt
 Quote notional limit for the pending 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::OrderListPlaceOtoParams::symbol

◆ working_type

common::Required<OrderListPlaceOtoWorkingTypeEnum> binance::spot::websocket_api::OrderListPlaceOtoParams::working_type

Supported values: LIMIT, LIMIT_MAKER.

◆ working_side

common::Required<OrderListPlaceOtoWorkingSideEnum> binance::spot::websocket_api::OrderListPlaceOtoParams::working_side

Supported values: Order Side.

◆ working_price

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

◆ working_quantity

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

Sets the quantity for the working order.

◆ pending_type

common::Required<OrderListPlaceOtoPendingTypeEnum> binance::spot::websocket_api::OrderListPlaceOtoParams::pending_type

Supported values: Order Types.

Note that MARKET orders using quoteOrderQty are not supported.

◆ pending_side

common::Required<OrderListPlaceOtoPendingSideEnum> binance::spot::websocket_api::OrderListPlaceOtoParams::pending_side

Supported values: Order Side.

◆ pending_quantity

common::Required<common::Decimal> binance::spot::websocket_api::OrderListPlaceOtoParams::pending_quantity

Sets the quantity for the pending order.

◆ id

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

Client-generated request identifier.

◆ list_client_order_id

std::optional<std::string> binance::spot::websocket_api::OrderListPlaceOtoParams::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 and the pendingClientOrderId.

◆ new_order_resp_type

std::optional<OrderListPlaceOtoNewOrderRespTypeEnum> binance::spot::websocket_api::OrderListPlaceOtoParams::new_order_resp_type = std::nullopt

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

◆ self_trade_prevention_mode

std::optional<OrderListPlaceOtoSelfTradePreventionModeEnum> binance::spot::websocket_api::OrderListPlaceOtoParams::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::OrderListPlaceOtoParams::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::OrderListPlaceOtoParams::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<OrderListPlaceOtoWorkingTimeInForceEnum> binance::spot::websocket_api::OrderListPlaceOtoParams::working_time_in_force = std::nullopt

Supported values: Time In Force.

◆ working_strategy_id

std::optional<std::int64_t> binance::spot::websocket_api::OrderListPlaceOtoParams::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::OrderListPlaceOtoParams::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<OrderListPlaceOtoWorkingPegPriceTypeEnum> binance::spot::websocket_api::OrderListPlaceOtoParams::working_peg_price_type = std::nullopt

See Pegged Orders.

◆ working_peg_offset_type

std::optional<OrderListPlaceOtoWorkingPegOffsetTypeEnum> binance::spot::websocket_api::OrderListPlaceOtoParams::working_peg_offset_type = std::nullopt

◆ working_peg_offset_value

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

◆ pending_client_order_id

std::optional<std::string> binance::spot::websocket_api::OrderListPlaceOtoParams::pending_client_order_id = std::nullopt

Arbitrary unique ID among open orders for the pending order.

Automatically generated if not sent.

◆ pending_price

std::optional<common::Decimal> binance::spot::websocket_api::OrderListPlaceOtoParams::pending_price = std::nullopt

◆ pending_stop_price

std::optional<common::Decimal> binance::spot::websocket_api::OrderListPlaceOtoParams::pending_stop_price = std::nullopt

◆ pending_trailing_delta

std::optional<common::Decimal> binance::spot::websocket_api::OrderListPlaceOtoParams::pending_trailing_delta = std::nullopt

◆ pending_iceberg_qty

std::optional<common::Decimal> binance::spot::websocket_api::OrderListPlaceOtoParams::pending_iceberg_qty = std::nullopt

This can only be used if pendingTimeInForce is GTC or if pendingType is LIMIT_MAKER.

◆ pending_time_in_force

std::optional<OrderListPlaceOtoPendingTimeInForceEnum> binance::spot::websocket_api::OrderListPlaceOtoParams::pending_time_in_force = std::nullopt

Supported values: Time In Force.

◆ pending_strategy_id

std::optional<std::int64_t> binance::spot::websocket_api::OrderListPlaceOtoParams::pending_strategy_id = std::nullopt

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

◆ pending_strategy_type

std::optional<std::int64_t> binance::spot::websocket_api::OrderListPlaceOtoParams::pending_strategy_type = std::nullopt

Arbitrary numeric value identifying the pending order strategy.

Values smaller than 1000000 are reserved and cannot be used.

◆ pending_peg_offset_type

std::optional<OrderListPlaceOtoPendingPegOffsetTypeEnum> binance::spot::websocket_api::OrderListPlaceOtoParams::pending_peg_offset_type = std::nullopt

◆ pending_peg_price_type

std::optional<OrderListPlaceOtoPendingPegPriceTypeEnum> binance::spot::websocket_api::OrderListPlaceOtoParams::pending_peg_price_type = std::nullopt

See Pegged Orders.

◆ pending_peg_offset_value

std::optional<std::int64_t> binance::spot::websocket_api::OrderListPlaceOtoParams::pending_peg_offset_value = std::nullopt

◆ working_quote_notional_limit

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

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

See Quote Notional Limit.

◆ pending_quote_notional_limit

std::optional<common::Decimal> binance::spot::websocket_api::OrderListPlaceOtoParams::pending_quote_notional_limit = std::nullopt

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

See Quote Notional Limit.

◆ recv_window

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

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