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

#include <trade_api.hpp>

Public Attributes

common::Required< std::string > symbol
 Symbol.
common::Required< NewCmOrderSideEnum > side
 Side.
common::Required< NewCmOrderTypeEnum > type
std::optional< NewCmOrderPositionSideEnum > position_side = std::nullopt
 Default BOTH for One-way Mode ; LONG or SHORT for Hedge Mode.
std::optional< NewCmOrderTimeInForceEnum > time_in_force = std::nullopt
std::optional< common::Decimal > quantity = std::nullopt
 Place amount.
std::optional< NewCmOrderReduceOnlyEnum > reduce_only = std::nullopt
 "true" or "false". Cannot be sent in Hedge Mode.
std::optional< common::Decimal > price = std::nullopt
 Order price.
std::optional< NewCmOrderPriceMatchEnum > price_match = std::nullopt
 only avaliable for LIMIT/STOP/TAKE_PROFIT order; can be set to OPPONENT/ OPPONENT_5/ OPPONENT_10/ OPPONENT_20: /QUEUE/ QUEUE_5/ QUEUE_10/ QUEUE_20; Can't be passed together with price
std::optional< std::string > new_client_order_id = std::nullopt
 A unique id among open orders.
std::optional< NewCmOrderNewOrderRespTypeEnum > new_order_resp_type = std::nullopt
 "ACK", "RESULT", default "ACK"
std::optional< std::int64_t > recv_window = std::nullopt

Member Data Documentation

◆ symbol

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

Symbol.

◆ side

common::Required<NewCmOrderSideEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewCmOrderParams::side

Side.

◆ type

common::Required<NewCmOrderTypeEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewCmOrderParams::type

◆ position_side

std::optional<NewCmOrderPositionSideEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewCmOrderParams::position_side = std::nullopt

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

It must be sent in Hedge Mode.

◆ time_in_force

std::optional<NewCmOrderTimeInForceEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewCmOrderParams::time_in_force = std::nullopt

◆ quantity

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

Place amount.

◆ reduce_only

std::optional<NewCmOrderReduceOnlyEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewCmOrderParams::reduce_only = std::nullopt

"true" or "false". Cannot be sent in Hedge Mode.

◆ price

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

Order price.

◆ price_match

std::optional<NewCmOrderPriceMatchEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewCmOrderParams::price_match = std::nullopt

only avaliable for LIMIT/STOP/TAKE_PROFIT order; can be set to OPPONENT/ OPPONENT_5/ OPPONENT_10/ OPPONENT_20: /QUEUE/ QUEUE_5/ QUEUE_10/ QUEUE_20; Can't be passed together with price

◆ new_client_order_id

std::optional<std::string> binance::derivatives_trading_portfolio_margin::rest_api::NewCmOrderParams::new_client_order_id = std::nullopt

A unique id among open orders.

Automatically generated if not sent. Can only be string following the rule: ^[\.A-Z\:/a-z0-9_-]{1,32}$

◆ new_order_resp_type

std::optional<NewCmOrderNewOrderRespTypeEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewCmOrderParams::new_order_resp_type = std::nullopt

"ACK", "RESULT", default "ACK"

◆ recv_window

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