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

#include <trade_api.hpp>

Public Attributes

common::Required< std::string > symbol
common::Required< OrderTestSideEnum > side
common::Required< OrderTestTypeEnum > type
std::optional< std::string > id = std::nullopt
 Client-generated request identifier.
std::optional< bool > compute_commission_rates = std::nullopt
 Default: false See Commissions FAQ to learn more.
std::optional< OrderTestTimeInForceEnum > time_in_force = std::nullopt
std::optional< common::Decimal > price = std::nullopt
std::optional< common::Decimal > quantity = std::nullopt
std::optional< common::Decimal > quote_order_qty = std::nullopt
std::optional< std::string > new_client_order_id = std::nullopt
 A unique id among open orders.
std::optional< OrderTestNewOrderRespTypeEnum > new_order_resp_type = std::nullopt
 Set the response JSON.
std::optional< common::Decimal > stop_price = std::nullopt
 Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.
std::optional< std::int64_t > trailing_delta = std::nullopt
 See Trailing Stop order FAQ.
std::optional< common::Decimal > iceberg_qty = std::nullopt
 Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_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< OrderTestSelfTradePreventionModeEnum > self_trade_prevention_mode = std::nullopt
 The allowed enums is dependent on what is configured on the symbol.
std::optional< OrderTestPegPriceTypeEnum > peg_price_type = std::nullopt
 PRIMARY_PEG or MARKET_PEG. See Pegged Orders
std::optional< std::int64_t > peg_offset_value = std::nullopt
 Price level for pegging (max: 100). See Pegged Orders.
std::optional< OrderTestPegOffsetTypeEnum > peg_offset_type = std::nullopt
 Only PRICE_LEVEL is supported. See Pegged Orders.
std::optional< common::Decimal > quote_notional_limit = std::nullopt
 For orders on the BUY side only.
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::OrderTestParams::symbol

◆ side

common::Required<OrderTestSideEnum> binance::spot::websocket_api::OrderTestParams::side

◆ type

common::Required<OrderTestTypeEnum> binance::spot::websocket_api::OrderTestParams::type

◆ id

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

Client-generated request identifier.

◆ compute_commission_rates

std::optional<bool> binance::spot::websocket_api::OrderTestParams::compute_commission_rates = std::nullopt

Default: false See Commissions FAQ to learn more.

◆ time_in_force

std::optional<OrderTestTimeInForceEnum> binance::spot::websocket_api::OrderTestParams::time_in_force = std::nullopt

◆ price

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

◆ quantity

std::optional<common::Decimal> binance::spot::websocket_api::OrderTestParams::quantity = std::nullopt

◆ quote_order_qty

std::optional<common::Decimal> binance::spot::websocket_api::OrderTestParams::quote_order_qty = std::nullopt

◆ new_client_order_id

std::optional<std::string> binance::spot::websocket_api::OrderTestParams::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<OrderTestNewOrderRespTypeEnum> binance::spot::websocket_api::OrderTestParams::new_order_resp_type = std::nullopt

Set the response JSON.

ACK, RESULT, or FULL; MARKET and LIMIT order types default to FULL, all other orders default to ACK.

◆ stop_price

std::optional<common::Decimal> binance::spot::websocket_api::OrderTestParams::stop_price = std::nullopt

Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.

◆ trailing_delta

std::optional<std::int64_t> binance::spot::websocket_api::OrderTestParams::trailing_delta = std::nullopt

See Trailing Stop order FAQ.

◆ iceberg_qty

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

Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order.

◆ strategy_id

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

◆ strategy_type

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

The value cannot be less than 1000000.

◆ self_trade_prevention_mode

std::optional<OrderTestSelfTradePreventionModeEnum> binance::spot::websocket_api::OrderTestParams::self_trade_prevention_mode = std::nullopt

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

Supported values: STP Modes

◆ peg_price_type

std::optional<OrderTestPegPriceTypeEnum> binance::spot::websocket_api::OrderTestParams::peg_price_type = std::nullopt

PRIMARY_PEG or MARKET_PEG. See Pegged Orders

◆ peg_offset_value

std::optional<std::int64_t> binance::spot::websocket_api::OrderTestParams::peg_offset_value = std::nullopt

Price level for pegging (max: 100). See Pegged Orders.

◆ peg_offset_type

std::optional<OrderTestPegOffsetTypeEnum> binance::spot::websocket_api::OrderTestParams::peg_offset_type = std::nullopt

Only PRICE_LEVEL is supported. See Pegged Orders.

◆ quote_notional_limit

std::optional<common::Decimal> binance::spot::websocket_api::OrderTestParams::quote_notional_limit = std::nullopt

For orders on the BUY side only.

Maximum quote-asset notional the order may consume. See Quote Notional Limit.

◆ recv_window

std::optional<common::Decimal> binance::spot::websocket_api::OrderTestParams::recv_window = std::nullopt

Supports up to three decimal places of precision (e.g., 6000.346) so that microseconds may be specified.