|
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< 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 |
| common::Required<std::string> binance::derivatives_trading_portfolio_margin::rest_api::NewCmOrderParams::symbol |
Symbol.
| common::Required<NewCmOrderSideEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewCmOrderParams::side |
Side.
| common::Required<NewCmOrderTypeEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewCmOrderParams::type |
| 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.
| std::optional<NewCmOrderTimeInForceEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewCmOrderParams::time_in_force = std::nullopt |
| std::optional<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::NewCmOrderParams::quantity = std::nullopt |
Place amount.
| std::optional<NewCmOrderReduceOnlyEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewCmOrderParams::reduce_only = std::nullopt |
"true" or "false". Cannot be sent in Hedge Mode.
| std::optional<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::NewCmOrderParams::price = std::nullopt |
Order price.
| 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
| 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}$
| std::optional<NewCmOrderNewOrderRespTypeEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewCmOrderParams::new_order_resp_type = std::nullopt |
"ACK", "RESULT", default "ACK"
| std::optional<std::int64_t> binance::derivatives_trading_portfolio_margin::rest_api::NewCmOrderParams::recv_window = std::nullopt |