|
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< NewOrderSideEnum > | side |
| common::Required< NewOrderTypeEnum > | type |
| std::optional< NewOrderTimeInForceEnum > | 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< NewOrderNewOrderRespTypeEnum > | new_order_resp_type = std::nullopt |
| MARKET and LIMIT order types default to FULL, all other orders default to ACK. | |
| std::optional< NewOrderSelfTradePreventionModeEnum > | self_trade_prevention_mode = std::nullopt |
| The allowed enums is dependent on what is configured on the symbol. | |
| std::optional< NewOrderPegPriceTypeEnum > | peg_price_type = std::nullopt |
| See Pegged Orders Info. | |
| std::optional< std::int64_t > | peg_offset_value = std::nullopt |
| Price level to peg the price to (max: 100). See Pegged Orders Info. | |
| std::optional< NewOrderPegOffsetTypeEnum > | peg_offset_type = std::nullopt |
| Only PRICE_LEVEL is supported. See Pegged Orders Info. | |
| std::optional< common::Decimal > | quote_notional_limit = std::nullopt |
| For orders on the BUY side only. | |
| 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::NewOrderParams::symbol |
| common::Required<NewOrderSideEnum> binance::spot::rest_api::NewOrderParams::side |
| common::Required<NewOrderTypeEnum> binance::spot::rest_api::NewOrderParams::type |
| std::optional<NewOrderTimeInForceEnum> binance::spot::rest_api::NewOrderParams::time_in_force = std::nullopt |
| std::optional<common::Decimal> binance::spot::rest_api::NewOrderParams::quantity = std::nullopt |
| std::optional<common::Decimal> binance::spot::rest_api::NewOrderParams::quote_order_qty = std::nullopt |
| std::optional<common::Decimal> binance::spot::rest_api::NewOrderParams::price = std::nullopt |
| std::optional<std::string> binance::spot::rest_api::NewOrderParams::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::NewOrderParams::strategy_id = std::nullopt |
| std::optional<std::int64_t> binance::spot::rest_api::NewOrderParams::strategy_type = std::nullopt |
The value cannot be less than 1000000.
| std::optional<common::Decimal> binance::spot::rest_api::NewOrderParams::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::NewOrderParams::trailing_delta = std::nullopt |
See Trailing Stop order FAQ.
| std::optional<common::Decimal> binance::spot::rest_api::NewOrderParams::iceberg_qty = std::nullopt |
Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order.
| std::optional<NewOrderNewOrderRespTypeEnum> binance::spot::rest_api::NewOrderParams::new_order_resp_type = std::nullopt |
MARKET and LIMIT order types default to FULL, all other orders default to ACK.
| std::optional<NewOrderSelfTradePreventionModeEnum> binance::spot::rest_api::NewOrderParams::self_trade_prevention_mode = std::nullopt |
The allowed enums is dependent on what is configured on the symbol.
| std::optional<NewOrderPegPriceTypeEnum> binance::spot::rest_api::NewOrderParams::peg_price_type = std::nullopt |
See Pegged Orders Info.
| std::optional<std::int64_t> binance::spot::rest_api::NewOrderParams::peg_offset_value = std::nullopt |
Price level to peg the price to (max: 100). See Pegged Orders Info.
| std::optional<NewOrderPegOffsetTypeEnum> binance::spot::rest_api::NewOrderParams::peg_offset_type = std::nullopt |
Only PRICE_LEVEL is supported. See Pegged Orders Info.
| std::optional<common::Decimal> binance::spot::rest_api::NewOrderParams::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::NewOrderParams::recv_window = std::nullopt |
Supports up to three decimal places of precision (e.g., 6000.346) so that microseconds may be specified.