|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
#include <trade_api.hpp>
Public Attributes | |
| common::Required< std::string > | symbol |
| Symbol. | |
| common::Required< NewUmOrderSideEnum > | side |
| common::Required< NewUmOrderTypeEnum > | type |
| std::optional< NewUmOrderPositionSideEnum > | position_side = std::nullopt |
| Default BOTH for One-way Mode ; LONG or SHORT for Hedge Mode. | |
| std::optional< NewUmOrderTimeInForceEnum > | time_in_force = std::nullopt |
| Valid values. | |
| std::optional< common::Decimal > | quantity = std::nullopt |
| Place amount. | |
| std::optional< NewUmOrderReduceOnlyEnum > | reduce_only = std::nullopt |
| "true" or "false". default "false". Cannot be sent in Hedge Mode . | |
| std::optional< common::Decimal > | price = std::nullopt |
| Order price. | |
| std::optional< std::string > | new_client_order_id = std::nullopt |
| A unique id among open orders. | |
| std::optional< NewUmOrderNewOrderRespTypeEnum > | new_order_resp_type = std::nullopt |
| ACK, RESULT, default ACK | |
| std::optional< NewUmOrderPriceMatchEnum > | 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< NewUmOrderSelfTradePreventionModeEnum > | self_trade_prevention_mode = std::nullopt |
| 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< std::int64_t > | good_till_date = std::nullopt |
| order cancel time for timeInForce GTD, mandatory when timeInforce set to GTD; order the timestamp only retains second-level precision, ms part will be ignored; The goodTillDate timestamp must be greater than the current time plus 600 seconds and smaller than 253402300799000Mode. | |
| std::optional< std::int64_t > | recv_window = std::nullopt |
| common::Required<std::string> binance::derivatives_trading_portfolio_margin::rest_api::NewUmOrderParams::symbol |
Symbol.
| common::Required<NewUmOrderSideEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewUmOrderParams::side |
| common::Required<NewUmOrderTypeEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewUmOrderParams::type |
| std::optional<NewUmOrderPositionSideEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewUmOrderParams::position_side = std::nullopt |
Default BOTH for One-way Mode ; LONG or SHORT for Hedge Mode.
It must be sent in Hedge Mode.
| std::optional<NewUmOrderTimeInForceEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewUmOrderParams::time_in_force = std::nullopt |
Valid values.
| std::optional<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::NewUmOrderParams::quantity = std::nullopt |
Place amount.
| std::optional<NewUmOrderReduceOnlyEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewUmOrderParams::reduce_only = std::nullopt |
"true" or "false". default "false". Cannot be sent in Hedge Mode .
| std::optional<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::NewUmOrderParams::price = std::nullopt |
Order price.
| std::optional<std::string> binance::derivatives_trading_portfolio_margin::rest_api::NewUmOrderParams::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}$
| std::optional<NewUmOrderNewOrderRespTypeEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewUmOrderParams::new_order_resp_type = std::nullopt |
ACK, RESULT, default ACK
| std::optional<NewUmOrderPriceMatchEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewUmOrderParams::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<NewUmOrderSelfTradePreventionModeEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewUmOrderParams::self_trade_prevention_mode = std::nullopt |
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<std::int64_t> binance::derivatives_trading_portfolio_margin::rest_api::NewUmOrderParams::good_till_date = std::nullopt |
order cancel time for timeInForce GTD, mandatory when timeInforce set to GTD; order the timestamp only retains second-level precision, ms part will be ignored; The goodTillDate timestamp must be greater than the current time plus 600 seconds and smaller than 253402300799000Mode.
It must be sent in Hedge Mode.
| std::optional<std::int64_t> binance::derivatives_trading_portfolio_margin::rest_api::NewUmOrderParams::recv_window = std::nullopt |