|
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< SorOrderSideEnum > | side |
| common::Required< SorOrderTypeEnum > | type |
| common::Required< common::Decimal > | quantity |
| std::optional< SorOrderTimeInForceEnum > | time_in_force = std::nullopt |
| std::optional< common::Decimal > | price = std::nullopt |
| std::optional< std::string > | new_client_order_id = std::nullopt |
| A unique id among open orders. | |
| std::optional< std::int64_t > | strategy_id = std::nullopt |
| std::optional< std::int64_t > | strategy_type = std::nullopt |
| The value cannot be less than 1000000. | |
| std::optional< common::Decimal > | iceberg_qty = std::nullopt |
| Used with LIMIT to create an iceberg order. | |
| std::optional< SorOrderNewOrderRespTypeEnum > | new_order_resp_type = std::nullopt |
| Set the response JSON. ACK, RESULT, or FULL. Default to FULL. | |
| std::optional< SorOrderSelfTradePreventionModeEnum > | self_trade_prevention_mode = std::nullopt |
| The allowed enums is 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::SorOrderParams::symbol |
| common::Required<SorOrderSideEnum> binance::spot::rest_api::SorOrderParams::side |
| common::Required<SorOrderTypeEnum> binance::spot::rest_api::SorOrderParams::type |
| common::Required<common::Decimal> binance::spot::rest_api::SorOrderParams::quantity |
| std::optional<SorOrderTimeInForceEnum> binance::spot::rest_api::SorOrderParams::time_in_force = std::nullopt |
| std::optional<common::Decimal> binance::spot::rest_api::SorOrderParams::price = std::nullopt |
| std::optional<std::string> binance::spot::rest_api::SorOrderParams::new_client_order_id = std::nullopt |
A unique id among open orders.
Automatically generated if not sent. Orders with the same newClientOrderID can be accepted only when the previous one is filled, otherwise the order will be rejected.
| std::optional<std::int64_t> binance::spot::rest_api::SorOrderParams::strategy_id = std::nullopt |
| std::optional<std::int64_t> binance::spot::rest_api::SorOrderParams::strategy_type = std::nullopt |
The value cannot be less than 1000000.
| std::optional<common::Decimal> binance::spot::rest_api::SorOrderParams::iceberg_qty = std::nullopt |
Used with LIMIT to create an iceberg order.
| std::optional<SorOrderNewOrderRespTypeEnum> binance::spot::rest_api::SorOrderParams::new_order_resp_type = std::nullopt |
Set the response JSON. ACK, RESULT, or FULL. Default to FULL.
| std::optional<SorOrderSelfTradePreventionModeEnum> binance::spot::rest_api::SorOrderParams::self_trade_prevention_mode = std::nullopt |
The allowed enums is dependent on what is configured on the symbol.
The possible supported values are: STP Modes.
| std::optional<common::Decimal> binance::spot::rest_api::SorOrderParams::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.