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

#include <trade_api.hpp>

Public Attributes

common::Required< std::string > symbol
std::optional< std::string > id = std::nullopt
 Client-generated request identifier.
std::optional< std::int64_t > order_id = std::nullopt
std::optional< std::string > orig_client_order_id = std::nullopt
std::optional< std::string > new_client_order_id = std::nullopt
 Used to uniquely identify this cancel. Automatically generated by default.
std::optional< OrderCancelCancelRestrictionsEnum > cancel_restrictions = std::nullopt
 Supported values: ONLY_NEW - Cancel will succeed if the order status is NEW.
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::OrderCancelParams::symbol

◆ id

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

Client-generated request identifier.

◆ order_id

std::optional<std::int64_t> binance::spot::websocket_api::OrderCancelParams::order_id = std::nullopt

◆ orig_client_order_id

std::optional<std::string> binance::spot::websocket_api::OrderCancelParams::orig_client_order_id = std::nullopt

◆ new_client_order_id

std::optional<std::string> binance::spot::websocket_api::OrderCancelParams::new_client_order_id = std::nullopt

Used to uniquely identify this cancel. Automatically generated by default.

◆ cancel_restrictions

std::optional<OrderCancelCancelRestrictionsEnum> binance::spot::websocket_api::OrderCancelParams::cancel_restrictions = std::nullopt

Supported values: ONLY_NEW - Cancel will succeed if the order status is NEW.

ONLY_PARTIALLY_FILLED - Cancel will succeed if order status is PARTIALLY_FILLED. For more information please refer to Regarding cancelRestrictions.

◆ recv_window

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

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