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

#include <trade_api.hpp>

Public Attributes

common::Required< std::string > symbol
common::Required< MarginAccountNewOtocoWorkingTypeEnum > working_type
common::Required< MarginAccountNewOtocoWorkingSideEnum > working_side
common::Required< common::Decimal > working_price
common::Required< common::Decimal > working_quantity
common::Required< MarginAccountNewOtocoPendingSideEnum > pending_side
common::Required< common::Decimal > pending_quantity
common::Required< MarginAccountNewOtocoPendingAboveTypeEnum > pending_above_type
std::optional< MarginAccountNewOtocoIsIsolatedEnum > is_isolated = std::nullopt
std::optional< MarginAccountNewOtocoSideEffectTypeEnum > side_effect_type = std::nullopt
std::optional< bool > auto_repay_at_cancel = std::nullopt
 Only when MARGIN_BUY order takes effect, true means that the debt generated by the order needs to be repaid after the order is cancelled.
std::optional< std::string > list_client_order_id = std::nullopt
 Arbitrary unique ID among open order lists.
std::optional< MarginAccountNewOtocoNewOrderRespTypeEnum > new_order_resp_type = std::nullopt
std::optional< MarginAccountNewOtocoSelfTradePreventionModeEnum > self_trade_prevention_mode
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.
std::optional< MarginAccountNewOtocoWorkingTimeInForceEnum > working_time_in_force = std::nullopt
std::optional< std::string > pending_above_client_order_id = std::nullopt
 Arbitrary unique ID among open orders for the pending above order.
std::optional< common::Decimal > pending_above_price = std::nullopt
std::optional< common::Decimal > pending_above_stop_price = std::nullopt
std::optional< common::Decimal > pending_above_trailing_delta = std::nullopt
std::optional< common::Decimal > pending_above_iceberg_qty = std::nullopt
 This can only be used if pendingAboveTimeInForce is GTC.
std::optional< MarginAccountNewOtocoPendingAboveTimeInForceEnum > pending_above_time_in_force
std::optional< MarginAccountNewOtocoPendingBelowTypeEnum > pending_below_type = std::nullopt
std::optional< std::string > pending_below_client_order_id = std::nullopt
 Arbitrary unique ID among open orders for the pending below order.
std::optional< common::Decimal > pending_below_price = std::nullopt
std::optional< common::Decimal > pending_below_stop_price = std::nullopt
std::optional< common::Decimal > pending_below_trailing_delta = std::nullopt
std::optional< common::Decimal > pending_below_iceberg_qty = std::nullopt
 This can only be used if pendingBelowTimeInForce is GTC.
std::optional< MarginAccountNewOtocoPendingBelowTimeInForceEnum > pending_below_time_in_force

Member Data Documentation

◆ symbol

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

◆ working_type

common::Required<MarginAccountNewOtocoWorkingTypeEnum> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::working_type

◆ working_side

common::Required<MarginAccountNewOtocoWorkingSideEnum> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::working_side

◆ working_price

common::Required<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::working_price

◆ working_quantity

common::Required<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::working_quantity

◆ pending_side

common::Required<MarginAccountNewOtocoPendingSideEnum> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::pending_side

◆ pending_quantity

common::Required<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::pending_quantity

◆ pending_above_type

common::Required<MarginAccountNewOtocoPendingAboveTypeEnum> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::pending_above_type

◆ is_isolated

std::optional<MarginAccountNewOtocoIsIsolatedEnum> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::is_isolated = std::nullopt

◆ side_effect_type

std::optional<MarginAccountNewOtocoSideEffectTypeEnum> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::side_effect_type = std::nullopt

◆ auto_repay_at_cancel

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

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

◆ list_client_order_id

std::optional<std::string> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::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, pendingAboveClientOrderId, and the pendingBelowClientOrderId.

◆ new_order_resp_type

std::optional<MarginAccountNewOtocoNewOrderRespTypeEnum> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::new_order_resp_type = std::nullopt

◆ self_trade_prevention_mode

std::optional<MarginAccountNewOtocoSelfTradePreventionModeEnum> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::self_trade_prevention_mode
Initial value:
=
std::nullopt

◆ working_client_order_id

std::optional<std::string> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::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::margin_trading::rest_api::MarginAccountNewOtocoParams::working_iceberg_qty = std::nullopt

This can only be used if workingTimeInForce is GTC.

◆ working_time_in_force

std::optional<MarginAccountNewOtocoWorkingTimeInForceEnum> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::working_time_in_force = std::nullopt

◆ pending_above_client_order_id

std::optional<std::string> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::pending_above_client_order_id = std::nullopt

Arbitrary unique ID among open orders for the pending above order.

Automatically generated if not sent.

◆ pending_above_price

std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::pending_above_price = std::nullopt

◆ pending_above_stop_price

std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::pending_above_stop_price = std::nullopt

◆ pending_above_trailing_delta

std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::pending_above_trailing_delta = std::nullopt

◆ pending_above_iceberg_qty

std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::pending_above_iceberg_qty = std::nullopt

This can only be used if pendingAboveTimeInForce is GTC.

◆ pending_above_time_in_force

std::optional<MarginAccountNewOtocoPendingAboveTimeInForceEnum> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::pending_above_time_in_force
Initial value:
=
std::nullopt

◆ pending_below_type

std::optional<MarginAccountNewOtocoPendingBelowTypeEnum> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::pending_below_type = std::nullopt

◆ pending_below_client_order_id

std::optional<std::string> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::pending_below_client_order_id = std::nullopt

Arbitrary unique ID among open orders for the pending below order.

Automatically generated if not sent.

◆ pending_below_price

std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::pending_below_price = std::nullopt

◆ pending_below_stop_price

std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::pending_below_stop_price = std::nullopt

◆ pending_below_trailing_delta

std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::pending_below_trailing_delta = std::nullopt

◆ pending_below_iceberg_qty

std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::pending_below_iceberg_qty = std::nullopt

This can only be used if pendingBelowTimeInForce is GTC.

◆ pending_below_time_in_force

std::optional<MarginAccountNewOtocoPendingBelowTimeInForceEnum> binance::margin_trading::rest_api::MarginAccountNewOtocoParams::pending_below_time_in_force
Initial value:
=
std::nullopt