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

#include <trade_api.hpp>

Public Attributes

common::Required< std::string > symbol
common::Required< OrderOcoSideEnum > side
common::Required< common::Decimal > quantity
common::Required< common::Decimal > price
common::Required< common::Decimal > stop_price
std::optional< std::string > list_client_order_id = std::nullopt
 A unique Id for the entire orderList.
std::optional< std::string > limit_client_order_id = std::nullopt
 A unique Id for the limit order.
std::optional< std::int64_t > limit_strategy_id = std::nullopt
std::optional< std::int64_t > limit_strategy_type = std::nullopt
 The value cannot be less than 1000000.
std::optional< common::Decimal > limit_iceberg_qty = std::nullopt
 Used to make the LIMIT_MAKER leg an iceberg order.
std::optional< std::int64_t > trailing_delta = std::nullopt
std::optional< std::string > stop_client_order_id = std::nullopt
 A unique Id for the stop loss/stop loss limit leg.
std::optional< std::int64_t > stop_strategy_id = std::nullopt
std::optional< std::int64_t > stop_strategy_type = std::nullopt
 The value cannot be less than 1000000.
std::optional< common::Decimal > stop_limit_price = std::nullopt
 If provided, stopLimitTimeInForce is required.
std::optional< common::Decimal > stop_iceberg_qty = std::nullopt
 Used with STOP_LOSS_LIMIT leg to make an iceberg order.
std::optional< OrderOcoStopLimitTimeInForceEnum > stop_limit_time_in_force = std::nullopt
 Valid values are GTC/FOK/IOC.
std::optional< OrderOcoNewOrderRespTypeEnum > new_order_resp_type = std::nullopt
 Format of the JSON response. Supported values: Order Response Type.
std::optional< OrderOcoSelfTradePreventionModeEnum > self_trade_prevention_mode = std::nullopt
 The allowed values are dependent on what is configured on the symbol.
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::OrderOcoParams::symbol

◆ side

common::Required<OrderOcoSideEnum> binance::spot::rest_api::OrderOcoParams::side

◆ quantity

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

◆ price

common::Required<common::Decimal> binance::spot::rest_api::OrderOcoParams::price

◆ stop_price

common::Required<common::Decimal> binance::spot::rest_api::OrderOcoParams::stop_price

◆ list_client_order_id

std::optional<std::string> binance::spot::rest_api::OrderOcoParams::list_client_order_id = std::nullopt

A unique Id for the entire orderList.

◆ limit_client_order_id

std::optional<std::string> binance::spot::rest_api::OrderOcoParams::limit_client_order_id = std::nullopt

A unique Id for the limit order.

◆ limit_strategy_id

std::optional<std::int64_t> binance::spot::rest_api::OrderOcoParams::limit_strategy_id = std::nullopt

◆ limit_strategy_type

std::optional<std::int64_t> binance::spot::rest_api::OrderOcoParams::limit_strategy_type = std::nullopt

The value cannot be less than 1000000.

◆ limit_iceberg_qty

std::optional<common::Decimal> binance::spot::rest_api::OrderOcoParams::limit_iceberg_qty = std::nullopt

Used to make the LIMIT_MAKER leg an iceberg order.

◆ trailing_delta

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

◆ stop_client_order_id

std::optional<std::string> binance::spot::rest_api::OrderOcoParams::stop_client_order_id = std::nullopt

A unique Id for the stop loss/stop loss limit leg.

◆ stop_strategy_id

std::optional<std::int64_t> binance::spot::rest_api::OrderOcoParams::stop_strategy_id = std::nullopt

◆ stop_strategy_type

std::optional<std::int64_t> binance::spot::rest_api::OrderOcoParams::stop_strategy_type = std::nullopt

The value cannot be less than 1000000.

◆ stop_limit_price

std::optional<common::Decimal> binance::spot::rest_api::OrderOcoParams::stop_limit_price = std::nullopt

If provided, stopLimitTimeInForce is required.

◆ stop_iceberg_qty

std::optional<common::Decimal> binance::spot::rest_api::OrderOcoParams::stop_iceberg_qty = std::nullopt

Used with STOP_LOSS_LIMIT leg to make an iceberg order.

◆ stop_limit_time_in_force

std::optional<OrderOcoStopLimitTimeInForceEnum> binance::spot::rest_api::OrderOcoParams::stop_limit_time_in_force = std::nullopt

Valid values are GTC/FOK/IOC.

◆ new_order_resp_type

std::optional<OrderOcoNewOrderRespTypeEnum> binance::spot::rest_api::OrderOcoParams::new_order_resp_type = std::nullopt

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

◆ self_trade_prevention_mode

std::optional<OrderOcoSelfTradePreventionModeEnum> binance::spot::rest_api::OrderOcoParams::self_trade_prevention_mode = std::nullopt

The allowed values are dependent on what is configured on the symbol.

Supported values: STP Modes

◆ recv_window

std::optional<common::Decimal> binance::spot::rest_api::OrderOcoParams::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.