|
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< MarginAccountNewOrderSideEnum > | side |
| common::Required< MarginAccountNewOrderTypeEnum > | type |
| std::optional< MarginAccountNewOrderIsIsolatedEnum > | is_isolated = std::nullopt |
| 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< common::Decimal > | iceberg_qty = std::nullopt |
| Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order. | |
| std::optional< MarginAccountNewOrderNewOrderRespTypeEnum > | new_order_resp_type = std::nullopt |
| MARKET and LIMIT order types default to FULL, all other orders default to ACK. | |
| std::optional< MarginAccountNewOrderSideEffectTypeEnum > | side_effect_type = std::nullopt |
| std::optional< MarginAccountNewOrderTimeInForceEnum > | time_in_force = std::nullopt |
| std::optional< MarginAccountNewOrderSelfTradePreventionModeEnum > | self_trade_prevention_mode |
| std::optional< std::int64_t > | trailing_delta = std::nullopt |
| Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders. | |
| 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 |
| common::Required<std::string> binance::margin_trading::rest_api::MarginAccountNewOrderParams::symbol |
| common::Required<MarginAccountNewOrderSideEnum> binance::margin_trading::rest_api::MarginAccountNewOrderParams::side |
| common::Required<MarginAccountNewOrderTypeEnum> binance::margin_trading::rest_api::MarginAccountNewOrderParams::type |
| std::optional<MarginAccountNewOrderIsIsolatedEnum> binance::margin_trading::rest_api::MarginAccountNewOrderParams::is_isolated = std::nullopt |
| std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOrderParams::quantity = std::nullopt |
| std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOrderParams::quote_order_qty = std::nullopt |
| std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOrderParams::price = std::nullopt |
| std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOrderParams::stop_price = std::nullopt |
Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.
| std::optional<std::string> binance::margin_trading::rest_api::MarginAccountNewOrderParams::new_client_order_id = std::nullopt |
A unique id among open orders. Automatically generated if not sent.
| std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOrderParams::iceberg_qty = std::nullopt |
Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order.
| std::optional<MarginAccountNewOrderNewOrderRespTypeEnum> binance::margin_trading::rest_api::MarginAccountNewOrderParams::new_order_resp_type = std::nullopt |
MARKET and LIMIT order types default to FULL, all other orders default to ACK.
| std::optional<MarginAccountNewOrderSideEffectTypeEnum> binance::margin_trading::rest_api::MarginAccountNewOrderParams::side_effect_type = std::nullopt |
| std::optional<MarginAccountNewOrderTimeInForceEnum> binance::margin_trading::rest_api::MarginAccountNewOrderParams::time_in_force = std::nullopt |
| std::optional<MarginAccountNewOrderSelfTradePreventionModeEnum> binance::margin_trading::rest_api::MarginAccountNewOrderParams::self_trade_prevention_mode |
| std::optional<std::int64_t> binance::margin_trading::rest_api::MarginAccountNewOrderParams::trailing_delta = std::nullopt |
Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.
| std::optional<bool> binance::margin_trading::rest_api::MarginAccountNewOrderParams::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::margin_trading::rest_api::MarginAccountNewOrderParams::recv_window = std::nullopt |