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

#include <trade_api.hpp>

Public Attributes

common::Required< NewUmAlgoOrderAlgoTypeEnum > algo_type
 Only support CONDITIONAL.
common::Required< std::string > symbol
common::Required< NewUmAlgoOrderSideEnum > side
common::Required< NewUmAlgoOrderTypeEnum > type
 Conditional order type.
std::optional< NewUmAlgoOrderPositionSideEnum > position_side = std::nullopt
 Default BOTH for One-way Mode; LONG or SHORT for Hedge Mode.
std::optional< NewUmAlgoOrderTimeInForceEnum > time_in_force = std::nullopt
std::optional< common::Decimal > quantity = std::nullopt
 Order quantity. Cannot be sent with closePosition=true(Close-All).
std::optional< common::Decimal > price = std::nullopt
 Order price.
std::optional< common::Decimal > trigger_price = std::nullopt
 Trigger price.
std::optional< NewUmAlgoOrderWorkingTypeEnum > working_type = std::nullopt
 Trigger price type. Default CONTRACT_PRICE.
std::optional< NewUmAlgoOrderPriceMatchEnum > price_match = std::nullopt
 Can't be passed together with price.
std::optional< NewUmAlgoOrderClosePositionEnum > close_position = std::nullopt
 Close-All, used with STOP_MARKET or TAKE_PROFIT_MARKET.
std::optional< NewUmAlgoOrderPriceProtectEnum > price_protect = std::nullopt
 Price protection. Default false.
std::optional< NewUmAlgoOrderReduceOnlyEnum > reduce_only = std::nullopt
 Cannot be sent in Hedge Mode; cannot be sent with closePosition=true.
std::optional< common::Decimal > activate_price = std::nullopt
 Used with TRAILING_STOP_MARKET, default as latest price.
std::optional< common::Decimal > callback_rate = std::nullopt
 Used with TRAILING_STOP_MARKET, min 0.1, max 20 (1 = 1%).
std::optional< std::string > client_algo_id = std::nullopt
 Unique id among open orders. Auto-generated if not sent.
std::optional< NewUmAlgoOrderNewOrderRespTypeEnum > new_order_resp_type = std::nullopt
std::optional< NewUmAlgoOrderSelfTradePreventionModeEnum > self_trade_prevention_mode
std::optional< std::int64_t > good_till_date = std::nullopt
 Order cancel time for GTD timeInForce, mandatory when timeInForce is GTD.
std::optional< std::int64_t > recv_window = std::nullopt

Member Data Documentation

◆ algo_type

common::Required<NewUmAlgoOrderAlgoTypeEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewUmAlgoOrderParams::algo_type

Only support CONDITIONAL.

◆ symbol

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

◆ side

common::Required<NewUmAlgoOrderSideEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewUmAlgoOrderParams::side

◆ type

common::Required<NewUmAlgoOrderTypeEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewUmAlgoOrderParams::type

Conditional order type.

◆ position_side

std::optional<NewUmAlgoOrderPositionSideEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewUmAlgoOrderParams::position_side = std::nullopt

Default BOTH for One-way Mode; LONG or SHORT for Hedge Mode.

◆ time_in_force

std::optional<NewUmAlgoOrderTimeInForceEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewUmAlgoOrderParams::time_in_force = std::nullopt

◆ quantity

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

Order quantity. Cannot be sent with closePosition=true(Close-All).

◆ price

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

Order price.

◆ trigger_price

std::optional<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::NewUmAlgoOrderParams::trigger_price = std::nullopt

Trigger price.

◆ working_type

std::optional<NewUmAlgoOrderWorkingTypeEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewUmAlgoOrderParams::working_type = std::nullopt

Trigger price type. Default CONTRACT_PRICE.

◆ price_match

std::optional<NewUmAlgoOrderPriceMatchEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewUmAlgoOrderParams::price_match = std::nullopt

Can't be passed together with price.

◆ close_position

std::optional<NewUmAlgoOrderClosePositionEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewUmAlgoOrderParams::close_position = std::nullopt

Close-All, used with STOP_MARKET or TAKE_PROFIT_MARKET.

◆ price_protect

std::optional<NewUmAlgoOrderPriceProtectEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewUmAlgoOrderParams::price_protect = std::nullopt

Price protection. Default false.

◆ reduce_only

std::optional<NewUmAlgoOrderReduceOnlyEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewUmAlgoOrderParams::reduce_only = std::nullopt

Cannot be sent in Hedge Mode; cannot be sent with closePosition=true.

◆ activate_price

std::optional<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::NewUmAlgoOrderParams::activate_price = std::nullopt

Used with TRAILING_STOP_MARKET, default as latest price.

◆ callback_rate

std::optional<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::NewUmAlgoOrderParams::callback_rate = std::nullopt

Used with TRAILING_STOP_MARKET, min 0.1, max 20 (1 = 1%).

◆ client_algo_id

std::optional<std::string> binance::derivatives_trading_portfolio_margin::rest_api::NewUmAlgoOrderParams::client_algo_id = std::nullopt

Unique id among open orders. Auto-generated if not sent.

◆ new_order_resp_type

std::optional<NewUmAlgoOrderNewOrderRespTypeEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewUmAlgoOrderParams::new_order_resp_type = std::nullopt

◆ self_trade_prevention_mode

std::optional<NewUmAlgoOrderSelfTradePreventionModeEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewUmAlgoOrderParams::self_trade_prevention_mode
Initial value:
=
std::nullopt

◆ good_till_date

std::optional<std::int64_t> binance::derivatives_trading_portfolio_margin::rest_api::NewUmAlgoOrderParams::good_till_date = std::nullopt

Order cancel time for GTD timeInForce, mandatory when timeInForce is GTD.

◆ recv_window

std::optional<std::int64_t> binance::derivatives_trading_portfolio_margin::rest_api::NewUmAlgoOrderParams::recv_window = std::nullopt