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

#include <trade_api.hpp>

Public Attributes

common::Required< std::string > symbol
common::Required< NewMarginOrderSideEnum > side
common::Required< NewMarginOrderTypeEnum > type
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< NewMarginOrderNewOrderRespTypeEnum > new_order_resp_type = std::nullopt
 Set the response JSON. ACK, RESULT, or FULL.
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< NewMarginOrderSideEffectTypeEnum > side_effect_type = std::nullopt
std::optional< NewMarginOrderTimeInForceEnum > time_in_force = std::nullopt
std::optional< NewMarginOrderSelfTradePreventionModeEnum > self_trade_prevention_mode
 NONE: No STP / EXPIRE_TAKER: expire taker order when STP triggers/ EXPIRE_MAKER: expire taker order when STP triggers/ EXPIRE_BOTH: expire both orders when STP triggers
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
 The value cannot be greater than 60000.

Member Data Documentation

◆ symbol

common::Required<std::string> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::symbol

◆ side

common::Required<NewMarginOrderSideEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::side

◆ type

common::Required<NewMarginOrderTypeEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::type

◆ quantity

std::optional<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::quantity = std::nullopt

◆ quote_order_qty

std::optional<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::quote_order_qty = std::nullopt

◆ price

std::optional<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::price = std::nullopt

◆ stop_price

std::optional<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::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::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::new_client_order_id = std::nullopt

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

◆ new_order_resp_type

std::optional<NewMarginOrderNewOrderRespTypeEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::new_order_resp_type = std::nullopt

Set the response JSON. ACK, RESULT, or FULL.

◆ iceberg_qty

std::optional<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::iceberg_qty = std::nullopt

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

◆ side_effect_type

std::optional<NewMarginOrderSideEffectTypeEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::side_effect_type = std::nullopt

◆ time_in_force

std::optional<NewMarginOrderTimeInForceEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::time_in_force = std::nullopt

◆ self_trade_prevention_mode

std::optional<NewMarginOrderSelfTradePreventionModeEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::self_trade_prevention_mode
Initial value:
=
std::nullopt

NONE: No STP / EXPIRE_TAKER: expire taker order when STP triggers/ EXPIRE_MAKER: expire taker order when STP triggers/ EXPIRE_BOTH: expire both orders when STP triggers

◆ auto_repay_at_cancel

std::optional<bool> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::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::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::recv_window = std::nullopt

The value cannot be greater than 60000.