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

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

Member Data Documentation

◆ symbol

common::Required<std::string> binance::spot::rest_api::SorOrderParams::symbol

◆ side

common::Required<SorOrderSideEnum> binance::spot::rest_api::SorOrderParams::side

◆ type

common::Required<SorOrderTypeEnum> binance::spot::rest_api::SorOrderParams::type

◆ quantity

common::Required<common::Decimal> binance::spot::rest_api::SorOrderParams::quantity

◆ time_in_force

std::optional<SorOrderTimeInForceEnum> binance::spot::rest_api::SorOrderParams::time_in_force = std::nullopt

◆ price

std::optional<common::Decimal> binance::spot::rest_api::SorOrderParams::price = std::nullopt

◆ new_client_order_id

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.

◆ strategy_id

std::optional<std::int64_t> binance::spot::rest_api::SorOrderParams::strategy_id = std::nullopt

◆ strategy_type

std::optional<std::int64_t> binance::spot::rest_api::SorOrderParams::strategy_type = std::nullopt

The value cannot be less than 1000000.

◆ iceberg_qty

std::optional<common::Decimal> binance::spot::rest_api::SorOrderParams::iceberg_qty = std::nullopt

Used with LIMIT to create an iceberg order.

◆ new_order_resp_type

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.

◆ self_trade_prevention_mode

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.

◆ recv_window

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.