|
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 |
| After CM migration, stop-type values (STOP, STOP_MARKET, TAKE_PROFIT, TAKE_PROFIT_MARKET, TRAILING_STOP_MARKET) are no longer accepted and will return -4120. | |
| std::optional< std::string > | id = std::nullopt |
| std::optional< NewOrderPositionSideEnum > | 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< common::Decimal > | quantity = std::nullopt |
| Quantity measured by contract number, Cannot be sent with closePosition=true. | |
| std::optional< NewOrderReduceOnlyEnum > | reduce_only = std::nullopt |
| Cannot be sent in Hedge Mode; 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< NewOrderClosePositionEnum > | close_position = std::nullopt |
| true, false;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, min 0.1, max 10 where 1 for 1%. | |
| std::optional< NewOrderWorkingTypeEnum > | working_type = std::nullopt |
| stopPrice triggered by: "MARK_PRICE", "CONTRACT_PRICE". Default "CONTRACT_PRICE" | |
| std::optional< NewOrderPriceProtectEnum > | price_protect = std::nullopt |
| Used with STOP/STOP_MARKET or TAKE_PROFIT/TAKE_PROFIT_MARKET orders.'. | |
| std::optional< NewOrderNewOrderRespTypeEnum > | new_order_resp_type = std::nullopt |
| std::optional< NewOrderPriceMatchEnum > | price_match = std::nullopt |
| only available for LIMIT/STOP/TAKE_PROFIT order; Can't be passed together with price | |
| std::optional< NewOrderSelfTradePreventionModeEnum > | 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 | |
| std::optional< std::int64_t > | recv_window = std::nullopt |
| common::Required<std::string> binance::derivatives_trading_coin_futures::websocket_api::NewOrderParams::symbol |
| common::Required<NewOrderSideEnum> binance::derivatives_trading_coin_futures::websocket_api::NewOrderParams::side |
| common::Required<NewOrderTypeEnum> binance::derivatives_trading_coin_futures::websocket_api::NewOrderParams::type |
After CM migration, stop-type values (STOP, STOP_MARKET, TAKE_PROFIT, TAKE_PROFIT_MARKET, TRAILING_STOP_MARKET) are no longer accepted and will return -4120.
Use the REST /dapi/v1/algoOrder endpoint instead.
| std::optional<std::string> binance::derivatives_trading_coin_futures::websocket_api::NewOrderParams::id = std::nullopt |
| std::optional<NewOrderPositionSideEnum> binance::derivatives_trading_coin_futures::websocket_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_coin_futures::websocket_api::NewOrderParams::time_in_force = std::nullopt |
| std::optional<common::Decimal> binance::derivatives_trading_coin_futures::websocket_api::NewOrderParams::quantity = std::nullopt |
Quantity measured by contract number, Cannot be sent with closePosition=true.
| std::optional<NewOrderReduceOnlyEnum> binance::derivatives_trading_coin_futures::websocket_api::NewOrderParams::reduce_only = std::nullopt |
Cannot be sent in Hedge Mode; cannot be sent with closePosition=true (Close-All)".
| std::optional<common::Decimal> binance::derivatives_trading_coin_futures::websocket_api::NewOrderParams::price = std::nullopt |
| std::optional<std::string> binance::derivatives_trading_coin_futures::websocket_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<common::Decimal> binance::derivatives_trading_coin_futures::websocket_api::NewOrderParams::stop_price = std::nullopt |
Used with STOP/STOP_MARKET or TAKE_PROFIT/TAKE_PROFIT_MARKET orders.
| std::optional<NewOrderClosePositionEnum> binance::derivatives_trading_coin_futures::websocket_api::NewOrderParams::close_position = std::nullopt |
true, false;Close-All,used with STOP_MARKET or TAKE_PROFIT_MARKET.
| std::optional<common::Decimal> binance::derivatives_trading_coin_futures::websocket_api::NewOrderParams::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_coin_futures::websocket_api::NewOrderParams::callback_rate = std::nullopt |
Used with TRAILING_STOP_MARKET orders, min 0.1, max 10 where 1 for 1%.
| std::optional<NewOrderWorkingTypeEnum> binance::derivatives_trading_coin_futures::websocket_api::NewOrderParams::working_type = std::nullopt |
stopPrice triggered by: "MARK_PRICE", "CONTRACT_PRICE". Default "CONTRACT_PRICE"
| std::optional<NewOrderPriceProtectEnum> binance::derivatives_trading_coin_futures::websocket_api::NewOrderParams::price_protect = std::nullopt |
Used with STOP/STOP_MARKET or TAKE_PROFIT/TAKE_PROFIT_MARKET orders.'.
| std::optional<NewOrderNewOrderRespTypeEnum> binance::derivatives_trading_coin_futures::websocket_api::NewOrderParams::new_order_resp_type = std::nullopt |
| std::optional<NewOrderPriceMatchEnum> binance::derivatives_trading_coin_futures::websocket_api::NewOrderParams::price_match = std::nullopt |
only available for LIMIT/STOP/TAKE_PROFIT order; Can't be passed together with price
| std::optional<NewOrderSelfTradePreventionModeEnum> binance::derivatives_trading_coin_futures::websocket_api::NewOrderParams::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
| std::optional<std::int64_t> binance::derivatives_trading_coin_futures::websocket_api::NewOrderParams::recv_window = std::nullopt |