|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
#include <future_algo_api.hpp>
Public Attributes | |
| common::Required< std::string > | symbol |
| Trading symbol eg. BTCUSDT. | |
| common::Required< TimeWeightedAveragePriceFutureAlgoSideEnum > | side |
| Trading side ( BUY or SELL ). | |
| common::Required< common::Decimal > | quantity |
| Quantity of base asset; The notional (quantity * mark price(base asset)) must be more than the equivalent of 1,000 USDT, and the maximum notional varies by symbol: up to 50,000,000 USDT for BTCUSDT perpetual, up to 25,000,000 USDT for ETHUSDT perpetual, and up to 5,000,000 USDT for other symbols. | |
| common::Required< std::int64_t > | duration |
| Duration for TWAP orders in seconds. | |
| std::optional< TimeWeightedAveragePriceFutureAlgoPositionSideEnum > | position_side = std::nullopt |
| Default BOTH for One-way Mode ; LONG or SHORT for Hedge Mode. | |
| std::optional< std::string > | client_algo_id = std::nullopt |
| A unique id among Algo orders (length should be 32 characters), If it is not sent, we will give default value. | |
| std::optional< bool > | reduce_only = std::nullopt |
| "true" or "false". | |
| std::optional< common::Decimal > | limit_price = std::nullopt |
| Limit price of the order; If it is not sent, will place order by market price by default. | |
| std::optional< std::int64_t > | recv_window = std::nullopt |
| Request validity window in milliseconds. | |
| common::Required<std::string> binance::algo::rest_api::TimeWeightedAveragePriceFutureAlgoParams::symbol |
Trading symbol eg. BTCUSDT.
| common::Required<TimeWeightedAveragePriceFutureAlgoSideEnum> binance::algo::rest_api::TimeWeightedAveragePriceFutureAlgoParams::side |
Trading side ( BUY or SELL ).
| common::Required<common::Decimal> binance::algo::rest_api::TimeWeightedAveragePriceFutureAlgoParams::quantity |
Quantity of base asset; The notional (quantity * mark price(base asset)) must be more than the equivalent of 1,000 USDT, and the maximum notional varies by symbol: up to 50,000,000 USDT for BTCUSDT perpetual, up to 25,000,000 USDT for ETHUSDT perpetual, and up to 5,000,000 USDT for other symbols.
| common::Required<std::int64_t> binance::algo::rest_api::TimeWeightedAveragePriceFutureAlgoParams::duration |
Duration for TWAP orders in seconds.
| std::optional<TimeWeightedAveragePriceFutureAlgoPositionSideEnum> binance::algo::rest_api::TimeWeightedAveragePriceFutureAlgoParams::position_side = std::nullopt |
Default BOTH for One-way Mode ; LONG or SHORT for Hedge Mode.
It must be sent in Hedge Mode.
| std::optional<std::string> binance::algo::rest_api::TimeWeightedAveragePriceFutureAlgoParams::client_algo_id = std::nullopt |
A unique id among Algo orders (length should be 32 characters), If it is not sent, we will give default value.
| std::optional<bool> binance::algo::rest_api::TimeWeightedAveragePriceFutureAlgoParams::reduce_only = std::nullopt |
"true" or "false".
Default "false"; Cannot be sent in Hedge Mode; Cannot be sent when you open a position
| std::optional<common::Decimal> binance::algo::rest_api::TimeWeightedAveragePriceFutureAlgoParams::limit_price = std::nullopt |
Limit price of the order; If it is not sent, will place order by market price by default.
| std::optional<std::int64_t> binance::algo::rest_api::TimeWeightedAveragePriceFutureAlgoParams::recv_window = std::nullopt |
Request validity window in milliseconds.