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

#include <trade_api.hpp>

Public Attributes

common::Required< std::string > symbol
common::Required< MarginAccountNewOcoSideEnum > side
common::Required< common::Decimal > quantity
common::Required< common::Decimal > price
common::Required< common::Decimal > stop_price
std::optional< MarginAccountNewOcoIsIsolatedEnum > is_isolated = std::nullopt
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< common::Decimal > limit_iceberg_qty = 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< common::Decimal > stop_limit_price = std::nullopt
 If provided, stopLimitTimeInForce is required.
std::optional< common::Decimal > stop_iceberg_qty = std::nullopt
std::optional< MarginAccountNewOcoStopLimitTimeInForceEnum > stop_limit_time_in_force
std::optional< MarginAccountNewOcoNewOrderRespTypeEnum > new_order_resp_type = std::nullopt
std::optional< MarginAccountNewOcoSideEffectTypeEnum > side_effect_type = std::nullopt
std::optional< MarginAccountNewOcoSelfTradePreventionModeEnum > self_trade_prevention_mode
std::optional< bool > auto_repay_at_cancel = std::nullopt
 Only when MARGIN_BUY or AUTO_BORROW_REPAY order takes effect, true means that the debt generated by the order needs to be repay after the order is cancelled.
std::optional< std::int64_t > recv_window = std::nullopt

Member Data Documentation

◆ symbol

common::Required<std::string> binance::margin_trading::rest_api::MarginAccountNewOcoParams::symbol

◆ side

common::Required<MarginAccountNewOcoSideEnum> binance::margin_trading::rest_api::MarginAccountNewOcoParams::side

◆ quantity

common::Required<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOcoParams::quantity

◆ price

common::Required<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOcoParams::price

◆ stop_price

common::Required<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOcoParams::stop_price

◆ is_isolated

std::optional<MarginAccountNewOcoIsIsolatedEnum> binance::margin_trading::rest_api::MarginAccountNewOcoParams::is_isolated = std::nullopt

◆ list_client_order_id

std::optional<std::string> binance::margin_trading::rest_api::MarginAccountNewOcoParams::list_client_order_id = std::nullopt

A unique Id for the entire orderList.

◆ limit_client_order_id

std::optional<std::string> binance::margin_trading::rest_api::MarginAccountNewOcoParams::limit_client_order_id = std::nullopt

A unique Id for the limit order.

◆ limit_iceberg_qty

std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOcoParams::limit_iceberg_qty = std::nullopt

◆ stop_client_order_id

std::optional<std::string> binance::margin_trading::rest_api::MarginAccountNewOcoParams::stop_client_order_id = std::nullopt

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

◆ stop_limit_price

std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOcoParams::stop_limit_price = std::nullopt

If provided, stopLimitTimeInForce is required.

◆ stop_iceberg_qty

std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOcoParams::stop_iceberg_qty = std::nullopt

◆ stop_limit_time_in_force

std::optional<MarginAccountNewOcoStopLimitTimeInForceEnum> binance::margin_trading::rest_api::MarginAccountNewOcoParams::stop_limit_time_in_force
Initial value:
=
std::nullopt

◆ new_order_resp_type

std::optional<MarginAccountNewOcoNewOrderRespTypeEnum> binance::margin_trading::rest_api::MarginAccountNewOcoParams::new_order_resp_type = std::nullopt

◆ side_effect_type

std::optional<MarginAccountNewOcoSideEffectTypeEnum> binance::margin_trading::rest_api::MarginAccountNewOcoParams::side_effect_type = std::nullopt

◆ self_trade_prevention_mode

std::optional<MarginAccountNewOcoSelfTradePreventionModeEnum> binance::margin_trading::rest_api::MarginAccountNewOcoParams::self_trade_prevention_mode
Initial value:
=
std::nullopt

◆ auto_repay_at_cancel

std::optional<bool> binance::margin_trading::rest_api::MarginAccountNewOcoParams::auto_repay_at_cancel = std::nullopt

Only when MARGIN_BUY or AUTO_BORROW_REPAY order takes effect, true means that the debt generated by the order needs to be repay after the order is cancelled.

◆ recv_window

std::optional<std::int64_t> binance::margin_trading::rest_api::MarginAccountNewOcoParams::recv_window = std::nullopt