|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
#include <spot_algo_api.hpp>
Public Attributes | |
| common::Required< std::string > | symbol |
| Trading symbol eg. BTCUSDT. | |
| common::Required< TimeWeightedAveragePriceSpotAlgoSideEnum > | side |
| Trading side ( BUY or SELL ). | |
| common::Required< common::Decimal > | quantity |
| Quantity of base asset; Maximum notional per order is 200k, 2mm or 10mm, depending on symbol. | |
| common::Required< std::int64_t > | duration |
| Duration for TWAP orders in seconds. | |
| 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< common::Decimal > | limit_price = std::nullopt |
| Limit price of the order; If it is not sent, will place order by market price by default. | |
| common::Required<std::string> binance::algo::rest_api::TimeWeightedAveragePriceSpotAlgoParams::symbol |
Trading symbol eg. BTCUSDT.
| common::Required<TimeWeightedAveragePriceSpotAlgoSideEnum> binance::algo::rest_api::TimeWeightedAveragePriceSpotAlgoParams::side |
Trading side ( BUY or SELL ).
| common::Required<common::Decimal> binance::algo::rest_api::TimeWeightedAveragePriceSpotAlgoParams::quantity |
Quantity of base asset; Maximum notional per order is 200k, 2mm or 10mm, depending on symbol.
Please reduce your size if you order is above the maximum notional per order.
| common::Required<std::int64_t> binance::algo::rest_api::TimeWeightedAveragePriceSpotAlgoParams::duration |
Duration for TWAP orders in seconds.
| std::optional<std::string> binance::algo::rest_api::TimeWeightedAveragePriceSpotAlgoParams::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<common::Decimal> binance::algo::rest_api::TimeWeightedAveragePriceSpotAlgoParams::limit_price = std::nullopt |
Limit price of the order; If it is not sent, will place order by market price by default.