|
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< OrderListOpoWorkingTypeEnum > | working_type |
| Supported values: LIMIT, LIMIT_MAKER. | |
| common::Required< OrderListOpoWorkingSideEnum > | 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< OrderListOpoPendingTypeEnum > | pending_type |
| Supported values: Order Types. | |
| common::Required< OrderListOpoPendingSideEnum > | pending_side |
| Supported values: Order Side. | |
| std::optional< std::string > | list_client_order_id = std::nullopt |
| Arbitrary unique ID among open order lists. | |
| std::optional< OrderListOpoNewOrderRespTypeEnum > | new_order_resp_type = std::nullopt |
| Format of the JSON response. Supported values: Order Response Type. | |
| std::optional< OrderListOpoSelfTradePreventionModeEnum > | 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< OrderListOpoWorkingTimeInForceEnum > | 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< OrderListOpoWorkingPegPriceTypeEnum > | working_peg_price_type = std::nullopt |
| See Pegged Orders. | |
| std::optional< OrderListOpoWorkingPegOffsetTypeEnum > | working_peg_offset_type = std::nullopt |
| std::optional< std::int64_t > | working_peg_offset_value = std::nullopt |
| std::optional< std::string > | pending_client_order_id = std::nullopt |
| Arbitrary unique ID among open orders for the pending order. | |
| std::optional< common::Decimal > | pending_price = std::nullopt |
| Price for the pending order. | |
| std::optional< common::Decimal > | pending_stop_price = std::nullopt |
| Stop price for the pending order. | |
| std::optional< common::Decimal > | pending_trailing_delta = std::nullopt |
| Trailing delta for the pending order. | |
| std::optional< common::Decimal > | pending_iceberg_qty = std::nullopt |
| This can only be used if pendingTimeInForce is GTC or if pendingType is LIMIT_MAKER. | |
| std::optional< OrderListOpoPendingTimeInForceEnum > | pending_time_in_force = std::nullopt |
| Supported values: Time In Force. | |
| std::optional< std::int64_t > | pending_strategy_id = std::nullopt |
| Arbitrary numeric value identifying the pending order within an order strategy. | |
| std::optional< std::int64_t > | pending_strategy_type = std::nullopt |
| Arbitrary numeric value identifying the pending order strategy. | |
| std::optional< OrderListOpoPendingPegPriceTypeEnum > | pending_peg_price_type = std::nullopt |
| See Pegged Orders. | |
| std::optional< OrderListOpoPendingPegOffsetTypeEnum > | pending_peg_offset_type = std::nullopt |
| std::optional< std::int64_t > | pending_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 |
| 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::OrderListOpoParams::symbol |
| common::Required<OrderListOpoWorkingTypeEnum> binance::spot::rest_api::OrderListOpoParams::working_type |
Supported values: LIMIT, LIMIT_MAKER.
| common::Required<OrderListOpoWorkingSideEnum> binance::spot::rest_api::OrderListOpoParams::working_side |
Supported values: Order Side.
| common::Required<common::Decimal> binance::spot::rest_api::OrderListOpoParams::working_price |
Price for the working order.
| common::Required<common::Decimal> binance::spot::rest_api::OrderListOpoParams::working_quantity |
Sets the quantity for the working order.
| common::Required<OrderListOpoPendingTypeEnum> binance::spot::rest_api::OrderListOpoParams::pending_type |
Supported values: Order Types.
Note that MARKET orders using quoteOrderQty are not supported.
| common::Required<OrderListOpoPendingSideEnum> binance::spot::rest_api::OrderListOpoParams::pending_side |
Supported values: Order Side.
| std::optional<std::string> binance::spot::rest_api::OrderListOpoParams::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 and the pendingClientOrderId.
| std::optional<OrderListOpoNewOrderRespTypeEnum> binance::spot::rest_api::OrderListOpoParams::new_order_resp_type = std::nullopt |
Format of the JSON response. Supported values: Order Response Type.
| std::optional<OrderListOpoSelfTradePreventionModeEnum> binance::spot::rest_api::OrderListOpoParams::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::OrderListOpoParams::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::OrderListOpoParams::working_iceberg_qty = std::nullopt |
This can only be used if workingTimeInForce is GTC, or if workingType is LIMIT_MAKER.
| std::optional<OrderListOpoWorkingTimeInForceEnum> binance::spot::rest_api::OrderListOpoParams::working_time_in_force = std::nullopt |
Supported values: Time In Force.
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOpoParams::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::OrderListOpoParams::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<OrderListOpoWorkingPegPriceTypeEnum> binance::spot::rest_api::OrderListOpoParams::working_peg_price_type = std::nullopt |
See Pegged Orders.
| std::optional<OrderListOpoWorkingPegOffsetTypeEnum> binance::spot::rest_api::OrderListOpoParams::working_peg_offset_type = std::nullopt |
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOpoParams::working_peg_offset_value = std::nullopt |
| std::optional<std::string> binance::spot::rest_api::OrderListOpoParams::pending_client_order_id = std::nullopt |
Arbitrary unique ID among open orders for the pending order.
Automatically generated if not sent.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOpoParams::pending_price = std::nullopt |
Price for the pending order.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOpoParams::pending_stop_price = std::nullopt |
Stop price for the pending order.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOpoParams::pending_trailing_delta = std::nullopt |
Trailing delta for the pending order.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOpoParams::pending_iceberg_qty = std::nullopt |
This can only be used if pendingTimeInForce is GTC or if pendingType is LIMIT_MAKER.
| std::optional<OrderListOpoPendingTimeInForceEnum> binance::spot::rest_api::OrderListOpoParams::pending_time_in_force = std::nullopt |
Supported values: Time In Force.
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOpoParams::pending_strategy_id = std::nullopt |
Arbitrary numeric value identifying the pending order within an order strategy.
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOpoParams::pending_strategy_type = std::nullopt |
Arbitrary numeric value identifying the pending order strategy.
Values smaller than 1000000 are reserved and cannot be used.
| std::optional<OrderListOpoPendingPegPriceTypeEnum> binance::spot::rest_api::OrderListOpoParams::pending_peg_price_type = std::nullopt |
See Pegged Orders.
| std::optional<OrderListOpoPendingPegOffsetTypeEnum> binance::spot::rest_api::OrderListOpoParams::pending_peg_offset_type = std::nullopt |
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOpoParams::pending_peg_offset_value = std::nullopt |
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOpoParams::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::OrderListOpoParams::recv_window = std::nullopt |
Supports up to three decimal places of precision (e.g., 6000.346) so that microseconds may be specified.