|
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< TestOrderSideEnum > | side |
| common::Required< TestOrderTypeEnum > | type |
| std::optional< TestOrderPositionSideEnum > | position_side = std::nullopt |
| Default BOTH for One-way Mode ; LONG or SHORT for Hedge Mode. | |
| std::optional< TestOrderReduceOnlyEnum > | reduce_only = std::nullopt |
| Cannot be sent in Hedge Mode; cannot be sent with closePosition=true. | |
| std::optional< common::Decimal > | quantity = std::nullopt |
| Cannot be sent with closePosition=true(Close-All). | |
| 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< common::Decimal > | stop_price = std::nullopt |
| Used with STOP/STOP_MARKET or TAKE_PROFIT/TAKE_PROFIT_MARKET orders. | |
| std::optional< TestOrderClosePositionEnum > | close_position = std::nullopt |
| Close-All,used with STOP_MARKET or TAKE_PROFIT_MARKET.". | |
| std::optional< common::Decimal > | activation_price = std::nullopt |
| Used with TRAILING_STOP_MARKET orders, default as the latest price(supporting different workingType). | |
| std::optional< common::Decimal > | callback_rate = std::nullopt |
| Used with TRAILING_STOP_MARKET orders. | |
| std::optional< TestOrderTimeInForceEnum > | time_in_force = std::nullopt |
| std::optional< TestOrderWorkingTypeEnum > | working_type = std::nullopt |
| std::optional< TestOrderPriceProtectEnum > | price_protect = std::nullopt |
| std::optional< TestOrderNewOrderRespTypeEnum > | new_order_resp_type = std::nullopt |
| std::optional< TestOrderPriceMatchEnum > | price_match = std::nullopt |
| only avaliable for LIMIT/STOP/TAKE_PROFIT order; Can't be passed together with price | |
| std::optional< TestOrderSelfTradePreventionModeEnum > | self_trade_prevention_mode = 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; default NONE | |
| 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::TestOrderParams::symbol |
| common::Required<TestOrderSideEnum> binance::derivatives_trading_usds_futures::rest_api::TestOrderParams::side |
| common::Required<TestOrderTypeEnum> binance::derivatives_trading_usds_futures::rest_api::TestOrderParams::type |
| std::optional<TestOrderPositionSideEnum> binance::derivatives_trading_usds_futures::rest_api::TestOrderParams::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<TestOrderReduceOnlyEnum> binance::derivatives_trading_usds_futures::rest_api::TestOrderParams::reduce_only = std::nullopt |
Cannot be sent in Hedge Mode; cannot be sent with closePosition=true.
| std::optional<common::Decimal> binance::derivatives_trading_usds_futures::rest_api::TestOrderParams::quantity = std::nullopt |
Cannot be sent with closePosition=true(Close-All).
| std::optional<common::Decimal> binance::derivatives_trading_usds_futures::rest_api::TestOrderParams::price = std::nullopt |
| std::optional<std::string> binance::derivatives_trading_usds_futures::rest_api::TestOrderParams::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<common::Decimal> binance::derivatives_trading_usds_futures::rest_api::TestOrderParams::stop_price = std::nullopt |
Used with STOP/STOP_MARKET or TAKE_PROFIT/TAKE_PROFIT_MARKET orders.
| std::optional<TestOrderClosePositionEnum> binance::derivatives_trading_usds_futures::rest_api::TestOrderParams::close_position = std::nullopt |
Close-All,used with STOP_MARKET or TAKE_PROFIT_MARKET.".
| std::optional<common::Decimal> binance::derivatives_trading_usds_futures::rest_api::TestOrderParams::activation_price = std::nullopt |
Used with TRAILING_STOP_MARKET orders, default as the latest price(supporting different workingType).
| std::optional<common::Decimal> binance::derivatives_trading_usds_futures::rest_api::TestOrderParams::callback_rate = std::nullopt |
Used with TRAILING_STOP_MARKET orders.
| std::optional<TestOrderTimeInForceEnum> binance::derivatives_trading_usds_futures::rest_api::TestOrderParams::time_in_force = std::nullopt |
| std::optional<TestOrderWorkingTypeEnum> binance::derivatives_trading_usds_futures::rest_api::TestOrderParams::working_type = std::nullopt |
| std::optional<TestOrderPriceProtectEnum> binance::derivatives_trading_usds_futures::rest_api::TestOrderParams::price_protect = std::nullopt |
| std::optional<TestOrderNewOrderRespTypeEnum> binance::derivatives_trading_usds_futures::rest_api::TestOrderParams::new_order_resp_type = std::nullopt |
| std::optional<TestOrderPriceMatchEnum> binance::derivatives_trading_usds_futures::rest_api::TestOrderParams::price_match = std::nullopt |
only avaliable for LIMIT/STOP/TAKE_PROFIT order; Can't be passed together with price
| std::optional<TestOrderSelfTradePreventionModeEnum> binance::derivatives_trading_usds_futures::rest_api::TestOrderParams::self_trade_prevention_mode = 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; default NONE
| std::optional<std::int64_t> binance::derivatives_trading_usds_futures::rest_api::TestOrderParams::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::TestOrderParams::recv_window = std::nullopt |