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

#include <trade_api.hpp>

Public Attributes

common::Required< std::string > symbol
common::Required< OrderPlaceSideEnum > side
common::Required< OrderPlaceTypeEnum > type
std::optional< std::string > id = std::nullopt
 Client-generated request identifier.
std::optional< OrderPlaceTimeInForceEnum > 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< OrderPlaceNewOrderRespTypeEnum > new_order_resp_type = std::nullopt
 MARKET and LIMIT order types default to FULL, all other orders default to ACK.
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< OrderPlaceSelfTradePreventionModeEnum > self_trade_prevention_mode = std::nullopt
 The allowed enums is dependent on what is configured on the symbol.
std::optional< OrderPlacePegPriceTypeEnum > peg_price_type = std::nullopt
 See Pegged Orders Info.
std::optional< std::int64_t > peg_offset_value = std::nullopt
 Price level to peg the price to (max: 100). See Pegged Orders Info.
std::optional< OrderPlacePegOffsetTypeEnum > peg_offset_type = std::nullopt
 Only PRICE_LEVEL is supported. See Pegged Orders Info.
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::OrderPlaceParams::symbol

◆ side

common::Required<OrderPlaceSideEnum> binance::spot::websocket_api::OrderPlaceParams::side

◆ type

common::Required<OrderPlaceTypeEnum> binance::spot::websocket_api::OrderPlaceParams::type

◆ id

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

Client-generated request identifier.

◆ time_in_force

std::optional<OrderPlaceTimeInForceEnum> binance::spot::websocket_api::OrderPlaceParams::time_in_force = std::nullopt

◆ price

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

◆ quantity

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

◆ quote_order_qty

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

◆ new_client_order_id

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

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

◆ stop_price

std::optional<common::Decimal> binance::spot::websocket_api::OrderPlaceParams::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::OrderPlaceParams::trailing_delta = std::nullopt

See Trailing Stop order FAQ.

◆ iceberg_qty

std::optional<common::Decimal> binance::spot::websocket_api::OrderPlaceParams::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::OrderPlaceParams::strategy_id = std::nullopt

◆ strategy_type

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

The value cannot be less than 1000000.

◆ self_trade_prevention_mode

std::optional<OrderPlaceSelfTradePreventionModeEnum> binance::spot::websocket_api::OrderPlaceParams::self_trade_prevention_mode = std::nullopt

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

◆ peg_price_type

std::optional<OrderPlacePegPriceTypeEnum> binance::spot::websocket_api::OrderPlaceParams::peg_price_type = std::nullopt

See Pegged Orders Info.

◆ peg_offset_value

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

Price level to peg the price to (max: 100). See Pegged Orders Info.

◆ peg_offset_type

std::optional<OrderPlacePegOffsetTypeEnum> binance::spot::websocket_api::OrderPlaceParams::peg_offset_type = std::nullopt

Only PRICE_LEVEL is supported. See Pegged Orders Info.

◆ quote_notional_limit

std::optional<common::Decimal> binance::spot::websocket_api::OrderPlaceParams::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::OrderPlaceParams::recv_window = std::nullopt

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