|
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< OrderTestSideEnum > | side |
| common::Required< OrderTestTypeEnum > | type |
| std::optional< bool > | compute_commission_rates = std::nullopt |
| Default: false See Commissions FAQ to learn more. | |
| std::optional< OrderTestTimeInForceEnum > | time_in_force = std::nullopt |
| std::optional< common::Decimal > | quantity = std::nullopt |
| std::optional< common::Decimal > | quote_order_qty = std::nullopt |
| std::optional< common::Decimal > | price = std::nullopt |
| std::optional< std::string > | new_client_order_id = std::nullopt |
| A unique id among open orders. | |
| std::optional< std::int64_t > | strategy_id = std::nullopt |
| std::optional< std::int64_t > | strategy_type = std::nullopt |
| The value cannot be less than 1000000. | |
| std::optional< common::Decimal > | stop_price = std::nullopt |
| Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders. | |
| std::optional< std::int64_t > | trailing_delta = std::nullopt |
| See Trailing Stop order FAQ. | |
| std::optional< common::Decimal > | iceberg_qty = std::nullopt |
| Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order. | |
| std::optional< OrderTestNewOrderRespTypeEnum > | new_order_resp_type = std::nullopt |
| Set the response JSON. | |
| std::optional< OrderTestSelfTradePreventionModeEnum > | self_trade_prevention_mode = std::nullopt |
| The allowed enums is dependent on what is configured on the symbol. | |
| std::optional< OrderTestPegPriceTypeEnum > | peg_price_type = std::nullopt |
| PRIMARY_PEG or MARKET_PEG. See Pegged Orders | |
| std::optional< std::int64_t > | peg_offset_value = std::nullopt |
| Price level for pegging (max: 100). See Pegged Orders. | |
| std::optional< OrderTestPegOffsetTypeEnum > | peg_offset_type = std::nullopt |
| Only PRICE_LEVEL is supported. See Pegged Orders. | |
| std::optional< common::Decimal > | quote_notional_limit = std::nullopt |
| For orders on the BUY side only. | |
| std::optional< common::Decimal > | recv_window = std::nullopt |
| The value cannot be greater than 60000. | |
| common::Required<std::string> binance::spot::rest_api::OrderTestParams::symbol |
| common::Required<OrderTestSideEnum> binance::spot::rest_api::OrderTestParams::side |
| common::Required<OrderTestTypeEnum> binance::spot::rest_api::OrderTestParams::type |
| std::optional<bool> binance::spot::rest_api::OrderTestParams::compute_commission_rates = std::nullopt |
Default: false See Commissions FAQ to learn more.
| std::optional<OrderTestTimeInForceEnum> binance::spot::rest_api::OrderTestParams::time_in_force = std::nullopt |
| std::optional<common::Decimal> binance::spot::rest_api::OrderTestParams::quantity = std::nullopt |
| std::optional<common::Decimal> binance::spot::rest_api::OrderTestParams::quote_order_qty = std::nullopt |
| std::optional<common::Decimal> binance::spot::rest_api::OrderTestParams::price = std::nullopt |
| std::optional<std::string> binance::spot::rest_api::OrderTestParams::new_client_order_id = std::nullopt |
A unique id among open orders.
Automatically generated if not sent. Orders with the same newClientOrderID can be accepted only when the previous one is filled, otherwise the order will be rejected.
| std::optional<std::int64_t> binance::spot::rest_api::OrderTestParams::strategy_id = std::nullopt |
| std::optional<std::int64_t> binance::spot::rest_api::OrderTestParams::strategy_type = std::nullopt |
The value cannot be less than 1000000.
| std::optional<common::Decimal> binance::spot::rest_api::OrderTestParams::stop_price = std::nullopt |
Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.
| std::optional<std::int64_t> binance::spot::rest_api::OrderTestParams::trailing_delta = std::nullopt |
See Trailing Stop order FAQ.
| std::optional<common::Decimal> binance::spot::rest_api::OrderTestParams::iceberg_qty = std::nullopt |
Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order.
| std::optional<OrderTestNewOrderRespTypeEnum> binance::spot::rest_api::OrderTestParams::new_order_resp_type = std::nullopt |
Set the response JSON.
ACK, RESULT, or FULL; MARKET and LIMIT order types default to FULL, all other orders default to ACK.
| std::optional<OrderTestSelfTradePreventionModeEnum> binance::spot::rest_api::OrderTestParams::self_trade_prevention_mode = std::nullopt |
The allowed enums is dependent on what is configured on the symbol.
Supported values: STP Modes
| std::optional<OrderTestPegPriceTypeEnum> binance::spot::rest_api::OrderTestParams::peg_price_type = std::nullopt |
PRIMARY_PEG or MARKET_PEG. See Pegged Orders
| std::optional<std::int64_t> binance::spot::rest_api::OrderTestParams::peg_offset_value = std::nullopt |
Price level for pegging (max: 100). See Pegged Orders.
| std::optional<OrderTestPegOffsetTypeEnum> binance::spot::rest_api::OrderTestParams::peg_offset_type = std::nullopt |
Only PRICE_LEVEL is supported. See Pegged Orders.
| std::optional<common::Decimal> binance::spot::rest_api::OrderTestParams::quote_notional_limit = std::nullopt |
For orders on the BUY side only.
Maximum quote-asset notional the order may consume. See Quote Notional Limit.
| std::optional<common::Decimal> binance::spot::rest_api::OrderTestParams::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.