|
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< CheckServerTimeResponse > | check_server_time () const |
| Check Server Time. | |
| template<class CompletionToken> | |
| auto | async_check_server_time (CompletionToken &&token) const |
| Asynchronous check_server_time(). | |
| common::RestApiResponse< ExchangeInformationResponse > | exchange_information () const |
| Exchange Information. | |
| template<class CompletionToken> | |
| auto | async_exchange_information (CompletionToken &&token) const |
| Asynchronous exchange_information(). | |
| common::RestApiResponse< std::vector< HistoricalExerciseRecordsResponseInner > > | historical_exercise_records (const HistoricalExerciseRecordsParams ¶ms={}) const |
| Historical Exercise Records. | |
| template<class CompletionToken> | |
| auto | async_historical_exercise_records (const HistoricalExerciseRecordsParams ¶ms, CompletionToken &&token) const |
| Asynchronous historical_exercise_records(). | |
| common::RestApiResponse< IndexPriceResponse > | index_price (const IndexPriceParams ¶ms) const |
| Index Price. | |
| template<class CompletionToken> | |
| auto | async_index_price (const IndexPriceParams ¶ms, CompletionToken &&token) const |
| Asynchronous index_price(). | |
| common::RestApiResponse< std::vector< std::vector< KlineCandlestickDataItemInner > > > | kline_candlestick_data (const KlineCandlestickDataParams ¶ms) const |
| Kline/Candlestick Data. | |
| template<class CompletionToken> | |
| auto | async_kline_candlestick_data (const KlineCandlestickDataParams ¶ms, CompletionToken &&token) const |
| Asynchronous kline_candlestick_data(). | |
| common::RestApiResponse< std::vector< OpenInterestResponseInner > > | open_interest (const OpenInterestParams ¶ms) const |
| Open Interest. | |
| template<class CompletionToken> | |
| auto | async_open_interest (const OpenInterestParams ¶ms, CompletionToken &&token) const |
| Asynchronous open_interest(). | |
| common::RestApiResponse< std::vector< OptionMarkPriceResponseInner > > | option_mark_price (const OptionMarkPriceParams ¶ms={}) const |
| Option Mark Price. | |
| template<class CompletionToken> | |
| auto | async_option_mark_price (const OptionMarkPriceParams ¶ms, CompletionToken &&token) const |
| Asynchronous option_mark_price(). | |
| common::RestApiResponse< OrderBookResponse > | order_book (const OrderBookParams ¶ms) const |
| Order Book. | |
| template<class CompletionToken> | |
| auto | async_order_book (const OrderBookParams ¶ms, CompletionToken &&token) const |
| Asynchronous order_book(). | |
| common::RestApiResponse< std::vector< RecentBlockTradesListResponseInner > > | recent_block_trades_list (const RecentBlockTradesListParams ¶ms={}) const |
| Recent Block Trades List. | |
| template<class CompletionToken> | |
| auto | async_recent_block_trades_list (const RecentBlockTradesListParams ¶ms, CompletionToken &&token) const |
| Asynchronous recent_block_trades_list(). | |
| common::RestApiResponse< std::vector< RecentTradesListResponseInner > > | recent_trades_list (const RecentTradesListParams ¶ms) const |
| Recent Trades List. | |
| template<class CompletionToken> | |
| auto | async_recent_trades_list (const RecentTradesListParams ¶ms, CompletionToken &&token) const |
| Asynchronous recent_trades_list(). | |
| common::RestApiResponse< boost::json::value > | test_connectivity () const |
| Test Connectivity. | |
| template<class CompletionToken> | |
| auto | async_test_connectivity (CompletionToken &&token) const |
| Asynchronous test_connectivity(). | |
| common::RestApiResponse< std::vector< Ticker24hrPriceChangeStatisticsResponseInner > > | ticker24hr_price_change_statistics (const Ticker24hrPriceChangeStatisticsParams ¶ms={}) const |
| 24hr Ticker Price Change Statistics | |
| template<class CompletionToken> | |
| auto | async_ticker24hr_price_change_statistics (const Ticker24hrPriceChangeStatisticsParams ¶ms, CompletionToken &&token) const |
| Asynchronous ticker24hr_price_change_statistics(). | |
|
explicit |
|
nodiscard |
Check Server Time.
GET /eapi/v1/time.
Test connectivity to the Rest API and get the current server time.
Weight(IP): 1
|
inline |
Asynchronous check_server_time().
Completes with void(std::exception_ptr, common::RestApiResponse<CheckServerTimeResponse>).
|
nodiscard |
Exchange Information.
GET /eapi/v1/exchangeInfo.
Current exchange trading rules and symbol information
Weight(IP): 1
|
inline |
Asynchronous exchange_information().
Completes with void(std::exception_ptr, common::RestApiResponse<ExchangeInformationResponse>).
|
nodiscard |
Historical Exercise Records.
GET /eapi/v1/exerciseHistory.
Get historical exercise records.
Weight(IP): 3
|
inline |
Asynchronous historical_exercise_records().
Completes with void(std::exception_ptr, common::RestApiResponse<std::vector<HistoricalExerciseRecordsResponseInner>>).
|
nodiscard |
Index Price.
GET /eapi/v1/index.
Get spot index price for option underlying.
Weight(IP): 1
|
inline |
Asynchronous index_price().
Completes with void(std::exception_ptr, common::RestApiResponse<IndexPriceResponse>).
|
nodiscard |
Kline/Candlestick Data.
GET /eapi/v1/klines.
Kline/candlestick bars for an option symbol. Klines are uniquely identified by their open time.
Weight(IP): 1
Notes:
|
inline |
Asynchronous kline_candlestick_data().
Completes with void(std::exception_ptr, common::RestApiResponse<std::vector<std::vector<KlineCandlestickDataItemInner>>>).
|
nodiscard |
Open Interest.
GET /eapi/v1/openInterest.
Get open interest for specific underlying asset on specific expiration date.
Weight(IP): 0
|
inline |
Asynchronous open_interest().
Completes with void(std::exception_ptr, common::RestApiResponse<std::vector<OpenInterestResponseInner>>).
|
nodiscard |
Option Mark Price.
GET /eapi/v1/mark.
Option mark price and greek info.
Weight(IP): 5
|
inline |
Asynchronous option_mark_price().
Completes with void(std::exception_ptr, common::RestApiResponse<std::vector<OptionMarkPriceResponseInner>>).
|
nodiscard |
Order Book.
GET /eapi/v1/depth.
Check orderbook depth on specific symbol
| Weight: limit | weight |
|---|---|
| 5, 10, 20, 50 | 1 |
| 100 | 5 |
| 500 | 10 |
| 1000 | 20 |
|
inline |
Asynchronous order_book().
Completes with void(std::exception_ptr, common::RestApiResponse<OrderBookResponse>).
|
nodiscard |
Recent Block Trades List.
GET /eapi/v1/blockTrades.
Get recent block trades
Weight(IP): 5
|
inline |
Asynchronous recent_block_trades_list().
Completes with void(std::exception_ptr, common::RestApiResponse<std::vector<RecentBlockTradesListResponseInner>>).
|
nodiscard |
Recent Trades List.
GET /eapi/v1/trades.
Get recent market trades
Weight(IP): 5
|
inline |
Asynchronous recent_trades_list().
Completes with void(std::exception_ptr, common::RestApiResponse<std::vector<RecentTradesListResponseInner>>).
|
nodiscard |
Test Connectivity.
GET /eapi/v1/ping.
Test connectivity to the Rest API.
Weight(IP): 1
|
inline |
Asynchronous test_connectivity().
Completes with void(std::exception_ptr, common::RestApiResponse<boost::json::value>).
|
nodiscard |
24hr Ticker Price Change Statistics
GET /eapi/v1/ticker.
24 hour rolling window price change statistics.
Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
|
inline |
Asynchronous ticker24hr_price_change_statistics().
Completes with void(std::exception_ptr, common::RestApiResponse<std::vector<Ticker24hrPriceChangeStatisticsResponseInner>>).