|
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< OrderOcoSideEnum > | side |
| common::Required< common::Decimal > | quantity |
| common::Required< common::Decimal > | price |
| common::Required< common::Decimal > | stop_price |
| std::optional< std::string > | list_client_order_id = std::nullopt |
| A unique Id for the entire orderList. | |
| std::optional< std::string > | limit_client_order_id = std::nullopt |
| A unique Id for the limit order. | |
| std::optional< std::int64_t > | limit_strategy_id = std::nullopt |
| std::optional< std::int64_t > | limit_strategy_type = std::nullopt |
| The value cannot be less than 1000000. | |
| std::optional< common::Decimal > | limit_iceberg_qty = std::nullopt |
| Used to make the LIMIT_MAKER leg an iceberg order. | |
| std::optional< std::int64_t > | trailing_delta = std::nullopt |
| std::optional< std::string > | stop_client_order_id = std::nullopt |
| A unique Id for the stop loss/stop loss limit leg. | |
| std::optional< std::int64_t > | stop_strategy_id = std::nullopt |
| std::optional< std::int64_t > | stop_strategy_type = std::nullopt |
| The value cannot be less than 1000000. | |
| std::optional< common::Decimal > | stop_limit_price = std::nullopt |
| If provided, stopLimitTimeInForce is required. | |
| std::optional< common::Decimal > | stop_iceberg_qty = std::nullopt |
| Used with STOP_LOSS_LIMIT leg to make an iceberg order. | |
| std::optional< OrderOcoStopLimitTimeInForceEnum > | stop_limit_time_in_force = std::nullopt |
| Valid values are GTC/FOK/IOC. | |
| std::optional< OrderOcoNewOrderRespTypeEnum > | new_order_resp_type = std::nullopt |
| Format of the JSON response. Supported values: Order Response Type. | |
| std::optional< OrderOcoSelfTradePreventionModeEnum > | self_trade_prevention_mode = std::nullopt |
| The allowed values are dependent on what is configured on the symbol. | |
| std::optional< common::Decimal > | recv_window = std::nullopt |
| The value cannot be greater than 60000. | |
| common::Required<std::string> binance::spot::rest_api::OrderOcoParams::symbol |
| common::Required<OrderOcoSideEnum> binance::spot::rest_api::OrderOcoParams::side |
| common::Required<common::Decimal> binance::spot::rest_api::OrderOcoParams::quantity |
| common::Required<common::Decimal> binance::spot::rest_api::OrderOcoParams::price |
| common::Required<common::Decimal> binance::spot::rest_api::OrderOcoParams::stop_price |
| std::optional<std::string> binance::spot::rest_api::OrderOcoParams::list_client_order_id = std::nullopt |
A unique Id for the entire orderList.
| std::optional<std::string> binance::spot::rest_api::OrderOcoParams::limit_client_order_id = std::nullopt |
A unique Id for the limit order.
| std::optional<std::int64_t> binance::spot::rest_api::OrderOcoParams::limit_strategy_id = std::nullopt |
| std::optional<std::int64_t> binance::spot::rest_api::OrderOcoParams::limit_strategy_type = std::nullopt |
The value cannot be less than 1000000.
| std::optional<common::Decimal> binance::spot::rest_api::OrderOcoParams::limit_iceberg_qty = std::nullopt |
Used to make the LIMIT_MAKER leg an iceberg order.
| std::optional<std::int64_t> binance::spot::rest_api::OrderOcoParams::trailing_delta = std::nullopt |
| std::optional<std::string> binance::spot::rest_api::OrderOcoParams::stop_client_order_id = std::nullopt |
A unique Id for the stop loss/stop loss limit leg.
| std::optional<std::int64_t> binance::spot::rest_api::OrderOcoParams::stop_strategy_id = std::nullopt |
| std::optional<std::int64_t> binance::spot::rest_api::OrderOcoParams::stop_strategy_type = std::nullopt |
The value cannot be less than 1000000.
| std::optional<common::Decimal> binance::spot::rest_api::OrderOcoParams::stop_limit_price = std::nullopt |
If provided, stopLimitTimeInForce is required.
| std::optional<common::Decimal> binance::spot::rest_api::OrderOcoParams::stop_iceberg_qty = std::nullopt |
Used with STOP_LOSS_LIMIT leg to make an iceberg order.
| std::optional<OrderOcoStopLimitTimeInForceEnum> binance::spot::rest_api::OrderOcoParams::stop_limit_time_in_force = std::nullopt |
Valid values are GTC/FOK/IOC.
| std::optional<OrderOcoNewOrderRespTypeEnum> binance::spot::rest_api::OrderOcoParams::new_order_resp_type = std::nullopt |
Format of the JSON response. Supported values: Order Response Type.
| std::optional<OrderOcoSelfTradePreventionModeEnum> binance::spot::rest_api::OrderOcoParams::self_trade_prevention_mode = std::nullopt |
The allowed values are dependent on what is configured on the symbol.
Supported values: STP Modes
| std::optional<common::Decimal> binance::spot::rest_api::OrderOcoParams::recv_window = std::nullopt |
The value cannot be greater than 60000.
Supports up to three decimal places of precision (e.g., 6000.346) so that microseconds may be specified.