|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
#include <trade_api.hpp>
Public Attributes | |
| common::Required< std::string > | symbol |
| common::Required< NewOrderSideEnum > | side |
| common::Required< NewOrderTypeEnum > | type |
| Order type. | |
| std::optional< std::string > | position_side = std::nullopt |
| Default BOTH for One-way Mode ; LONG or SHORT for Hedge Mode. | |
| std::optional< NewOrderTimeInForceEnum > | time_in_force = std::nullopt |
| std::optional< NewOrderReduceOnlyEnum > | reduce_only = std::nullopt |
| Cannot be sent in Hedge Mode. | |
| std::optional< common::Decimal > | quantity = std::nullopt |
| std::optional< common::Decimal > | price = std::nullopt |
| std::optional< std::string > | new_client_order_id = std::nullopt |
| A unique id among open orders. | |
| std::optional< NewOrderNewOrderRespTypeEnum > | new_order_resp_type = std::nullopt |
| std::optional< NewOrderPriceMatchEnum > | price_match = std::nullopt |
| only avaliable for LIMIT/STOP/TAKE_PROFIT order; Can't be passed together with price | |
| std::optional< NewOrderSelfTradePreventionModeEnum > | 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; default EXPIRE_MAKER | |
| 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 253402300799000 | |
| std::optional< std::int64_t > | recv_window = std::nullopt |
| common::Required<std::string> binance::derivatives_trading_usds_futures::rest_api::NewOrderParams::symbol |
| common::Required<NewOrderSideEnum> binance::derivatives_trading_usds_futures::rest_api::NewOrderParams::side |
| common::Required<NewOrderTypeEnum> binance::derivatives_trading_usds_futures::rest_api::NewOrderParams::type |
Order type.
| std::optional<std::string> binance::derivatives_trading_usds_futures::rest_api::NewOrderParams::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<NewOrderTimeInForceEnum> binance::derivatives_trading_usds_futures::rest_api::NewOrderParams::time_in_force = std::nullopt |
| std::optional<NewOrderReduceOnlyEnum> binance::derivatives_trading_usds_futures::rest_api::NewOrderParams::reduce_only = std::nullopt |
Cannot be sent in Hedge Mode.
| std::optional<common::Decimal> binance::derivatives_trading_usds_futures::rest_api::NewOrderParams::quantity = std::nullopt |
| std::optional<common::Decimal> binance::derivatives_trading_usds_futures::rest_api::NewOrderParams::price = std::nullopt |
| std::optional<std::string> binance::derivatives_trading_usds_futures::rest_api::NewOrderParams::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,36}$
| std::optional<NewOrderNewOrderRespTypeEnum> binance::derivatives_trading_usds_futures::rest_api::NewOrderParams::new_order_resp_type = std::nullopt |
| std::optional<NewOrderPriceMatchEnum> binance::derivatives_trading_usds_futures::rest_api::NewOrderParams::price_match = std::nullopt |
only avaliable for LIMIT/STOP/TAKE_PROFIT order; Can't be passed together with price
| std::optional<NewOrderSelfTradePreventionModeEnum> binance::derivatives_trading_usds_futures::rest_api::NewOrderParams::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; default EXPIRE_MAKER
| std::optional<std::int64_t> binance::derivatives_trading_usds_futures::rest_api::NewOrderParams::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 253402300799000
| std::optional<std::int64_t> binance::derivatives_trading_usds_futures::rest_api::NewOrderParams::recv_window = std::nullopt |