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

#include <trade_api.hpp>

Public Attributes

common::Required< std::string > symbol
common::Required< MarginAccountNewOtoWorkingTypeEnum > working_type
common::Required< MarginAccountNewOtoWorkingSideEnum > working_side
common::Required< common::Decimal > working_price
common::Required< common::Decimal > working_quantity
 Sets the quantity for the working order.
common::Required< common::Decimal > working_iceberg_qty
 This can only be used if workingTimeInForce is GTC.
common::Required< MarginAccountNewOtoPendingTypeEnum > pending_type
common::Required< MarginAccountNewOtoPendingSideEnum > pending_side
common::Required< common::Decimal > pending_quantity
 Sets the quantity for the pending order.
std::optional< MarginAccountNewOtoIsIsolatedEnum > is_isolated = std::nullopt
std::optional< std::string > list_client_order_id = std::nullopt
 Arbitrary unique ID among open order lists.
std::optional< MarginAccountNewOtoNewOrderRespTypeEnum > new_order_resp_type = std::nullopt
 MARKET and LIMIT order types default to FULL, all other orders default to ACK.
std::optional< MarginAccountNewOtoSideEffectTypeEnum > side_effect_type = std::nullopt
std::optional< MarginAccountNewOtoSelfTradePreventionModeEnum > self_trade_prevention_mode
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 > working_client_order_id = std::nullopt
 Arbitrary unique ID among open orders for the working order.
std::optional< MarginAccountNewOtoWorkingTimeInForceEnum > working_time_in_force = 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.
std::optional< MarginAccountNewOtoPendingTimeInForceEnum > pending_time_in_force = std::nullopt

Member Data Documentation

◆ symbol

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

◆ working_type

common::Required<MarginAccountNewOtoWorkingTypeEnum> binance::margin_trading::rest_api::MarginAccountNewOtoParams::working_type

◆ working_side

common::Required<MarginAccountNewOtoWorkingSideEnum> binance::margin_trading::rest_api::MarginAccountNewOtoParams::working_side

◆ working_price

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

◆ working_quantity

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

Sets the quantity for the working order.

◆ working_iceberg_qty

common::Required<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtoParams::working_iceberg_qty

This can only be used if workingTimeInForce is GTC.

◆ pending_type

common::Required<MarginAccountNewOtoPendingTypeEnum> binance::margin_trading::rest_api::MarginAccountNewOtoParams::pending_type

◆ pending_side

common::Required<MarginAccountNewOtoPendingSideEnum> binance::margin_trading::rest_api::MarginAccountNewOtoParams::pending_side

◆ pending_quantity

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

Sets the quantity for the pending order.

◆ is_isolated

std::optional<MarginAccountNewOtoIsIsolatedEnum> binance::margin_trading::rest_api::MarginAccountNewOtoParams::is_isolated = std::nullopt

◆ list_client_order_id

std::optional<std::string> binance::margin_trading::rest_api::MarginAccountNewOtoParams::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<MarginAccountNewOtoNewOrderRespTypeEnum> binance::margin_trading::rest_api::MarginAccountNewOtoParams::new_order_resp_type = std::nullopt

MARKET and LIMIT order types default to FULL, all other orders default to ACK.

◆ side_effect_type

std::optional<MarginAccountNewOtoSideEffectTypeEnum> binance::margin_trading::rest_api::MarginAccountNewOtoParams::side_effect_type = std::nullopt

◆ self_trade_prevention_mode

std::optional<MarginAccountNewOtoSelfTradePreventionModeEnum> binance::margin_trading::rest_api::MarginAccountNewOtoParams::self_trade_prevention_mode
Initial value:
=
std::nullopt

◆ auto_repay_at_cancel

std::optional<bool> binance::margin_trading::rest_api::MarginAccountNewOtoParams::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.

◆ working_client_order_id

std::optional<std::string> binance::margin_trading::rest_api::MarginAccountNewOtoParams::working_client_order_id = std::nullopt

Arbitrary unique ID among open orders for the working order.

Automatically generated if not sent.

◆ working_time_in_force

std::optional<MarginAccountNewOtoWorkingTimeInForceEnum> binance::margin_trading::rest_api::MarginAccountNewOtoParams::working_time_in_force = std::nullopt

◆ pending_client_order_id

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

◆ pending_stop_price

std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtoParams::pending_stop_price = std::nullopt

◆ pending_trailing_delta

std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtoParams::pending_trailing_delta = std::nullopt

◆ pending_iceberg_qty

std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtoParams::pending_iceberg_qty = std::nullopt

This can only be used if pendingTimeInForce is GTC.

◆ pending_time_in_force

std::optional<MarginAccountNewOtoPendingTimeInForceEnum> binance::margin_trading::rest_api::MarginAccountNewOtoParams::pending_time_in_force = std::nullopt