Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
Loading...
Searching...
No Matches
binance::spot::websocket_api::SorOrderPlaceParams Struct Reference

#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.

Member Data Documentation

◆ symbol

common::Required<std::string> binance::spot::websocket_api::SorOrderPlaceParams::symbol

◆ side

common::Required<SorOrderPlaceSideEnum> binance::spot::websocket_api::SorOrderPlaceParams::side

BUY or SELL

◆ type

common::Required<SorOrderPlaceTypeEnum> binance::spot::websocket_api::SorOrderPlaceParams::type

Only LIMIT and MARKET orders are supported.

◆ quantity

common::Required<common::Decimal> binance::spot::websocket_api::SorOrderPlaceParams::quantity

◆ id

std::optional<std::string> binance::spot::websocket_api::SorOrderPlaceParams::id = std::nullopt

Client-generated request identifier.

◆ time_in_force

std::optional<SorOrderPlaceTimeInForceEnum> binance::spot::websocket_api::SorOrderPlaceParams::time_in_force = std::nullopt

Applicable only to LIMIT order type.

◆ price

std::optional<common::Decimal> binance::spot::websocket_api::SorOrderPlaceParams::price = std::nullopt

◆ new_client_order_id

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.

◆ new_order_resp_type

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.

◆ iceberg_qty

std::optional<common::Decimal> binance::spot::websocket_api::SorOrderPlaceParams::iceberg_qty = std::nullopt

Used with LIMIT to create an iceberg order.

◆ strategy_id

std::optional<std::int64_t> binance::spot::websocket_api::SorOrderPlaceParams::strategy_id = std::nullopt

◆ strategy_type

std::optional<std::int64_t> binance::spot::websocket_api::SorOrderPlaceParams::strategy_type = std::nullopt

The value cannot be less than 1000000.

◆ self_trade_prevention_mode

std::optional<SorOrderPlaceSelfTradePreventionModeEnum> binance::spot::websocket_api::SorOrderPlaceParams::self_trade_prevention_mode
Initial value:
=
std::nullopt

The allowed enums is dependent on what is configured on the symbol.

The possible supported values are: STP Modes.

◆ recv_window

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.