|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
#include <trade_api.hpp>
Public Attributes | |
| common::Required< std::string > | symbol |
| common::Required< OrderCancelReplaceSideEnum > | side |
| common::Required< OrderCancelReplaceTypeEnum > | type |
| common::Required< OrderCancelReplaceCancelReplaceModeEnum > | cancel_replace_mode |
| The allowed values are: STOP_ON_FAILURE - If the cancel request fails, the new order placement will not be attempted. | |
| std::optional< OrderCancelReplaceTimeInForceEnum > | time_in_force = std::nullopt |
| std::optional< common::Decimal > | quantity = std::nullopt |
| std::optional< common::Decimal > | quote_order_qty = std::nullopt |
| std::optional< common::Decimal > | price = std::nullopt |
| std::optional< std::string > | cancel_new_client_order_id = std::nullopt |
| Used to uniquely identify this cancel. Automatically generated by default. | |
| std::optional< std::string > | cancel_orig_client_order_id = std::nullopt |
| Either cancelOrderId or cancelOrigClientOrderId must be sent. | |
| std::optional< std::int64_t > | cancel_order_id = std::nullopt |
| Either cancelOrderId or cancelOrigClientOrderId must be sent. | |
| std::optional< std::string > | new_client_order_id = std::nullopt |
| Used to identify the new 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< common::Decimal > | stop_price = std::nullopt |
| std::optional< std::int64_t > | trailing_delta = std::nullopt |
| See Trailing Stop order FAQ. | |
| std::optional< common::Decimal > | iceberg_qty = std::nullopt |
| std::optional< OrderCancelReplaceNewOrderRespTypeEnum > | new_order_resp_type = std::nullopt |
| Allowed values: ACK, RESULT, FULL MARKET and LIMIT orders types default to FULL; all other orders default to ACK. | |
| std::optional< OrderCancelReplaceSelfTradePreventionModeEnum > | self_trade_prevention_mode |
| The allowed enums is dependent on what is configured on the symbol. | |
| std::optional< OrderCancelReplaceCancelRestrictionsEnum > | cancel_restrictions = std::nullopt |
| Supported values: ONLY_NEW - Cancel will succeed if the order status is NEW. | |
| std::optional< OrderCancelReplaceOrderRateLimitExceededModeEnum > | order_rate_limit_exceeded_mode |
| Supported values: DO_NOTHING (default)- will only attempt to cancel the order if account has not exceeded the unfilled order rate limit CANCEL_ONLY - will always cancel the order. | |
| std::optional< OrderCancelReplacePegPriceTypeEnum > | 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 to peg the price to (max: 100) See Pegged Orders. | |
| std::optional< OrderCancelReplacePegOffsetTypeEnum > | peg_offset_type = std::nullopt |
| Only PRICE_LEVEL is supported See Pegged Orders. | |
| std::optional< common::Decimal > | quote_notional_limit = std::nullopt |
| For replacement 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. | |
| common::Required<std::string> binance::spot::rest_api::OrderCancelReplaceParams::symbol |
| common::Required<OrderCancelReplaceSideEnum> binance::spot::rest_api::OrderCancelReplaceParams::side |
| common::Required<OrderCancelReplaceTypeEnum> binance::spot::rest_api::OrderCancelReplaceParams::type |
| common::Required<OrderCancelReplaceCancelReplaceModeEnum> binance::spot::rest_api::OrderCancelReplaceParams::cancel_replace_mode |
The allowed values are: STOP_ON_FAILURE - If the cancel request fails, the new order placement will not be attempted.
ALLOW_FAILURE - new order placement will be attempted even if cancel request fails.
| std::optional<OrderCancelReplaceTimeInForceEnum> binance::spot::rest_api::OrderCancelReplaceParams::time_in_force = std::nullopt |
| std::optional<common::Decimal> binance::spot::rest_api::OrderCancelReplaceParams::quantity = std::nullopt |
| std::optional<common::Decimal> binance::spot::rest_api::OrderCancelReplaceParams::quote_order_qty = std::nullopt |
| std::optional<common::Decimal> binance::spot::rest_api::OrderCancelReplaceParams::price = std::nullopt |
| std::optional<std::string> binance::spot::rest_api::OrderCancelReplaceParams::cancel_new_client_order_id = std::nullopt |
Used to uniquely identify this cancel. Automatically generated by default.
| std::optional<std::string> binance::spot::rest_api::OrderCancelReplaceParams::cancel_orig_client_order_id = std::nullopt |
Either cancelOrderId or cancelOrigClientOrderId must be sent.
If both cancelOrderId and cancelOrigClientOrderId parameters are provided, the cancelOrderId is searched first, then the cancelOrigClientOrderId from that result is checked against that order.
If both conditions are not met the request will be rejected.
| std::optional<std::int64_t> binance::spot::rest_api::OrderCancelReplaceParams::cancel_order_id = std::nullopt |
Either cancelOrderId or cancelOrigClientOrderId must be sent.
If both cancelOrderId and cancelOrigClientOrderId parameters are provided, the cancelOrderId is searched first, then the cancelOrigClientOrderId from that result is checked against that order.
If both conditions are not met the request will be rejected.
| std::optional<std::string> binance::spot::rest_api::OrderCancelReplaceParams::new_client_order_id = std::nullopt |
Used to identify the new order.
| std::optional<std::int64_t> binance::spot::rest_api::OrderCancelReplaceParams::strategy_id = std::nullopt |
| std::optional<std::int64_t> binance::spot::rest_api::OrderCancelReplaceParams::strategy_type = std::nullopt |
The value cannot be less than 1000000.
| std::optional<common::Decimal> binance::spot::rest_api::OrderCancelReplaceParams::stop_price = std::nullopt |
| std::optional<std::int64_t> binance::spot::rest_api::OrderCancelReplaceParams::trailing_delta = std::nullopt |
See Trailing Stop order FAQ.
| std::optional<common::Decimal> binance::spot::rest_api::OrderCancelReplaceParams::iceberg_qty = std::nullopt |
| std::optional<OrderCancelReplaceNewOrderRespTypeEnum> binance::spot::rest_api::OrderCancelReplaceParams::new_order_resp_type = std::nullopt |
Allowed values: ACK, RESULT, FULL MARKET and LIMIT orders types default to FULL; all other orders default to ACK.
| std::optional<OrderCancelReplaceSelfTradePreventionModeEnum> binance::spot::rest_api::OrderCancelReplaceParams::self_trade_prevention_mode |
The allowed enums is dependent on what is configured on the symbol.
The possible supported values are: STP Modes.
| std::optional<OrderCancelReplaceCancelRestrictionsEnum> binance::spot::rest_api::OrderCancelReplaceParams::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.
| std::optional<OrderCancelReplaceOrderRateLimitExceededModeEnum> binance::spot::rest_api::OrderCancelReplaceParams::order_rate_limit_exceeded_mode |
Supported values: DO_NOTHING (default)- will only attempt to cancel the order if account has not exceeded the unfilled order rate limit CANCEL_ONLY - will always cancel the order.
| std::optional<OrderCancelReplacePegPriceTypeEnum> binance::spot::rest_api::OrderCancelReplaceParams::peg_price_type = std::nullopt |
PRIMARY_PEG or MARKET_PEG See Pegged Orders
| std::optional<std::int64_t> binance::spot::rest_api::OrderCancelReplaceParams::peg_offset_value = std::nullopt |
Price level to peg the price to (max: 100) See Pegged Orders.
| std::optional<OrderCancelReplacePegOffsetTypeEnum> binance::spot::rest_api::OrderCancelReplaceParams::peg_offset_type = std::nullopt |
Only PRICE_LEVEL is supported See Pegged Orders.
| std::optional<common::Decimal> binance::spot::rest_api::OrderCancelReplaceParams::quote_notional_limit = std::nullopt |
For replacement orders on the BUY side only.
Maximum quote-asset notional the replacement order may consume. See Quote Notional Limit.
| std::optional<common::Decimal> binance::spot::rest_api::OrderCancelReplaceParams::recv_window = std::nullopt |
Supports up to three decimal places of precision (e.g., 6000.346) so that microseconds may be specified.