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

#include <trade_api.hpp>

Public Attributes

common::Required< std::string > symbol
common::Required< MarginAccountNewOrderSideEnum > side
common::Required< MarginAccountNewOrderTypeEnum > type
std::optional< MarginAccountNewOrderIsIsolatedEnum > is_isolated = std::nullopt
std::optional< common::Decimal > quantity = std::nullopt
std::optional< common::Decimal > quote_order_qty = std::nullopt
std::optional< common::Decimal > price = std::nullopt
std::optional< common::Decimal > stop_price = std::nullopt
 Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.
std::optional< std::string > new_client_order_id = std::nullopt
 A unique id among open orders. Automatically generated if not sent.
std::optional< common::Decimal > iceberg_qty = std::nullopt
 Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order.
std::optional< MarginAccountNewOrderNewOrderRespTypeEnum > new_order_resp_type = std::nullopt
 MARKET and LIMIT order types default to FULL, all other orders default to ACK.
std::optional< MarginAccountNewOrderSideEffectTypeEnum > side_effect_type = std::nullopt
std::optional< MarginAccountNewOrderTimeInForceEnum > time_in_force = std::nullopt
std::optional< MarginAccountNewOrderSelfTradePreventionModeEnum > self_trade_prevention_mode
std::optional< std::int64_t > trailing_delta = std::nullopt
 Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.
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 repaid 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::MarginAccountNewOrderParams::symbol

◆ side

common::Required<MarginAccountNewOrderSideEnum> binance::margin_trading::rest_api::MarginAccountNewOrderParams::side

◆ type

common::Required<MarginAccountNewOrderTypeEnum> binance::margin_trading::rest_api::MarginAccountNewOrderParams::type

◆ is_isolated

std::optional<MarginAccountNewOrderIsIsolatedEnum> binance::margin_trading::rest_api::MarginAccountNewOrderParams::is_isolated = std::nullopt

◆ quantity

std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOrderParams::quantity = std::nullopt

◆ quote_order_qty

std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOrderParams::quote_order_qty = std::nullopt

◆ price

std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOrderParams::price = std::nullopt

◆ stop_price

std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOrderParams::stop_price = std::nullopt

Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.

◆ new_client_order_id

std::optional<std::string> binance::margin_trading::rest_api::MarginAccountNewOrderParams::new_client_order_id = std::nullopt

A unique id among open orders. Automatically generated if not sent.

◆ iceberg_qty

std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOrderParams::iceberg_qty = std::nullopt

Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order.

◆ new_order_resp_type

std::optional<MarginAccountNewOrderNewOrderRespTypeEnum> binance::margin_trading::rest_api::MarginAccountNewOrderParams::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<MarginAccountNewOrderSideEffectTypeEnum> binance::margin_trading::rest_api::MarginAccountNewOrderParams::side_effect_type = std::nullopt

◆ time_in_force

std::optional<MarginAccountNewOrderTimeInForceEnum> binance::margin_trading::rest_api::MarginAccountNewOrderParams::time_in_force = std::nullopt

◆ self_trade_prevention_mode

std::optional<MarginAccountNewOrderSelfTradePreventionModeEnum> binance::margin_trading::rest_api::MarginAccountNewOrderParams::self_trade_prevention_mode
Initial value:
=
std::nullopt

◆ trailing_delta

std::optional<std::int64_t> binance::margin_trading::rest_api::MarginAccountNewOrderParams::trailing_delta = std::nullopt

Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.

◆ auto_repay_at_cancel

std::optional<bool> binance::margin_trading::rest_api::MarginAccountNewOrderParams::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 repaid after the order is cancelled.

◆ recv_window

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