|
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::RestClient > client) | |
| common::RestApiResponse< 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::RestApiResponse< ExecutionRulesResponse > | 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::RestApiResponse< boost::json::value > | ping () const |
| Test connectivity. | |
| template<class CompletionToken> | |
| auto | async_ping (CompletionToken &&token) const |
| Asynchronous ping(). | |
| common::RestApiResponse< TimeResponse > | time () const |
| Check server time. | |
| template<class CompletionToken> | |
| auto | async_time (CompletionToken &&token) const |
| Asynchronous time(). | |
|
explicit |
|
nodiscard |
Exchange information.
GET /api/v3/exchangeInfo.
Current exchange trading rules 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::RestApiResponse<ExchangeInfoResponse>).
|
nodiscard |
Query Execution Rules.
GET /api/v3/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::RestApiResponse<ExecutionRulesResponse>).
|
nodiscard |
Test connectivity.
GET /api/v3/ping.
Test connectivity to the Rest API.
Weight(IP): 1
Security Type: NONE
Notes: Data Source: Memory
See https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/general#ping
|
inline |
Asynchronous ping().
Completes with void(std::exception_ptr, common::RestApiResponse<boost::json::value>).
|
nodiscard |
Check server time.
GET /api/v3/time.
Test connectivity to the Rest 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/rest-api/general#time
|
inline |
Asynchronous time().
Completes with void(std::exception_ptr, common::RestApiResponse<TimeResponse>).