|
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< NewMarginOrderSideEnum > | side |
| common::Required< NewMarginOrderTypeEnum > | type |
| std::optional< common::Decimal > | quantity = std::nullopt |
| std::optional< common::Decimal > | quote_order_qty = std::nullopt |
| std::optional< common::Decimal > | price = std::nullopt |
| std::optional< common::Decimal > | stop_price = std::nullopt |
| Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders. | |
| std::optional< std::string > | new_client_order_id = std::nullopt |
| A unique id among open orders. Automatically generated if not sent. | |
| std::optional< NewMarginOrderNewOrderRespTypeEnum > | new_order_resp_type = std::nullopt |
| Set the response JSON. ACK, RESULT, or FULL. | |
| std::optional< common::Decimal > | iceberg_qty = std::nullopt |
| Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order. | |
| std::optional< NewMarginOrderSideEffectTypeEnum > | side_effect_type = std::nullopt |
| std::optional< NewMarginOrderTimeInForceEnum > | time_in_force = std::nullopt |
| std::optional< NewMarginOrderSelfTradePreventionModeEnum > | self_trade_prevention_mode |
| 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< bool > | auto_repay_at_cancel = std::nullopt |
| Only when MARGIN_BUY or AUTO_BORROW_REPAY order takes effect, true means that the debt generated by the order needs to be repaid after the order is cancelled. | |
| std::optional< std::int64_t > | recv_window = std::nullopt |
| The value cannot be greater than 60000. | |
| common::Required<std::string> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::symbol |
| common::Required<NewMarginOrderSideEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::side |
| common::Required<NewMarginOrderTypeEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::type |
| std::optional<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::quantity = std::nullopt |
| std::optional<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::quote_order_qty = std::nullopt |
| std::optional<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::price = std::nullopt |
| std::optional<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::stop_price = std::nullopt |
Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.
| std::optional<std::string> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::new_client_order_id = std::nullopt |
A unique id among open orders. Automatically generated if not sent.
| std::optional<NewMarginOrderNewOrderRespTypeEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::new_order_resp_type = std::nullopt |
Set the response JSON. ACK, RESULT, or FULL.
| std::optional<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::iceberg_qty = std::nullopt |
Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order.
| std::optional<NewMarginOrderSideEffectTypeEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::side_effect_type = std::nullopt |
| std::optional<NewMarginOrderTimeInForceEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::time_in_force = std::nullopt |
| std::optional<NewMarginOrderSelfTradePreventionModeEnum> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::self_trade_prevention_mode |
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<bool> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::auto_repay_at_cancel = std::nullopt |
Only when MARGIN_BUY or AUTO_BORROW_REPAY order takes effect, true means that the debt generated by the order needs to be repaid after the order is cancelled.
| std::optional<std::int64_t> binance::derivatives_trading_portfolio_margin::rest_api::NewMarginOrderParams::recv_window = std::nullopt |
The value cannot be greater than 60000.