Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
Loading...
Searching...
No Matches
binance::alpha::rest_api::MarketDataApi Class Reference

#include <market_data_api.hpp>

Public Member Functions

 MarketDataApi (std::shared_ptr< common::RestClient > client)
common::RestApiResponse< AggregatedTradesResponse > aggregated_trades (const AggregatedTradesParams &params) const
 Aggregated Trades.
template<class CompletionToken>
auto async_aggregated_trades (const AggregatedTradesParams &params, CompletionToken &&token) const
 Asynchronous aggregated_trades().
common::RestApiResponse< FullDepthResponse > full_depth (const FullDepthParams &params) const
 Full Depth.
template<class CompletionToken>
auto async_full_depth (const FullDepthParams &params, 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 &params) const
 Klines.
template<class CompletionToken>
auto async_klines (const KlinesParams &params, CompletionToken &&token) const
 Asynchronous klines().
common::RestApiResponse< TickerResponse > ticker (const TickerParams &params) const
 Ticker.
template<class CompletionToken>
auto async_ticker (const TickerParams &params, 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().

Constructor & Destructor Documentation

◆ MarketDataApi()

binance::alpha::rest_api::MarketDataApi::MarketDataApi ( std::shared_ptr< common::RestClient > client)
explicit

Member Function Documentation

◆ aggregated_trades()

common::RestApiResponse< AggregatedTradesResponse > binance::alpha::rest_api::MarketDataApi::aggregated_trades ( const AggregatedTradesParams & params) const
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.

See https://developers.binance.com/en/docs/catalog/advanced-trading-alpha-trading/api/rest-api/market-data#aggregated-trades

◆ async_aggregated_trades()

template<class CompletionToken>
auto binance::alpha::rest_api::MarketDataApi::async_aggregated_trades ( const AggregatedTradesParams & params,
CompletionToken && token ) const
inline

Asynchronous aggregated_trades().

Completes with void(std::exception_ptr, common::RestApiResponse<AggregatedTradesResponse>).

◆ full_depth()

common::RestApiResponse< FullDepthResponse > binance::alpha::rest_api::MarketDataApi::full_depth ( const FullDepthParams & params) const
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.

See https://developers.binance.com/en/docs/catalog/advanced-trading-alpha-trading/api/rest-api/market-data#full-depth

◆ async_full_depth()

template<class CompletionToken>
auto binance::alpha::rest_api::MarketDataApi::async_full_depth ( const FullDepthParams & params,
CompletionToken && token ) const
inline

Asynchronous full_depth().

Completes with void(std::exception_ptr, common::RestApiResponse<FullDepthResponse>).

◆ get_exchange_info()

common::RestApiResponse< GetExchangeInfoResponse > binance::alpha::rest_api::MarketDataApi::get_exchange_info ( ) const
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.

See https://developers.binance.com/en/docs/catalog/advanced-trading-alpha-trading/api/rest-api/market-data#get-exchange-info

◆ async_get_exchange_info()

template<class CompletionToken>
auto binance::alpha::rest_api::MarketDataApi::async_get_exchange_info ( CompletionToken && token) const
inline

Asynchronous get_exchange_info().

Completes with void(std::exception_ptr, common::RestApiResponse<GetExchangeInfoResponse>).

◆ klines()

common::RestApiResponse< KlinesResponse > binance::alpha::rest_api::MarketDataApi::klines ( const KlinesParams & params) const
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.

See https://developers.binance.com/en/docs/catalog/advanced-trading-alpha-trading/api/rest-api/market-data#klines

◆ async_klines()

template<class CompletionToken>
auto binance::alpha::rest_api::MarketDataApi::async_klines ( const KlinesParams & params,
CompletionToken && token ) const
inline

Asynchronous klines().

Completes with void(std::exception_ptr, common::RestApiResponse<KlinesResponse>).

◆ ticker()

common::RestApiResponse< TickerResponse > binance::alpha::rest_api::MarketDataApi::ticker ( const TickerParams & params) const
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.

See https://developers.binance.com/en/docs/catalog/advanced-trading-alpha-trading/api/rest-api/market-data#ticker

◆ async_ticker()

template<class CompletionToken>
auto binance::alpha::rest_api::MarketDataApi::async_ticker ( const TickerParams & params,
CompletionToken && token ) const
inline

Asynchronous ticker().

Completes with void(std::exception_ptr, common::RestApiResponse<TickerResponse>).

◆ token_list()

common::RestApiResponse< TokenListResponse > binance::alpha::rest_api::MarketDataApi::token_list ( ) const
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.

See https://developers.binance.com/en/docs/catalog/advanced-trading-alpha-trading/api/rest-api/market-data#token-list

◆ async_token_list()

template<class CompletionToken>
auto binance::alpha::rest_api::MarketDataApi::async_token_list ( CompletionToken && token) const
inline

Asynchronous token_list().

Completes with void(std::exception_ptr, common::RestApiResponse<TokenListResponse>).