|
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< SorOrderTestSideEnum > | side |
| common::Required< SorOrderTestTypeEnum > | type |
| common::Required< common::Decimal > | quantity |
| std::optional< std::string > | id = std::nullopt |
| Client-generated request identifier. | |
| std::optional< bool > | compute_commission_rates = std::nullopt |
| Default: false. | |
| std::optional< SorOrderTestTimeInForceEnum > | 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< SorOrderTestNewOrderRespTypeEnum > | new_order_resp_type = std::nullopt |
| Set the response JSON. ACK, RESULT, or FULL. Default to FULL. | |
| std::optional< common::Decimal > | iceberg_qty = std::nullopt |
| Used with LIMIT to create an iceberg order. | |
| 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< SorOrderTestSelfTradePreventionModeEnum > | self_trade_prevention_mode |
| The allowed enums is dependent on what is configured on the symbol. | |
| std::optional< common::Decimal > | recv_window = std::nullopt |
| Supports up to three decimal places of precision (e.g., 6000.346) so that microseconds may be specified. | |
| common::Required<std::string> binance::spot::websocket_api::SorOrderTestParams::symbol |
| common::Required<SorOrderTestSideEnum> binance::spot::websocket_api::SorOrderTestParams::side |
| common::Required<SorOrderTestTypeEnum> binance::spot::websocket_api::SorOrderTestParams::type |
| common::Required<common::Decimal> binance::spot::websocket_api::SorOrderTestParams::quantity |
| std::optional<std::string> binance::spot::websocket_api::SorOrderTestParams::id = std::nullopt |
Client-generated request identifier.
| std::optional<bool> binance::spot::websocket_api::SorOrderTestParams::compute_commission_rates = std::nullopt |
Default: false.
| std::optional<SorOrderTestTimeInForceEnum> binance::spot::websocket_api::SorOrderTestParams::time_in_force = std::nullopt |
| std::optional<common::Decimal> binance::spot::websocket_api::SorOrderTestParams::price = std::nullopt |
| std::optional<std::string> binance::spot::websocket_api::SorOrderTestParams::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<SorOrderTestNewOrderRespTypeEnum> binance::spot::websocket_api::SorOrderTestParams::new_order_resp_type = std::nullopt |
Set the response JSON. ACK, RESULT, or FULL. Default to FULL.
| std::optional<common::Decimal> binance::spot::websocket_api::SorOrderTestParams::iceberg_qty = std::nullopt |
Used with LIMIT to create an iceberg order.
| std::optional<std::int64_t> binance::spot::websocket_api::SorOrderTestParams::strategy_id = std::nullopt |
| std::optional<std::int64_t> binance::spot::websocket_api::SorOrderTestParams::strategy_type = std::nullopt |
The value cannot be less than 1000000.
| std::optional<SorOrderTestSelfTradePreventionModeEnum> binance::spot::websocket_api::SorOrderTestParams::self_trade_prevention_mode |
The allowed enums is dependent on what is configured on the symbol.
Supported values: STP Modes
| std::optional<common::Decimal> binance::spot::websocket_api::SorOrderTestParams::recv_window = std::nullopt |
Supports up to three decimal places of precision (e.g., 6000.346) so that microseconds may be specified.