|
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< OrderListOtocoWorkingTypeEnum > | working_type |
| Supported values: LIMIT, LIMIT_MAKER. | |
| common::Required< OrderListOtocoWorkingSideEnum > | working_side |
| Supported values: Order Side. | |
| common::Required< common::Decimal > | working_price |
| common::Required< common::Decimal > | working_quantity |
| Sets the quantity for the working order. | |
| common::Required< OrderListOtocoPendingSideEnum > | pending_side |
| Supported values: Order Side. | |
| common::Required< common::Decimal > | pending_quantity |
| Sets the quantity for the pending orders. | |
| common::Required< OrderListOtocoPendingAboveTypeEnum > | pending_above_type |
| Supported values: STOP_LOSS_LIMIT, STOP_LOSS, LIMIT_MAKER, TAKE_PROFIT, TAKE_PROFIT_LIMIT. | |
| std::optional< std::string > | list_client_order_id = std::nullopt |
| Arbitrary unique ID among open order lists. | |
| std::optional< OrderListOtocoNewOrderRespTypeEnum > | new_order_resp_type = std::nullopt |
| Format of the JSON response. Supported values: Order Response Type. | |
| std::optional< OrderListOtocoSelfTradePreventionModeEnum > | self_trade_prevention_mode |
| The allowed enums is dependent on what is configured on the symbol. | |
| std::optional< std::string > | working_client_order_id = std::nullopt |
| Arbitrary unique ID among open orders for the working order. | |
| std::optional< common::Decimal > | working_iceberg_qty = std::nullopt |
| This can only be used if workingTimeInForce is GTC, or if workingType is LIMIT_MAKER. | |
| std::optional< OrderListOtocoWorkingTimeInForceEnum > | working_time_in_force = std::nullopt |
| Supported values: Time In Force. | |
| std::optional< std::int64_t > | working_strategy_id = std::nullopt |
| Arbitrary numeric value identifying the working order within an order strategy. | |
| std::optional< std::int64_t > | working_strategy_type = std::nullopt |
| Arbitrary numeric value identifying the working order strategy. | |
| std::optional< OrderListOtocoWorkingPegPriceTypeEnum > | working_peg_price_type = std::nullopt |
| See Pegged Orders. | |
| std::optional< OrderListOtocoWorkingPegOffsetTypeEnum > | working_peg_offset_type = std::nullopt |
| std::optional< std::int64_t > | working_peg_offset_value = std::nullopt |
| std::optional< std::string > | pending_above_client_order_id = std::nullopt |
| Arbitrary unique ID among open orders for the pending above order. | |
| std::optional< common::Decimal > | pending_above_price = std::nullopt |
| Can be used if pendingAboveType is STOP_LOSS_LIMIT, LIMIT_MAKER, or TAKE_PROFIT_LIMIT to specify the limit price. | |
| std::optional< common::Decimal > | pending_above_stop_price = std::nullopt |
| Can be used if pendingAboveType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT. | |
| std::optional< common::Decimal > | pending_above_trailing_delta = std::nullopt |
| See Trailing Stop order FAQ. | |
| std::optional< common::Decimal > | pending_above_iceberg_qty = std::nullopt |
| This can only be used if pendingAboveTimeInForce is GTC or if pendingAboveType is LIMIT_MAKER. | |
| std::optional< OrderListOtocoPendingAboveTimeInForceEnum > | pending_above_time_in_force |
| Required if pendingAboveType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT. | |
| std::optional< std::int64_t > | pending_above_strategy_id = std::nullopt |
| Arbitrary numeric value identifying the pending above order within an order strategy. | |
| std::optional< std::int64_t > | pending_above_strategy_type = std::nullopt |
| Arbitrary numeric value identifying the pending above order strategy. | |
| std::optional< OrderListOtocoPendingAbovePegPriceTypeEnum > | pending_above_peg_price_type |
| See Pegged Orders. | |
| std::optional< OrderListOtocoPendingAbovePegOffsetTypeEnum > | pending_above_peg_offset_type |
| std::optional< std::int64_t > | pending_above_peg_offset_value = std::nullopt |
| std::optional< OrderListOtocoPendingBelowTypeEnum > | pending_below_type = std::nullopt |
| Supported values: STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT. | |
| std::optional< std::string > | pending_below_client_order_id = std::nullopt |
| Arbitrary unique ID among open orders for the pending below order. | |
| std::optional< common::Decimal > | pending_below_price = std::nullopt |
| Can be used if pendingBelowType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT to specify the limit price. | |
| std::optional< common::Decimal > | pending_below_stop_price = std::nullopt |
| Can be used if pendingBelowType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT. | |
| std::optional< common::Decimal > | pending_below_trailing_delta = std::nullopt |
| See Trailing Stop order FAQ. | |
| std::optional< common::Decimal > | pending_below_iceberg_qty = std::nullopt |
| This can only be used if pendingBelowTimeInForce is GTC, or if pendingBelowType is LIMIT_MAKER. | |
| std::optional< OrderListOtocoPendingBelowTimeInForceEnum > | pending_below_time_in_force |
| Required if pendingBelowType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT. | |
| std::optional< std::int64_t > | pending_below_strategy_id = std::nullopt |
| Arbitrary numeric value identifying the pending below order within an order strategy. | |
| std::optional< std::int64_t > | pending_below_strategy_type = std::nullopt |
| Arbitrary numeric value identifying the pending below order strategy. | |
| std::optional< OrderListOtocoPendingBelowPegPriceTypeEnum > | pending_below_peg_price_type |
| See Pegged Orders. | |
| std::optional< OrderListOtocoPendingBelowPegOffsetTypeEnum > | pending_below_peg_offset_type |
| std::optional< std::int64_t > | pending_below_peg_offset_value = std::nullopt |
| std::optional< common::Decimal > | working_quote_notional_limit = std::nullopt |
| Quote notional limit for the working order (only for orders on the BUY side). | |
| std::optional< common::Decimal > | pending_above_quote_notional_limit = std::nullopt |
| Quote notional limit for the pending above order (only for orders on the BUY side). | |
| std::optional< common::Decimal > | pending_below_quote_notional_limit = std::nullopt |
| Quote notional limit for the pending below order (only for orders on the BUY side). | |
| std::optional< common::Decimal > | recv_window = std::nullopt |
| The value cannot be greater than 60000. | |
| common::Required<std::string> binance::spot::rest_api::OrderListOtocoParams::symbol |
| common::Required<OrderListOtocoWorkingTypeEnum> binance::spot::rest_api::OrderListOtocoParams::working_type |
Supported values: LIMIT, LIMIT_MAKER.
| common::Required<OrderListOtocoWorkingSideEnum> binance::spot::rest_api::OrderListOtocoParams::working_side |
Supported values: Order Side.
| common::Required<common::Decimal> binance::spot::rest_api::OrderListOtocoParams::working_price |
| common::Required<common::Decimal> binance::spot::rest_api::OrderListOtocoParams::working_quantity |
Sets the quantity for the working order.
| common::Required<OrderListOtocoPendingSideEnum> binance::spot::rest_api::OrderListOtocoParams::pending_side |
Supported values: Order Side.
| common::Required<common::Decimal> binance::spot::rest_api::OrderListOtocoParams::pending_quantity |
Sets the quantity for the pending orders.
| common::Required<OrderListOtocoPendingAboveTypeEnum> binance::spot::rest_api::OrderListOtocoParams::pending_above_type |
Supported values: STOP_LOSS_LIMIT, STOP_LOSS, LIMIT_MAKER, TAKE_PROFIT, TAKE_PROFIT_LIMIT.
| std::optional<std::string> binance::spot::rest_api::OrderListOtocoParams::list_client_order_id = std::nullopt |
Arbitrary unique ID among open order lists.
Automatically generated if not sent. A new order list with the same listClientOrderId is accepted only when the previous one is filled or completely expired. listClientOrderId is distinct from the workingClientOrderId, pendingAboveClientOrderId, and the pendingBelowClientOrderId.
| std::optional<OrderListOtocoNewOrderRespTypeEnum> binance::spot::rest_api::OrderListOtocoParams::new_order_resp_type = std::nullopt |
Format of the JSON response. Supported values: Order Response Type.
| std::optional<OrderListOtocoSelfTradePreventionModeEnum> binance::spot::rest_api::OrderListOtocoParams::self_trade_prevention_mode |
The allowed enums is dependent on what is configured on the symbol.
Supported values: STP Modes
| std::optional<std::string> binance::spot::rest_api::OrderListOtocoParams::working_client_order_id = std::nullopt |
Arbitrary unique ID among open orders for the working order.
Automatically generated if not sent.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOtocoParams::working_iceberg_qty = std::nullopt |
This can only be used if workingTimeInForce is GTC, or if workingType is LIMIT_MAKER.
| std::optional<OrderListOtocoWorkingTimeInForceEnum> binance::spot::rest_api::OrderListOtocoParams::working_time_in_force = std::nullopt |
Supported values: Time In Force.
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOtocoParams::working_strategy_id = std::nullopt |
Arbitrary numeric value identifying the working order within an order strategy.
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOtocoParams::working_strategy_type = std::nullopt |
Arbitrary numeric value identifying the working order strategy.
Values smaller than 1000000 are reserved and cannot be used.
| std::optional<OrderListOtocoWorkingPegPriceTypeEnum> binance::spot::rest_api::OrderListOtocoParams::working_peg_price_type = std::nullopt |
See Pegged Orders.
| std::optional<OrderListOtocoWorkingPegOffsetTypeEnum> binance::spot::rest_api::OrderListOtocoParams::working_peg_offset_type = std::nullopt |
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOtocoParams::working_peg_offset_value = std::nullopt |
| std::optional<std::string> binance::spot::rest_api::OrderListOtocoParams::pending_above_client_order_id = std::nullopt |
Arbitrary unique ID among open orders for the pending above order.
Automatically generated if not sent.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOtocoParams::pending_above_price = std::nullopt |
Can be used if pendingAboveType is STOP_LOSS_LIMIT, LIMIT_MAKER, or TAKE_PROFIT_LIMIT to specify the limit price.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOtocoParams::pending_above_stop_price = std::nullopt |
Can be used if pendingAboveType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOtocoParams::pending_above_trailing_delta = std::nullopt |
See Trailing Stop order FAQ.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOtocoParams::pending_above_iceberg_qty = std::nullopt |
This can only be used if pendingAboveTimeInForce is GTC or if pendingAboveType is LIMIT_MAKER.
| std::optional<OrderListOtocoPendingAboveTimeInForceEnum> binance::spot::rest_api::OrderListOtocoParams::pending_above_time_in_force |
Required if pendingAboveType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT.
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOtocoParams::pending_above_strategy_id = std::nullopt |
Arbitrary numeric value identifying the pending above order within an order strategy.
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOtocoParams::pending_above_strategy_type = std::nullopt |
Arbitrary numeric value identifying the pending above order strategy.
Values smaller than 1000000 are reserved and cannot be used.
| std::optional<OrderListOtocoPendingAbovePegPriceTypeEnum> binance::spot::rest_api::OrderListOtocoParams::pending_above_peg_price_type |
See Pegged Orders.
| std::optional<OrderListOtocoPendingAbovePegOffsetTypeEnum> binance::spot::rest_api::OrderListOtocoParams::pending_above_peg_offset_type |
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOtocoParams::pending_above_peg_offset_value = std::nullopt |
| std::optional<OrderListOtocoPendingBelowTypeEnum> binance::spot::rest_api::OrderListOtocoParams::pending_below_type = std::nullopt |
Supported values: STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT.
| std::optional<std::string> binance::spot::rest_api::OrderListOtocoParams::pending_below_client_order_id = std::nullopt |
Arbitrary unique ID among open orders for the pending below order.
Automatically generated if not sent.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOtocoParams::pending_below_price = std::nullopt |
Can be used if pendingBelowType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT to specify the limit price.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOtocoParams::pending_below_stop_price = std::nullopt |
Can be used if pendingBelowType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT.
Either pendingBelowStopPrice or pendingBelowTrailingDelta or both, must be specified.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOtocoParams::pending_below_trailing_delta = std::nullopt |
See Trailing Stop order FAQ.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOtocoParams::pending_below_iceberg_qty = std::nullopt |
This can only be used if pendingBelowTimeInForce is GTC, or if pendingBelowType is LIMIT_MAKER.
| std::optional<OrderListOtocoPendingBelowTimeInForceEnum> binance::spot::rest_api::OrderListOtocoParams::pending_below_time_in_force |
Required if pendingBelowType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT.
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOtocoParams::pending_below_strategy_id = std::nullopt |
Arbitrary numeric value identifying the pending below order within an order strategy.
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOtocoParams::pending_below_strategy_type = std::nullopt |
Arbitrary numeric value identifying the pending below order strategy.
Values smaller than 1000000 are reserved and cannot be used.
| std::optional<OrderListOtocoPendingBelowPegPriceTypeEnum> binance::spot::rest_api::OrderListOtocoParams::pending_below_peg_price_type |
See Pegged Orders.
| std::optional<OrderListOtocoPendingBelowPegOffsetTypeEnum> binance::spot::rest_api::OrderListOtocoParams::pending_below_peg_offset_type |
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOtocoParams::pending_below_peg_offset_value = std::nullopt |
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOtocoParams::working_quote_notional_limit = std::nullopt |
Quote notional limit for the working order (only for orders on the BUY side).
See Quote Notional Limit.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOtocoParams::pending_above_quote_notional_limit = std::nullopt |
Quote notional limit for the pending above order (only for orders on the BUY side).
See Quote Notional Limit.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOtocoParams::pending_below_quote_notional_limit = std::nullopt |
Quote notional limit for the pending below order (only for orders on the BUY side).
See Quote Notional Limit.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOtocoParams::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.