|
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< OrderListPlaceOtocoWorkingTypeEnum > | working_type |
| Supported values: LIMIT, LIMIT_MAKER. | |
| common::Required< OrderListPlaceOtocoWorkingSideEnum > | 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< OrderListPlaceOtocoPendingSideEnum > | pending_side |
| Supported values: Order Side. | |
| common::Required< common::Decimal > | pending_quantity |
| Sets the quantity for the pending orders. | |
| common::Required< OrderListPlaceOtocoPendingAboveTypeEnum > | pending_above_type |
| Supported values: STOP_LOSS_LIMIT, STOP_LOSS, LIMIT_MAKER, TAKE_PROFIT, TAKE_PROFIT_LIMIT. | |
| std::optional< std::string > | id = std::nullopt |
| Client-generated request identifier. | |
| std::optional< std::string > | list_client_order_id = std::nullopt |
| Arbitrary unique ID among open order lists. | |
| std::optional< OrderListPlaceOtocoNewOrderRespTypeEnum > | new_order_resp_type = std::nullopt |
| Format of the JSON response. Supported values: Order Response Type. | |
| std::optional< OrderListPlaceOtocoSelfTradePreventionModeEnum > | 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< OrderListPlaceOtocoWorkingTimeInForceEnum > | 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< OrderListPlaceOtocoWorkingPegPriceTypeEnum > | working_peg_price_type = std::nullopt |
| See Pegged Orders. | |
| std::optional< OrderListPlaceOtocoWorkingPegOffsetTypeEnum > | working_peg_offset_type |
| 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< OrderListPlaceOtocoPendingAboveTimeInForceEnum > | 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< OrderListPlaceOtocoPendingAbovePegPriceTypeEnum > | pending_above_peg_price_type |
| See Pegged Orders. | |
| std::optional< OrderListPlaceOtocoPendingAbovePegOffsetTypeEnum > | pending_above_peg_offset_type |
| std::optional< std::int64_t > | pending_above_peg_offset_value = std::nullopt |
| std::optional< OrderListPlaceOtocoPendingBelowTypeEnum > | 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< OrderListPlaceOtocoPendingBelowTimeInForceEnum > | 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< OrderListPlaceOtocoPendingBelowPegPriceTypeEnum > | pending_below_peg_price_type |
| See Pegged Orders. | |
| std::optional< OrderListPlaceOtocoPendingBelowPegOffsetTypeEnum > | 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 |
| Supports up to three decimal places of precision (e.g., 6000.346) so that microseconds may be specified. | |
| common::Required<std::string> binance::spot::websocket_api::OrderListPlaceOtocoParams::symbol |
| common::Required<OrderListPlaceOtocoWorkingTypeEnum> binance::spot::websocket_api::OrderListPlaceOtocoParams::working_type |
Supported values: LIMIT, LIMIT_MAKER.
| common::Required<OrderListPlaceOtocoWorkingSideEnum> binance::spot::websocket_api::OrderListPlaceOtocoParams::working_side |
Supported values: Order Side.
| common::Required<common::Decimal> binance::spot::websocket_api::OrderListPlaceOtocoParams::working_price |
| common::Required<common::Decimal> binance::spot::websocket_api::OrderListPlaceOtocoParams::working_quantity |
Sets the quantity for the working order.
| common::Required<OrderListPlaceOtocoPendingSideEnum> binance::spot::websocket_api::OrderListPlaceOtocoParams::pending_side |
Supported values: Order Side.
| common::Required<common::Decimal> binance::spot::websocket_api::OrderListPlaceOtocoParams::pending_quantity |
Sets the quantity for the pending orders.
| common::Required<OrderListPlaceOtocoPendingAboveTypeEnum> binance::spot::websocket_api::OrderListPlaceOtocoParams::pending_above_type |
Supported values: STOP_LOSS_LIMIT, STOP_LOSS, LIMIT_MAKER, TAKE_PROFIT, TAKE_PROFIT_LIMIT.
| std::optional<std::string> binance::spot::websocket_api::OrderListPlaceOtocoParams::id = std::nullopt |
Client-generated request identifier.
| std::optional<std::string> binance::spot::websocket_api::OrderListPlaceOtocoParams::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<OrderListPlaceOtocoNewOrderRespTypeEnum> binance::spot::websocket_api::OrderListPlaceOtocoParams::new_order_resp_type = std::nullopt |
Format of the JSON response. Supported values: Order Response Type.
| std::optional<OrderListPlaceOtocoSelfTradePreventionModeEnum> binance::spot::websocket_api::OrderListPlaceOtocoParams::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::websocket_api::OrderListPlaceOtocoParams::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::websocket_api::OrderListPlaceOtocoParams::working_iceberg_qty = std::nullopt |
This can only be used if workingTimeInForce is GTC, or if workingType is LIMIT_MAKER.
| std::optional<OrderListPlaceOtocoWorkingTimeInForceEnum> binance::spot::websocket_api::OrderListPlaceOtocoParams::working_time_in_force = std::nullopt |
Supported values: Time In Force.
| std::optional<std::int64_t> binance::spot::websocket_api::OrderListPlaceOtocoParams::working_strategy_id = std::nullopt |
Arbitrary numeric value identifying the working order within an order strategy.
| std::optional<std::int64_t> binance::spot::websocket_api::OrderListPlaceOtocoParams::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<OrderListPlaceOtocoWorkingPegPriceTypeEnum> binance::spot::websocket_api::OrderListPlaceOtocoParams::working_peg_price_type = std::nullopt |
See Pegged Orders.
| std::optional<OrderListPlaceOtocoWorkingPegOffsetTypeEnum> binance::spot::websocket_api::OrderListPlaceOtocoParams::working_peg_offset_type |
| std::optional<std::int64_t> binance::spot::websocket_api::OrderListPlaceOtocoParams::working_peg_offset_value = std::nullopt |
| std::optional<std::string> binance::spot::websocket_api::OrderListPlaceOtocoParams::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::websocket_api::OrderListPlaceOtocoParams::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::websocket_api::OrderListPlaceOtocoParams::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::websocket_api::OrderListPlaceOtocoParams::pending_above_trailing_delta = std::nullopt |
See Trailing Stop order FAQ.
| std::optional<common::Decimal> binance::spot::websocket_api::OrderListPlaceOtocoParams::pending_above_iceberg_qty = std::nullopt |
This can only be used if pendingAboveTimeInForce is GTC or if pendingAboveType is LIMIT_MAKER.
| std::optional<OrderListPlaceOtocoPendingAboveTimeInForceEnum> binance::spot::websocket_api::OrderListPlaceOtocoParams::pending_above_time_in_force |
Required if pendingAboveType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT.
| std::optional<std::int64_t> binance::spot::websocket_api::OrderListPlaceOtocoParams::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::websocket_api::OrderListPlaceOtocoParams::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<OrderListPlaceOtocoPendingAbovePegPriceTypeEnum> binance::spot::websocket_api::OrderListPlaceOtocoParams::pending_above_peg_price_type |
See Pegged Orders.
| std::optional<OrderListPlaceOtocoPendingAbovePegOffsetTypeEnum> binance::spot::websocket_api::OrderListPlaceOtocoParams::pending_above_peg_offset_type |
| std::optional<std::int64_t> binance::spot::websocket_api::OrderListPlaceOtocoParams::pending_above_peg_offset_value = std::nullopt |
| std::optional<OrderListPlaceOtocoPendingBelowTypeEnum> binance::spot::websocket_api::OrderListPlaceOtocoParams::pending_below_type = std::nullopt |
Supported values: STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT.
| std::optional<std::string> binance::spot::websocket_api::OrderListPlaceOtocoParams::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::websocket_api::OrderListPlaceOtocoParams::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::websocket_api::OrderListPlaceOtocoParams::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::websocket_api::OrderListPlaceOtocoParams::pending_below_trailing_delta = std::nullopt |
See Trailing Stop order FAQ.
| std::optional<common::Decimal> binance::spot::websocket_api::OrderListPlaceOtocoParams::pending_below_iceberg_qty = std::nullopt |
This can only be used if pendingBelowTimeInForce is GTC, or if pendingBelowType is LIMIT_MAKER.
| std::optional<OrderListPlaceOtocoPendingBelowTimeInForceEnum> binance::spot::websocket_api::OrderListPlaceOtocoParams::pending_below_time_in_force |
Required if pendingBelowType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT.
| std::optional<std::int64_t> binance::spot::websocket_api::OrderListPlaceOtocoParams::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::websocket_api::OrderListPlaceOtocoParams::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<OrderListPlaceOtocoPendingBelowPegPriceTypeEnum> binance::spot::websocket_api::OrderListPlaceOtocoParams::pending_below_peg_price_type |
See Pegged Orders.
| std::optional<OrderListPlaceOtocoPendingBelowPegOffsetTypeEnum> binance::spot::websocket_api::OrderListPlaceOtocoParams::pending_below_peg_offset_type |
| std::optional<std::int64_t> binance::spot::websocket_api::OrderListPlaceOtocoParams::pending_below_peg_offset_value = std::nullopt |
| std::optional<common::Decimal> binance::spot::websocket_api::OrderListPlaceOtocoParams::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::websocket_api::OrderListPlaceOtocoParams::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::websocket_api::OrderListPlaceOtocoParams::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::websocket_api::OrderListPlaceOtocoParams::recv_window = std::nullopt |
Supports up to three decimal places of precision (e.g., 6000.346) so that microseconds may be specified.