|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
#include <market_data_api.hpp>
Public Member Functions | |
| MarketDataApi (std::shared_ptr< common::RestClient > client) | |
| common::RestApiResponse< ExchangeInfoResponse > | exchange_info (const ExchangeInfoParams ¶ms={}) const |
| Exchange Info (MARKET_DATA). | |
| template<class CompletionToken> | |
| auto | async_exchange_info (const ExchangeInfoParams ¶ms, CompletionToken &&token) const |
| Asynchronous exchange_info(). | |
| common::RestApiResponse< LatestQuoteResponse > | latest_quote (const LatestQuoteParams ¶ms) const |
| Latest Quote (MARKET_DATA). | |
| template<class CompletionToken> | |
| auto | async_latest_quote (const LatestQuoteParams ¶ms, CompletionToken &&token) const |
| Asynchronous latest_quote(). | |
| common::RestApiResponse< std::vector< TokenizedAssetsResponseInner > > | tokenized_assets () const |
| Tokenized Assets (MARKET_DATA). | |
| template<class CompletionToken> | |
| auto | async_tokenized_assets (CompletionToken &&token) const |
| Asynchronous tokenized_assets(). | |
|
explicit |
|
nodiscard |
Exchange Info (MARKET_DATA).
GET /sapi/v1/equity/market/exchangeInfo.
Returns current exchange trading rules and the list of tradable US-equity symbols. MARKET_DATA endpoint — requires an API key (X-MBX-APIKEY) but no signature. Response is served from a server-side cache.
Weight: 1
Security Type: MARKET_DATA
|
inline |
Asynchronous exchange_info().
Completes with void(std::exception_ptr, common::RestApiResponse<ExchangeInfoResponse>).
|
nodiscard |
Latest Quote (MARKET_DATA).
GET /sapi/v1/equity/market/quote.
Returns the latest best bid / best ask for a single US-equity ticker. The returned value is at most ~5 seconds stale. Returns an empty response body (not the literal null) when no quote is available for the supplied ticker (e.g. the ticker is unknown, halted, or de-listed).
Weight: 1
Security Type: MARKET_DATA
|
inline |
Asynchronous latest_quote().
Completes with void(std::exception_ptr, common::RestApiResponse<LatestQuoteResponse>).
|
nodiscard |
Tokenized Assets (MARKET_DATA).
GET /sapi/v1/equity/market/tokenized-assets.
Returns the list of all tokenized assets currently available for mint / redeem, together with each asset's underlying equity symbol and conversion multiplier. MARKET_DATA endpoint — requires an API key (X-MBX-APIKEY) but no signature. Response is served from a server-side cache.
Weight: 1
Security Type: MARKET_DATA
|
inline |
Asynchronous tokenized_assets().
Completes with void(std::exception_ptr, common::RestApiResponse<std::vector<TokenizedAssetsResponseInner>>).