|
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< SorOrderPlaceSideEnum > | side |
| BUY or SELL | |
| common::Required< SorOrderPlaceTypeEnum > | type |
| Only LIMIT and MARKET orders are supported. | |
| common::Required< common::Decimal > | quantity |
| std::optional< std::string > | id = std::nullopt |
| Client-generated request identifier. | |
| std::optional< SorOrderPlaceTimeInForceEnum > | time_in_force = std::nullopt |
| Applicable only to LIMIT order type. | |
| 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< SorOrderPlaceNewOrderRespTypeEnum > | 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< SorOrderPlaceSelfTradePreventionModeEnum > | 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::SorOrderPlaceParams::symbol |
| common::Required<SorOrderPlaceSideEnum> binance::spot::websocket_api::SorOrderPlaceParams::side |
BUY or SELL
| common::Required<SorOrderPlaceTypeEnum> binance::spot::websocket_api::SorOrderPlaceParams::type |
Only LIMIT and MARKET orders are supported.
| common::Required<common::Decimal> binance::spot::websocket_api::SorOrderPlaceParams::quantity |
| std::optional<std::string> binance::spot::websocket_api::SorOrderPlaceParams::id = std::nullopt |
Client-generated request identifier.
| std::optional<SorOrderPlaceTimeInForceEnum> binance::spot::websocket_api::SorOrderPlaceParams::time_in_force = std::nullopt |
Applicable only to LIMIT order type.
| std::optional<common::Decimal> binance::spot::websocket_api::SorOrderPlaceParams::price = std::nullopt |
| std::optional<std::string> binance::spot::websocket_api::SorOrderPlaceParams::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<SorOrderPlaceNewOrderRespTypeEnum> binance::spot::websocket_api::SorOrderPlaceParams::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::SorOrderPlaceParams::iceberg_qty = std::nullopt |
Used with LIMIT to create an iceberg order.
| std::optional<std::int64_t> binance::spot::websocket_api::SorOrderPlaceParams::strategy_id = std::nullopt |
| std::optional<std::int64_t> binance::spot::websocket_api::SorOrderPlaceParams::strategy_type = std::nullopt |
The value cannot be less than 1000000.
| std::optional<SorOrderPlaceSelfTradePreventionModeEnum> binance::spot::websocket_api::SorOrderPlaceParams::self_trade_prevention_mode |
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::websocket_api::SorOrderPlaceParams::recv_window = std::nullopt |
Supports up to three decimal places of precision (e.g., 6000.346) so that microseconds may be specified.