|
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< OrderListOcoSideEnum > | side |
| common::Required< common::Decimal > | quantity |
| Quantity for both orders of the order list. | |
| common::Required< OrderListOcoAboveTypeEnum > | above_type |
| common::Required< OrderListOcoBelowTypeEnum > | below_type |
| Supported values: STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT. | |
| std::optional< std::string > | list_client_order_id = std::nullopt |
| Arbitrary unique ID among open order lists. | |
| std::optional< std::string > | above_client_order_id = std::nullopt |
| Arbitrary unique ID among open orders for the above order. | |
| std::optional< common::Decimal > | above_iceberg_qty = std::nullopt |
| Note that this can only be used if aboveTimeInForce is GTC. | |
| std::optional< common::Decimal > | above_price = std::nullopt |
| Can be used if aboveType is STOP_LOSS_LIMIT, LIMIT_MAKER, or TAKE_PROFIT_LIMIT to specify the limit price. | |
| std::optional< common::Decimal > | above_stop_price = std::nullopt |
| Can be used if aboveType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT. | |
| std::optional< std::int64_t > | above_trailing_delta = std::nullopt |
| See Trailing Stop order FAQ. | |
| std::optional< OrderListOcoAboveTimeInForceEnum > | above_time_in_force = std::nullopt |
| Required if aboveType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT. | |
| std::optional< std::int64_t > | above_strategy_id = std::nullopt |
| Arbitrary numeric value identifying the above order within an order strategy. | |
| std::optional< std::int64_t > | above_strategy_type = std::nullopt |
| Arbitrary numeric value identifying the above order strategy. | |
| std::optional< OrderListOcoAbovePegPriceTypeEnum > | above_peg_price_type = std::nullopt |
| PRIMARY_PEG or MARKET_PEG. See Pegged Orders | |
| std::optional< OrderListOcoAbovePegOffsetTypeEnum > | above_peg_offset_type = std::nullopt |
| std::optional< std::int64_t > | above_peg_offset_value = std::nullopt |
| std::optional< std::string > | below_client_order_id = std::nullopt |
| Arbitrary unique ID among open orders for the below order. | |
| std::optional< common::Decimal > | below_iceberg_qty = std::nullopt |
| Note that this can only be used if belowTimeInForce is GTC. | |
| std::optional< common::Decimal > | below_price = std::nullopt |
| Can be used if belowType is STOP_LOSS_LIMIT, LIMIT_MAKER, or TAKE_PROFIT_LIMIT to specify the limit price. | |
| std::optional< common::Decimal > | below_stop_price = std::nullopt |
| Can be used if belowType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT. | |
| std::optional< std::int64_t > | below_trailing_delta = std::nullopt |
| See Trailing Stop order FAQ. | |
| std::optional< OrderListOcoBelowTimeInForceEnum > | below_time_in_force = std::nullopt |
| Required if belowType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT. | |
| std::optional< std::int64_t > | below_strategy_id = std::nullopt |
| Arbitrary numeric value identifying the below order within an order strategy. | |
| std::optional< std::int64_t > | below_strategy_type = std::nullopt |
| Arbitrary numeric value identifying the below order strategy. | |
| std::optional< OrderListOcoBelowPegPriceTypeEnum > | below_peg_price_type = std::nullopt |
| See Pegged Orders. | |
| std::optional< OrderListOcoBelowPegOffsetTypeEnum > | below_peg_offset_type = std::nullopt |
| std::optional< std::int64_t > | below_peg_offset_value = std::nullopt |
| std::optional< OrderListOcoNewOrderRespTypeEnum > | new_order_resp_type = std::nullopt |
| Select response format: ACK, RESULT, FULL. | |
| std::optional< OrderListOcoSelfTradePreventionModeEnum > | self_trade_prevention_mode |
| The allowed enums is dependent on what is configured on the symbol. | |
| std::optional< common::Decimal > | above_quote_notional_limit = std::nullopt |
| Quote notional limit for the above order (only for orders on the BUY side). | |
| std::optional< common::Decimal > | below_quote_notional_limit = std::nullopt |
| Quote notional limit for the 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::OrderListOcoParams::symbol |
| common::Required<OrderListOcoSideEnum> binance::spot::rest_api::OrderListOcoParams::side |
| common::Required<common::Decimal> binance::spot::rest_api::OrderListOcoParams::quantity |
Quantity for both orders of the order list.
| common::Required<OrderListOcoAboveTypeEnum> binance::spot::rest_api::OrderListOcoParams::above_type |
| common::Required<OrderListOcoBelowTypeEnum> binance::spot::rest_api::OrderListOcoParams::below_type |
Supported values: STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT.
| std::optional<std::string> binance::spot::rest_api::OrderListOcoParams::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 aboveClientOrderId and the belowClientOrderId.
| std::optional<std::string> binance::spot::rest_api::OrderListOcoParams::above_client_order_id = std::nullopt |
Arbitrary unique ID among open orders for the above order.
Automatically generated if not sent.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOcoParams::above_iceberg_qty = std::nullopt |
Note that this can only be used if aboveTimeInForce is GTC.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOcoParams::above_price = std::nullopt |
Can be used if aboveType is STOP_LOSS_LIMIT, LIMIT_MAKER, or TAKE_PROFIT_LIMIT to specify the limit price.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOcoParams::above_stop_price = std::nullopt |
Can be used if aboveType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT.
Either aboveStopPrice or aboveTrailingDelta or both, must be specified.
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOcoParams::above_trailing_delta = std::nullopt |
See Trailing Stop order FAQ.
| std::optional<OrderListOcoAboveTimeInForceEnum> binance::spot::rest_api::OrderListOcoParams::above_time_in_force = std::nullopt |
Required if aboveType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT.
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOcoParams::above_strategy_id = std::nullopt |
Arbitrary numeric value identifying the above order within an order strategy.
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOcoParams::above_strategy_type = std::nullopt |
Arbitrary numeric value identifying the above order strategy.
Values smaller than 1000000 are reserved and cannot be used.
| std::optional<OrderListOcoAbovePegPriceTypeEnum> binance::spot::rest_api::OrderListOcoParams::above_peg_price_type = std::nullopt |
PRIMARY_PEG or MARKET_PEG. See Pegged Orders
| std::optional<OrderListOcoAbovePegOffsetTypeEnum> binance::spot::rest_api::OrderListOcoParams::above_peg_offset_type = std::nullopt |
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOcoParams::above_peg_offset_value = std::nullopt |
| std::optional<std::string> binance::spot::rest_api::OrderListOcoParams::below_client_order_id = std::nullopt |
Arbitrary unique ID among open orders for the below order.
Automatically generated if not sent.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOcoParams::below_iceberg_qty = std::nullopt |
Note that this can only be used if belowTimeInForce is GTC.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOcoParams::below_price = std::nullopt |
Can be used if belowType is STOP_LOSS_LIMIT, LIMIT_MAKER, or TAKE_PROFIT_LIMIT to specify the limit price.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOcoParams::below_stop_price = std::nullopt |
Can be used if belowType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT.
Either belowStopPrice or belowTrailingDelta or both, must be specified.
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOcoParams::below_trailing_delta = std::nullopt |
See Trailing Stop order FAQ.
| std::optional<OrderListOcoBelowTimeInForceEnum> binance::spot::rest_api::OrderListOcoParams::below_time_in_force = std::nullopt |
Required if belowType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT.
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOcoParams::below_strategy_id = std::nullopt |
Arbitrary numeric value identifying the below order within an order strategy.
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOcoParams::below_strategy_type = std::nullopt |
Arbitrary numeric value identifying the below order strategy.
Values smaller than 1000000 are reserved and cannot be used.
| std::optional<OrderListOcoBelowPegPriceTypeEnum> binance::spot::rest_api::OrderListOcoParams::below_peg_price_type = std::nullopt |
See Pegged Orders.
| std::optional<OrderListOcoBelowPegOffsetTypeEnum> binance::spot::rest_api::OrderListOcoParams::below_peg_offset_type = std::nullopt |
| std::optional<std::int64_t> binance::spot::rest_api::OrderListOcoParams::below_peg_offset_value = std::nullopt |
| std::optional<OrderListOcoNewOrderRespTypeEnum> binance::spot::rest_api::OrderListOcoParams::new_order_resp_type = std::nullopt |
Select response format: ACK, RESULT, FULL.
| std::optional<OrderListOcoSelfTradePreventionModeEnum> binance::spot::rest_api::OrderListOcoParams::self_trade_prevention_mode |
The allowed enums is dependent on what is configured on the symbol.
Supported values: STP Modes
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOcoParams::above_quote_notional_limit = std::nullopt |
Quote notional limit for the above order (only for orders on the BUY side).
See Quote Notional Limit.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOcoParams::below_quote_notional_limit = std::nullopt |
Quote notional limit for the below order (only for orders on the BUY side).
See Quote Notional Limit.
| std::optional<common::Decimal> binance::spot::rest_api::OrderListOcoParams::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.