|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
#include <account_api.hpp>
Public Member Functions | |
| AccountApi (std::shared_ptr< common::WebsocketApi > client) | |
| common::WebsocketApiResponse< AccountCommissionResponseResult > | account_commission (const AccountCommissionParams ¶ms) const |
| Account Commission Rates (USER_DATA). | |
| template<class CompletionToken> | |
| auto | async_account_commission (const AccountCommissionParams ¶ms, CompletionToken &&token) const |
| Asynchronous account_commission(). | |
| common::WebsocketApiResponse< std::vector< AccountRateLimitsOrdersResponseResultInner > > | account_rate_limits_orders (const AccountRateLimitsOrdersParams ¶ms={}) const |
| Unfilled Order Count (USER_DATA). | |
| template<class CompletionToken> | |
| auto | async_account_rate_limits_orders (const AccountRateLimitsOrdersParams ¶ms, CompletionToken &&token) const |
| Asynchronous account_rate_limits_orders(). | |
| common::WebsocketApiResponse< AccountStatusResponseResult > | account_status (const AccountStatusParams ¶ms={}) const |
| Account information (USER_DATA). | |
| template<class CompletionToken> | |
| auto | async_account_status (const AccountStatusParams ¶ms, CompletionToken &&token) const |
| Asynchronous account_status(). | |
| common::WebsocketApiResponse< std::vector< AllOrderListsResponseResultInner > > | all_order_lists (const AllOrderListsParams ¶ms={}) const |
| Account order list history (USER_DATA). | |
| template<class CompletionToken> | |
| auto | async_all_order_lists (const AllOrderListsParams ¶ms, CompletionToken &&token) const |
| Asynchronous all_order_lists(). | |
| common::WebsocketApiResponse< std::vector< AllOrdersResponseResultInner > > | all_orders (const AllOrdersParams ¶ms) const |
| Account order history (USER_DATA). | |
| template<class CompletionToken> | |
| auto | async_all_orders (const AllOrdersParams ¶ms, CompletionToken &&token) const |
| Asynchronous all_orders(). | |
| common::WebsocketApiResponse< std::vector< MyAllocationsResponseResultInner > > | my_allocations (const MyAllocationsParams ¶ms) const |
| Account allocations (USER_DATA). | |
| template<class CompletionToken> | |
| auto | async_my_allocations (const MyAllocationsParams ¶ms, CompletionToken &&token) const |
| Asynchronous my_allocations(). | |
| common::WebsocketApiResponse< MyFiltersResponse > | my_filters (const MyFiltersParams ¶ms) const |
| Query Relevant Filters (USER_DATA). | |
| template<class CompletionToken> | |
| auto | async_my_filters (const MyFiltersParams ¶ms, CompletionToken &&token) const |
| Asynchronous my_filters(). | |
| common::WebsocketApiResponse< std::vector< MyPreventedMatchesResponseResultInner > > | my_prevented_matches (const MyPreventedMatchesParams ¶ms) const |
| Account prevented matches (USER_DATA). | |
| template<class CompletionToken> | |
| auto | async_my_prevented_matches (const MyPreventedMatchesParams ¶ms, CompletionToken &&token) const |
| Asynchronous my_prevented_matches(). | |
| common::WebsocketApiResponse< std::vector< MyTradesResponseResultInner > > | my_trades (const MyTradesParams ¶ms) const |
| Account trade history (USER_DATA). | |
| template<class CompletionToken> | |
| auto | async_my_trades (const MyTradesParams ¶ms, CompletionToken &&token) const |
| Asynchronous my_trades(). | |
| common::WebsocketApiResponse< std::vector< OpenOrderListsStatusResponseResultInner > > | open_order_lists_status (const OpenOrderListsStatusParams ¶ms={}) const |
| Current open Order lists (USER_DATA). | |
| template<class CompletionToken> | |
| auto | async_open_order_lists_status (const OpenOrderListsStatusParams ¶ms, CompletionToken &&token) const |
| Asynchronous open_order_lists_status(). | |
| common::WebsocketApiResponse< std::vector< OpenOrdersStatusResponseResultInner > > | open_orders_status (const OpenOrdersStatusParams ¶ms={}) const |
| Current open orders (USER_DATA). | |
| template<class CompletionToken> | |
| auto | async_open_orders_status (const OpenOrdersStatusParams ¶ms, CompletionToken &&token) const |
| Asynchronous open_orders_status(). | |
| common::WebsocketApiResponse< std::vector< OrderAmendmentsResponseResultInner > > | order_amendments (const OrderAmendmentsParams ¶ms) const |
| Query Order Amendments (USER_DATA). | |
| template<class CompletionToken> | |
| auto | async_order_amendments (const OrderAmendmentsParams ¶ms, CompletionToken &&token) const |
| Asynchronous order_amendments(). | |
| common::WebsocketApiResponse< OrderListStatusResponseResult > | order_list_status (const OrderListStatusParams ¶ms={}) const |
| Query Order list (USER_DATA). | |
| template<class CompletionToken> | |
| auto | async_order_list_status (const OrderListStatusParams ¶ms, CompletionToken &&token) const |
| Asynchronous order_list_status(). | |
| common::WebsocketApiResponse< OrderStatusResponseResult > | order_status (const OrderStatusParams ¶ms) const |
| Query order (USER_DATA). | |
| template<class CompletionToken> | |
| auto | async_order_status (const OrderStatusParams ¶ms, CompletionToken &&token) const |
| Asynchronous order_status(). | |
|
explicit |
|
nodiscard |
Account Commission Rates (USER_DATA).
account.commission.
Get current account commission rates.
Weight(IP): 20
Security Type: USER_DATA
Notes: Data Source: Database
|
inline |
Asynchronous account_commission().
Completes with void(std::exception_ptr, common::WebsocketApiResponse<AccountCommissionResponseResult>).
|
nodiscard |
Unfilled Order Count (USER_DATA).
account.rateLimits.orders.
Query your current unfilled order count for all intervals.
Weight(IP): 40
Security Type: USER_DATA
Notes: Data Source: Memory
|
inline |
Asynchronous account_rate_limits_orders().
Completes with void(std::exception_ptr, common::WebsocketApiResponse<std::vector<AccountRateLimitsOrdersResponseResultInner>>).
|
nodiscard |
Account information (USER_DATA).
account.status.
Query information about your account.
Weight(IP): 20
Security Type: USER_DATA
Notes: Data Source: Memory => Database
|
inline |
Asynchronous account_status().
Completes with void(std::exception_ptr, common::WebsocketApiResponse<AccountStatusResponseResult>).
|
nodiscard |
Account order list history (USER_DATA).
allOrderLists.
Query information about all your order lists, filtered by time range.
Weight(IP): 20
Security Type: USER_DATA
Notes: Data Source: Database
Notes:
|
inline |
Asynchronous all_order_lists().
Completes with void(std::exception_ptr, common::WebsocketApiResponse<std::vector<AllOrderListsResponseResultInner>>).
|
nodiscard |
Account order history (USER_DATA).
allOrders.
Query information about all your orders – active, canceled, filled – filtered by time range.
Weight(IP): 20
Security Type: USER_DATA
Notes: Data Source: Database
Notes:
If startTime and/or endTime are specified, orderId is ignored.
Orders are filtered by time of the last execution status update.
|
inline |
Asynchronous all_orders().
Completes with void(std::exception_ptr, common::WebsocketApiResponse<std::vector<AllOrdersResponseResultInner>>).
|
nodiscard |
Account allocations (USER_DATA).
myAllocations.
Retrieves allocations resulting from SOR order placement.
Weight(IP): 20
Security Type: USER_DATA
Notes: Data Source: Database
Supported parameter combinations:
| Parameters | Response |
|---|---|
| symbol | allocations from oldest to newest |
| symbol + startTime | oldest allocations since startTime |
| symbol + endTime | newest allocations until endTime |
| symbol + startTime + endTime | allocations within the time range |
| symbol + fromAllocationId | allocations by allocation ID |
| symbol + orderId | allocations related to an order starting with |
oldest | symbol + orderId + fromAllocationId | allocations related to an order by allocation ID |
Note: The time between startTime and endTime can't be longer than 24 hours.
|
inline |
Asynchronous my_allocations().
Completes with void(std::exception_ptr, common::WebsocketApiResponse<std::vector<MyAllocationsResponseResultInner>>).
|
nodiscard |
Query Relevant Filters (USER_DATA).
myFilters.
Retrieves the list of filters relevant to an account on a given symbol. This is the only method that shows if an account has MAX_ASSET filters applied to it.
Weight(IP): 40
Security Type: USER_DATA
Notes: Data Source: Memory
|
inline |
Asynchronous my_filters().
Completes with void(std::exception_ptr, common::WebsocketApiResponse<MyFiltersResponse>).
|
nodiscard |
Account prevented matches (USER_DATA).
myPreventedMatches.
Displays the list of orders that were expired due to STP.
These are the combinations supported:
| Weight: Case | Weight |
|---|---|
| If symbol is invalid | 2 |
| Querying by preventedMatchId | 2 |
| Querying by orderId | 20 |
Security Type: USER_DATA
Notes: Data Source: Database
|
inline |
Asynchronous my_prevented_matches().
Completes with void(std::exception_ptr, common::WebsocketApiResponse<std::vector<MyPreventedMatchesResponseResultInner>>).
|
nodiscard |
Account trade history (USER_DATA).
myTrades.
Query information about all your trades, filtered by time range.
| Weight: Condition | Weight |
|---|---|
| Without orderId | 20 |
| With orderId | 5 |
Security Type: USER_DATA
Notes: Data Source: Memory => Database
Notes:
|
inline |
Asynchronous my_trades().
Completes with void(std::exception_ptr, common::WebsocketApiResponse<std::vector<MyTradesResponseResultInner>>).
|
nodiscard |
Current open Order lists (USER_DATA).
openOrderLists.status.
Query execution status of all open order lists.
If you need to continuously monitor order status updates, please consider using WebSocket Streams:
Weight(IP): 6
Security Type: USER_DATA
Notes: Data Source: Memory -> Database
|
inline |
Asynchronous open_order_lists_status().
Completes with void(std::exception_ptr, common::WebsocketApiResponse<std::vector<OpenOrderListsStatusResponseResultInner>>).
|
nodiscard |
Current open orders (USER_DATA).
openOrders.status.
Query execution status of all open orders.
If you need to continuously monitor order status updates, please consider using WebSocket Streams:
Weight: | Parameter | Weight | | ------— | ---— | | symbol | 6 | | none | 80 |
Security Type: USER_DATA
Notes: Data Source: Memory => Database
Response Notes: Note: The payload above does not show all fields that can appear. Please refer to Conditional fields in Order Responses.
|
inline |
Asynchronous open_orders_status().
Completes with void(std::exception_ptr, common::WebsocketApiResponse<std::vector<OpenOrdersStatusResponseResultInner>>).
|
nodiscard |
Query Order Amendments (USER_DATA).
order.amendments.
Queries all amendments of a single order.
Weight(IP): 4
Security Type: USER_DATA
Notes: Data Source: Database
|
inline |
Asynchronous order_amendments().
Completes with void(std::exception_ptr, common::WebsocketApiResponse<std::vector<OrderAmendmentsResponseResultInner>>).
|
nodiscard |
Query Order list (USER_DATA).
orderList.status.
Check execution status of an Order list.
For execution status of individual orders, use order.status.
Weight(IP): 4
Security Type: USER_DATA
Notes: Data Source: Database
Notes:
|
inline |
Asynchronous order_list_status().
Completes with void(std::exception_ptr, common::WebsocketApiResponse<OrderListStatusResponseResult>).
|
nodiscard |
Query order (USER_DATA).
order.status.
Check execution status of an order.
Weight(IP): 4
Security Type: USER_DATA
Notes: Data Source: Memory => Database
Notes:
Response Notes: Note: The payload above does not show all fields that can appear. Please refer to Conditional fields in Order Responses.
|
inline |
Asynchronous order_status().
Completes with void(std::exception_ptr, common::WebsocketApiResponse<OrderStatusResponseResult>).