|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
#include <general_api.hpp>
Public Member Functions | |
| GeneralApi (std::shared_ptr< common::WebsocketApi > client) | |
| common::WebsocketApiResponse< ExchangeInfoResponse > | exchange_info (const ExchangeInfoParams ¶ms={}) const |
| Exchange information. | |
| template<class CompletionToken> | |
| auto | async_exchange_info (const ExchangeInfoParams ¶ms, CompletionToken &&token) const |
| Asynchronous exchange_info(). | |
| common::WebsocketApiResponse< ExecutionRulesResponseResult > | execution_rules (const ExecutionRulesParams ¶ms={}) const |
| Query Execution Rules. | |
| template<class CompletionToken> | |
| auto | async_execution_rules (const ExecutionRulesParams ¶ms, CompletionToken &&token) const |
| Asynchronous execution_rules(). | |
| common::WebsocketApiResponse< boost::json::value > | ping (const PingParams ¶ms={}) const |
| Test connectivity. | |
| template<class CompletionToken> | |
| auto | async_ping (const PingParams ¶ms, CompletionToken &&token) const |
| Asynchronous ping(). | |
| common::WebsocketApiResponse< TimeResponseResult > | time (const TimeParams ¶ms={}) const |
| Check server time. | |
| template<class CompletionToken> | |
| auto | async_time (const TimeParams ¶ms, CompletionToken &&token) const |
| Asynchronous time(). | |
|
explicit |
|
nodiscard |
Exchange information.
exchangeInfo.
Query current exchange trading rules, rate limits, and symbol information.
Weight(IP): 20
Security Type: NONE
Notes: Data Source: Memory
Notes:
Examples of Symbol Permissions Interpretation from the Response:
|
inline |
Asynchronous exchange_info().
Completes with void(std::exception_ptr, common::WebsocketApiResponse<ExchangeInfoResponse>).
|
nodiscard |
Query Execution Rules.
executionRules.
Query execution rules for symbols.
| Weight: Parameter | Weight |
|---|---|
| symbol | 2 |
| symbols | 2 for each symbol, capped at a max of 40 |
| symbolStatus | 40 |
| None | 40 |
Security Type: NONE
Notes: Data Source: Memory
Note: No combination of multiple parameters is allowed.
|
inline |
Asynchronous execution_rules().
Completes with void(std::exception_ptr, common::WebsocketApiResponse<ExecutionRulesResponseResult>).
|
nodiscard |
Test connectivity.
ping.
Test connectivity to the WebSocket API.
Note: You can use regular WebSocket ping frames to test connectivity as well, WebSocket API will respond with pong frames as soon as possible. ping request along with time is a safe way to test request-response handling in your application.
Weight(IP): 1
Security Type: NONE
Notes: Data Source: Memory
See https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/ws-api/general#ping
|
inline |
Asynchronous ping().
Completes with void(std::exception_ptr, common::WebsocketApiResponse<boost::json::value>).
|
nodiscard |
Check server time.
time.
Test connectivity to the WebSocket API and get the current server time.
Weight(IP): 1
Security Type: NONE
Notes: Data Source: Memory
See https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/ws-api/general#time
|
inline |
Asynchronous time().
Completes with void(std::exception_ptr, common::WebsocketApiResponse<TimeResponseResult>).