|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
Algo REST API client. More...
#include <rest_api.hpp>
Static Public Member Functions | |
| static RestApi | from_config (common::RestApiConfig config) |
| A client for config.base_path, production when it is not set. | |
| static RestApi | production (common::RestApiConfig config) |
| A client for production (Algo REST API). | |
Algo REST API client.
Cheap to copy: copies share one common::RestClient (connection pool and executor).
Every endpoint has a blocking form (name(params)) and an asynchronous form (async_name(params, token)) that accepts any Asio completion token.
|
explicit |
Throws common::ConfigError if the configuration is invalid.
|
staticnodiscard |
A client for config.base_path, production when it is not set.
|
staticnodiscard |
A client for production (Algo REST API).
|
nodiscardnoexcept |
|
inlinenodiscard |
Calls an endpoint the SDK does not wrap yet. T may be boost::json::value.
|
inlinenodiscard |
Like send_request, but signed (adds timestamp and signature).
|
inline |
|
inline |
|
inlinenodiscard |
Cancel Futures Algo Order (TRADE).
DELETE /sapi/v1/algo/futures/order.
Cancel an active order.
Weight(IP): 1
Security Type: TRADE
Notes:
|
inline |
Asynchronous cancel_algo_order_future_algo().
|
inlinenodiscard |
Query Current Futures Algo Open Orders (USER_DATA).
GET /sapi/v1/algo/futures/openOrders.
Query Current Algo Open Orders
Weight(IP): 1
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_current_algo_open_orders_future_algo().
|
inlinenodiscard |
Query Historical Futures Algo Orders (USER_DATA).
GET /sapi/v1/algo/futures/historicalOrders.
Query Historical Algo Order
Weight(IP): 1
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_historical_algo_orders_future_algo().
|
inlinenodiscard |
Query Futures Sub Orders (USER_DATA).
GET /sapi/v1/algo/futures/subOrders.
Get respective sub orders for a specified algoId
Weight(IP): 1
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_sub_orders_future_algo().
|
inlinenodiscard |
Time-Weighted Futures Average Price (Twap) New Order (TRADE).
POST /sapi/v1/algo/futures/newOrderTwap.
Send in a Twap new order. Only support on USDⓈ-M Contracts.
Weight(UID): 3000
Security Type: TRADE
Notes:
|
inline |
Asynchronous time_weighted_average_price_future_algo().
|
inlinenodiscard |
Volume Participation (VP) New Order (TRADE).
POST /sapi/v1/algo/futures/newOrderVp.
Send in a VP new order. Only support on USDⓈ-M Contracts.
Weight(UID): 300
Security Type: TRADE
Notes:
|
inline |
Asynchronous volume_participation_future_algo().
|
inlinenodiscard |
Cancel Spot Algo Order (TRADE).
DELETE /sapi/v1/algo/spot/order.
Cancel an open TWAP or VP algo order
Weight(IP): 1
Security Type: TRADE
Notes:
|
inline |
Asynchronous cancel_algo_order_spot_algo().
|
inlinenodiscard |
Query Current Spot Algo Open Orders (USER_DATA).
GET /sapi/v1/algo/spot/openOrders.
Get all open Spot TWAP and VP algo orders
Weight(IP): 1
Security Type: USER_DATA
|
inline |
Asynchronous query_current_algo_open_orders_spot_algo().
|
inlinenodiscard |
Query Historical Spot Algo Orders (USER_DATA).
GET /sapi/v1/algo/spot/historicalOrders.
Get all historical Spot TWAP and VP algo orders
Weight(IP): 1
Security Type: USER_DATA
|
inline |
Asynchronous query_historical_algo_orders_spot_algo().
|
inlinenodiscard |
Query Spot Sub Orders (USER_DATA).
GET /sapi/v1/algo/spot/subOrders.
Get respective sub orders for a specified algoId
Weight(IP): 1
Security Type: USER_DATA
|
inline |
Asynchronous query_sub_orders_spot_algo().
|
inlinenodiscard |
Time-Weighted Spot Average Price(Twap) New Order (TRADE).
POST /sapi/v1/algo/spot/newOrderTwap.
Place a new spot TWAP order with Algo service.
Weight(UID): 3000
Security Type: TRADE
Notes:
|
inline |
Asynchronous time_weighted_average_price_spot_algo().
|
inlinenodiscard |
Volume Participation (VP) New Order (TRADE).
POST /sapi/v1/algo/spot/newOrderVp.
Place a new spot VP (Volume Participation) order with Algo service. A VP order automatically slices the total quantity over time, targeting a percentage of the market volume.
Weight(UID): 3000
Security Type: TRADE
Notes:
|
inline |
Asynchronous volume_participation().