|
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< AggregatedTradesResponse > | aggregated_trades (const AggregatedTradesParams ¶ms) const |
| Aggregated Trades. | |
| template<class CompletionToken> | |
| auto | async_aggregated_trades (const AggregatedTradesParams ¶ms, CompletionToken &&token) const |
| Asynchronous aggregated_trades(). | |
| common::RestApiResponse< FullDepthResponse > | full_depth (const FullDepthParams ¶ms) const |
| Full Depth. | |
| template<class CompletionToken> | |
| auto | async_full_depth (const FullDepthParams ¶ms, CompletionToken &&token) const |
| Asynchronous full_depth(). | |
| common::RestApiResponse< GetExchangeInfoResponse > | get_exchange_info () const |
| Get Exchange Info. | |
| template<class CompletionToken> | |
| auto | async_get_exchange_info (CompletionToken &&token) const |
| Asynchronous get_exchange_info(). | |
| common::RestApiResponse< KlinesResponse > | klines (const KlinesParams ¶ms) const |
| Klines. | |
| template<class CompletionToken> | |
| auto | async_klines (const KlinesParams ¶ms, CompletionToken &&token) const |
| Asynchronous klines(). | |
| common::RestApiResponse< TickerResponse > | ticker (const TickerParams ¶ms) const |
| Ticker. | |
| template<class CompletionToken> | |
| auto | async_ticker (const TickerParams ¶ms, CompletionToken &&token) const |
| Asynchronous ticker(). | |
| common::RestApiResponse< TokenListResponse > | token_list () const |
| Token List. | |
| template<class CompletionToken> | |
| auto | async_token_list (CompletionToken &&token) const |
| Asynchronous token_list(). | |
|
explicit |
|
nodiscard |
Aggregated Trades.
GET /bapi/defi/v1/public/alpha-trade/agg-trades.
Retrieves compressed, aggregated historical trades for a specific symbol. Useful for recent trade history.
|
inline |
Asynchronous aggregated_trades().
Completes with void(std::exception_ptr, common::RestApiResponse<AggregatedTradesResponse>).
|
nodiscard |
Full Depth.
GET /bapi/defi/v1/public/alpha-trade/fullDepth.
Fetches the full order book depth (UI & API orders) for a symbol, including bid and ask orders with their prices and quantities.
|
inline |
Asynchronous full_depth().
Completes with void(std::exception_ptr, common::RestApiResponse<FullDepthResponse>).
|
nodiscard |
Get Exchange Info.
GET /bapi/defi/v1/public/alpha-trade/get-exchange-info.
Fetches general exchange information, such as supported symbols, rate limits, and server time.
|
inline |
Asynchronous get_exchange_info().
Completes with void(std::exception_ptr, common::RestApiResponse<GetExchangeInfoResponse>).
|
nodiscard |
Klines.
GET /bapi/defi/v1/public/alpha-trade/klines.
Fetches Kline/candlestick bars for a symbol, which include open/high/low/close prices and volume over intervals. Useful for charting and analysis.
|
inline |
Asynchronous klines().
Completes with void(std::exception_ptr, common::RestApiResponse<KlinesResponse>).
|
nodiscard |
Ticker.
GET /bapi/defi/v1/public/alpha-trade/ticker.
Gets the 24-hour rolling window price change statistics for a symbol, including volume and price changes.
|
inline |
Asynchronous ticker().
Completes with void(std::exception_ptr, common::RestApiResponse<TickerResponse>).
|
nodiscard |
Token List.
GET /bapi/defi/v1/public/wallet-direct/buw/wallet/cex/alpha/all/token/list.
Retrieves a list of all available ALPHA tokens, including their IDs and symbols. Use this to find the token ID for constructing symbols in other endpoints.
|
inline |
Asynchronous token_list().
Completes with void(std::exception_ptr, common::RestApiResponse<TokenListResponse>).