|
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< MarginAccountNewOtoWorkingTypeEnum > | working_type |
| common::Required< MarginAccountNewOtoWorkingSideEnum > | working_side |
| common::Required< common::Decimal > | working_price |
| common::Required< common::Decimal > | working_quantity |
| Sets the quantity for the working order. | |
| common::Required< common::Decimal > | working_iceberg_qty |
| This can only be used if workingTimeInForce is GTC. | |
| common::Required< MarginAccountNewOtoPendingTypeEnum > | pending_type |
| common::Required< MarginAccountNewOtoPendingSideEnum > | pending_side |
| common::Required< common::Decimal > | pending_quantity |
| Sets the quantity for the pending order. | |
| std::optional< MarginAccountNewOtoIsIsolatedEnum > | is_isolated = std::nullopt |
| std::optional< std::string > | list_client_order_id = std::nullopt |
| Arbitrary unique ID among open order lists. | |
| std::optional< MarginAccountNewOtoNewOrderRespTypeEnum > | new_order_resp_type = std::nullopt |
| MARKET and LIMIT order types default to FULL, all other orders default to ACK. | |
| std::optional< MarginAccountNewOtoSideEffectTypeEnum > | side_effect_type = std::nullopt |
| std::optional< MarginAccountNewOtoSelfTradePreventionModeEnum > | self_trade_prevention_mode |
| std::optional< bool > | auto_repay_at_cancel = std::nullopt |
| Only when MARGIN_BUY order takes effect, true means that the debt generated by the order needs to be repaid after the order is cancelled. | |
| std::optional< std::string > | working_client_order_id = std::nullopt |
| Arbitrary unique ID among open orders for the working order. | |
| std::optional< MarginAccountNewOtoWorkingTimeInForceEnum > | working_time_in_force = std::nullopt |
| std::optional< std::string > | pending_client_order_id = std::nullopt |
| Arbitrary unique ID among open orders for the pending order. | |
| std::optional< common::Decimal > | pending_price = std::nullopt |
| std::optional< common::Decimal > | pending_stop_price = std::nullopt |
| std::optional< common::Decimal > | pending_trailing_delta = std::nullopt |
| std::optional< common::Decimal > | pending_iceberg_qty = std::nullopt |
| This can only be used if pendingTimeInForce is GTC. | |
| std::optional< MarginAccountNewOtoPendingTimeInForceEnum > | pending_time_in_force = std::nullopt |
| common::Required<std::string> binance::margin_trading::rest_api::MarginAccountNewOtoParams::symbol |
| common::Required<MarginAccountNewOtoWorkingTypeEnum> binance::margin_trading::rest_api::MarginAccountNewOtoParams::working_type |
| common::Required<MarginAccountNewOtoWorkingSideEnum> binance::margin_trading::rest_api::MarginAccountNewOtoParams::working_side |
| common::Required<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtoParams::working_price |
| common::Required<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtoParams::working_quantity |
Sets the quantity for the working order.
| common::Required<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtoParams::working_iceberg_qty |
This can only be used if workingTimeInForce is GTC.
| common::Required<MarginAccountNewOtoPendingTypeEnum> binance::margin_trading::rest_api::MarginAccountNewOtoParams::pending_type |
| common::Required<MarginAccountNewOtoPendingSideEnum> binance::margin_trading::rest_api::MarginAccountNewOtoParams::pending_side |
| common::Required<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtoParams::pending_quantity |
Sets the quantity for the pending order.
| std::optional<MarginAccountNewOtoIsIsolatedEnum> binance::margin_trading::rest_api::MarginAccountNewOtoParams::is_isolated = std::nullopt |
| std::optional<std::string> binance::margin_trading::rest_api::MarginAccountNewOtoParams::list_client_order_id = std::nullopt |
Arbitrary unique ID among open order lists.
Automatically generated if not sent. A new order list with the same listClientOrderId is accepted only when the previous one is filled or completely expired. listClientOrderId is distinct from the workingClientOrderId and the pendingClientOrderId.
| std::optional<MarginAccountNewOtoNewOrderRespTypeEnum> binance::margin_trading::rest_api::MarginAccountNewOtoParams::new_order_resp_type = std::nullopt |
MARKET and LIMIT order types default to FULL, all other orders default to ACK.
| std::optional<MarginAccountNewOtoSideEffectTypeEnum> binance::margin_trading::rest_api::MarginAccountNewOtoParams::side_effect_type = std::nullopt |
| std::optional<MarginAccountNewOtoSelfTradePreventionModeEnum> binance::margin_trading::rest_api::MarginAccountNewOtoParams::self_trade_prevention_mode |
| std::optional<bool> binance::margin_trading::rest_api::MarginAccountNewOtoParams::auto_repay_at_cancel = std::nullopt |
Only when MARGIN_BUY order takes effect, true means that the debt generated by the order needs to be repaid after the order is cancelled.
| std::optional<std::string> binance::margin_trading::rest_api::MarginAccountNewOtoParams::working_client_order_id = std::nullopt |
Arbitrary unique ID among open orders for the working order.
Automatically generated if not sent.
| std::optional<MarginAccountNewOtoWorkingTimeInForceEnum> binance::margin_trading::rest_api::MarginAccountNewOtoParams::working_time_in_force = std::nullopt |
| std::optional<std::string> binance::margin_trading::rest_api::MarginAccountNewOtoParams::pending_client_order_id = std::nullopt |
Arbitrary unique ID among open orders for the pending order.
Automatically generated if not sent.
| std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtoParams::pending_price = std::nullopt |
| std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtoParams::pending_stop_price = std::nullopt |
| std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtoParams::pending_trailing_delta = std::nullopt |
| std::optional<common::Decimal> binance::margin_trading::rest_api::MarginAccountNewOtoParams::pending_iceberg_qty = std::nullopt |
This can only be used if pendingTimeInForce is GTC.
| std::optional<MarginAccountNewOtoPendingTimeInForceEnum> binance::margin_trading::rest_api::MarginAccountNewOtoParams::pending_time_in_force = std::nullopt |