|
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< OrderListOpocoWorkingTypeEnum > | working_type |
| Supported values: LIMIT, LIMIT_MAKER. | |
| common::Required< OrderListOpocoWorkingSideEnum > | working_side |
| Supported values: Order Side. | |
| common::Required< common::Decimal > | working_price |
| Price for the working order. | |
| common::Required< common::Decimal > | working_quantity |
| Sets the quantity for the working order. | |
| common::Required< OrderListOpocoPendingSideEnum > | pending_side |
| Supported values: Order Side. | |
| common::Required< OrderListOpocoPendingAboveTypeEnum > | 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< OrderListOpocoNewOrderRespTypeEnum > | new_order_resp_type = std::nullopt |
| Format of the JSON response. Supported values: Order Response Type. | |
| std::optional< OrderListOpocoSelfTradePreventionModeEnum > | 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< OrderListOpocoWorkingTimeInForceEnum > | 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< OrderListOpocoWorkingPegPriceTypeEnum > | working_peg_price_type = std::nullopt |
| See Pegged Orders. | |
| std::optional< OrderListOpocoWorkingPegOffsetTypeEnum > | working_peg_offset_type = std::nullopt |
| See Pegged Orders. | |
| std::optional< std::int64_t > | working_peg_offset_value = std::nullopt |
| Price level for pegging (max: 100). See Pegged Orders. | |
| 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 pendingAboveType is LIMIT_MAKER. | |
| std::optional< OrderListOpocoPendingAboveTimeInForceEnum > | 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< OrderListOpocoPendingAbovePegPriceTypeEnum > | pending_above_peg_price_type |
| See Pegged Orders. | |
| std::optional< OrderListOpocoPendingAbovePegOffsetTypeEnum > | pending_above_peg_offset_type |
| See Pegged Orders. | |
| std::optional< std::int64_t > | pending_above_peg_offset_value = std::nullopt |
| Price level for pegging (max: 100). See Pegged Orders. | |
| std::optional< OrderListOpocoPendingBelowTypeEnum > | 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 pendingBelowType is LIMIT_MAKER. | |
| std::optional< OrderListOpocoPendingBelowTimeInForceEnum > | pending_below_time_in_force |
| Supported values: Time In Force. | |
| 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< OrderListOpocoPendingBelowPegPriceTypeEnum > | pending_below_peg_price_type |
| See Pegged Orders. | |
| std::optional< OrderListOpocoPendingBelowPegOffsetTypeEnum > | 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 LIMIT order on the BUY side. See Quote Notional Limit. | |
| std::optional< common::Decimal > | recv_window = std::nullopt |
| The value cannot be greater than 60000. | |
| common::Required<std::string> binance::spot::rest_api::OrderListOpocoParams::symbol |
| common::Required<OrderListOpocoWorkingTypeEnum> binance::spot::rest_api::OrderListOpocoParams::working_type |
Supported values: LIMIT, LIMIT_MAKER.
| common::Required<OrderListOpocoWorkingSideEnum> binance::spot::rest_api::OrderListOpocoParams::working_side |
Supported values: Order Side.
| common::Required<common::Decimal> binance::spot::rest_api::OrderListOpocoParams::working_price |
Price for the working order.
| common::Required<common::Decimal> binance::spot::rest_api::OrderListOpocoParams::working_quantity |
Sets the quantity for the working order.
| common::Required<OrderListOpocoPendingSideEnum> binance::spot::rest_api::OrderListOpocoParams::pending_side |
Supported values: Order Side.
| common::Required<OrderListOpocoPendingAboveTypeEnum> binance::spot::rest_api::OrderListOpocoParams::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::OrderListOpocoParams::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<OrderListOpocoNewOrderRespTypeEnum> binance::spot::rest_api::OrderListOpocoParams::new_order_resp_type = std::nullopt |
Format of the JSON response. Supported values: Order Response Type.
| std::optional<OrderListOpocoSelfTradePreventionModeEnum> binance::spot::rest_api::OrderListOpocoParams::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::OrderListOpocoParams::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::OrderListOpocoParams::working_iceberg_qty = std::nullopt |
This can only be used if workingTimeInForce is GTC, or if workingType is LIMIT_MAKER.
| std::optional<OrderListOpocoWorkingTimeInForceEnum> binance::spot::rest_api::OrderListOpocoParams::working_time_in_force = std::nullopt |
Supported values: Time In Force.
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOpocoParams::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::OrderListOpocoParams::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<OrderListOpocoWorkingPegPriceTypeEnum> binance::spot::rest_api::OrderListOpocoParams::working_peg_price_type = std::nullopt |
See Pegged Orders.
| std::optional<OrderListOpocoWorkingPegOffsetTypeEnum> binance::spot::rest_api::OrderListOpocoParams::working_peg_offset_type = std::nullopt |
See Pegged Orders.
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOpocoParams::working_peg_offset_value = std::nullopt |
Price level for pegging (max: 100). See Pegged Orders.
| std::optional<std::string> binance::spot::rest_api::OrderListOpocoParams::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::OrderListOpocoParams::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::OrderListOpocoParams::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::OrderListOpocoParams::pending_above_trailing_delta = std::nullopt |
See Trailing Stop order FAQ.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOpocoParams::pending_above_iceberg_qty = std::nullopt |
This can only be used if pendingAboveTimeInForce is GTC or pendingAboveType is LIMIT_MAKER.
| std::optional<OrderListOpocoPendingAboveTimeInForceEnum> binance::spot::rest_api::OrderListOpocoParams::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::OrderListOpocoParams::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::OrderListOpocoParams::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<OrderListOpocoPendingAbovePegPriceTypeEnum> binance::spot::rest_api::OrderListOpocoParams::pending_above_peg_price_type |
See Pegged Orders.
| std::optional<OrderListOpocoPendingAbovePegOffsetTypeEnum> binance::spot::rest_api::OrderListOpocoParams::pending_above_peg_offset_type |
See Pegged Orders.
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOpocoParams::pending_above_peg_offset_value = std::nullopt |
Price level for pegging (max: 100). See Pegged Orders.
| std::optional<OrderListOpocoPendingBelowTypeEnum> binance::spot::rest_api::OrderListOpocoParams::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::OrderListOpocoParams::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::OrderListOpocoParams::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::OrderListOpocoParams::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::OrderListOpocoParams::pending_below_trailing_delta = std::nullopt |
See Trailing Stop order FAQ.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOpocoParams::pending_below_iceberg_qty = std::nullopt |
This can only be used if pendingBelowTimeInForce is GTC or pendingBelowType is LIMIT_MAKER.
| std::optional<OrderListOpocoPendingBelowTimeInForceEnum> binance::spot::rest_api::OrderListOpocoParams::pending_below_time_in_force |
Supported values: Time In Force.
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOpocoParams::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::OrderListOpocoParams::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<OrderListOpocoPendingBelowPegPriceTypeEnum> binance::spot::rest_api::OrderListOpocoParams::pending_below_peg_price_type |
See Pegged Orders.
| std::optional<OrderListOpocoPendingBelowPegOffsetTypeEnum> binance::spot::rest_api::OrderListOpocoParams::pending_below_peg_offset_type |
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOpocoParams::pending_below_peg_offset_value = std::nullopt |
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOpocoParams::working_quote_notional_limit = std::nullopt |
Quote notional limit for the working LIMIT order on the BUY side. See Quote Notional Limit.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOpocoParams::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.