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

#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 &params={}) const
 Historical Exercise Records.
template<class CompletionToken>
auto async_historical_exercise_records (const HistoricalExerciseRecordsParams &params, CompletionToken &&token) const
 Asynchronous historical_exercise_records().
common::RestApiResponse< IndexPriceResponse > index_price (const IndexPriceParams &params) const
 Index Price.
template<class CompletionToken>
auto async_index_price (const IndexPriceParams &params, CompletionToken &&token) const
 Asynchronous index_price().
common::RestApiResponse< std::vector< std::vector< KlineCandlestickDataItemInner > > > kline_candlestick_data (const KlineCandlestickDataParams &params) const
 Kline/Candlestick Data.
template<class CompletionToken>
auto async_kline_candlestick_data (const KlineCandlestickDataParams &params, CompletionToken &&token) const
 Asynchronous kline_candlestick_data().
common::RestApiResponse< std::vector< OpenInterestResponseInner > > open_interest (const OpenInterestParams &params) const
 Open Interest.
template<class CompletionToken>
auto async_open_interest (const OpenInterestParams &params, CompletionToken &&token) const
 Asynchronous open_interest().
common::RestApiResponse< std::vector< OptionMarkPriceResponseInner > > option_mark_price (const OptionMarkPriceParams &params={}) const
 Option Mark Price.
template<class CompletionToken>
auto async_option_mark_price (const OptionMarkPriceParams &params, CompletionToken &&token) const
 Asynchronous option_mark_price().
common::RestApiResponse< OrderBookResponse > order_book (const OrderBookParams &params) const
 Order Book.
template<class CompletionToken>
auto async_order_book (const OrderBookParams &params, CompletionToken &&token) const
 Asynchronous order_book().
common::RestApiResponse< std::vector< RecentBlockTradesListResponseInner > > recent_block_trades_list (const RecentBlockTradesListParams &params={}) const
 Recent Block Trades List.
template<class CompletionToken>
auto async_recent_block_trades_list (const RecentBlockTradesListParams &params, CompletionToken &&token) const
 Asynchronous recent_block_trades_list().
common::RestApiResponse< std::vector< RecentTradesListResponseInner > > recent_trades_list (const RecentTradesListParams &params) const
 Recent Trades List.
template<class CompletionToken>
auto async_recent_trades_list (const RecentTradesListParams &params, 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 &params={}) const
 24hr Ticker Price Change Statistics
template<class CompletionToken>
auto async_ticker24hr_price_change_statistics (const Ticker24hrPriceChangeStatisticsParams &params, CompletionToken &&token) const
 Asynchronous ticker24hr_price_change_statistics().

Constructor & Destructor Documentation

◆ MarketDataApi()

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

Member Function Documentation

◆ check_server_time()

common::RestApiResponse< CheckServerTimeResponse > binance::derivatives_trading_options::rest_api::MarketDataApi::check_server_time ( ) const
nodiscard

Check Server Time.

GET /eapi/v1/time.

Test connectivity to the Rest API and get the current server time.

Weight(IP): 1

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#check-server-time

◆ async_check_server_time()

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

Asynchronous check_server_time().

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

◆ exchange_information()

common::RestApiResponse< ExchangeInformationResponse > binance::derivatives_trading_options::rest_api::MarketDataApi::exchange_information ( ) const
nodiscard

Exchange Information.

GET /eapi/v1/exchangeInfo.

Current exchange trading rules and symbol information

Weight(IP): 1

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#exchange-information

◆ async_exchange_information()

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

Asynchronous exchange_information().

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

◆ historical_exercise_records()

common::RestApiResponse< std::vector< HistoricalExerciseRecordsResponseInner > > binance::derivatives_trading_options::rest_api::MarketDataApi::historical_exercise_records ( const HistoricalExerciseRecordsParams & params = {}) const
nodiscard

Historical Exercise Records.

GET /eapi/v1/exerciseHistory.

Get historical exercise records.

  • REALISTIC_VALUE_STRICKEN -> Exercised
  • EXTRINSIC_VALUE_EXPIRED -> Expired OTM

Weight(IP): 3

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#historical-exercise-records

◆ async_historical_exercise_records()

template<class CompletionToken>
auto binance::derivatives_trading_options::rest_api::MarketDataApi::async_historical_exercise_records ( const HistoricalExerciseRecordsParams & params,
CompletionToken && token ) const
inline

Asynchronous historical_exercise_records().

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

◆ index_price()

common::RestApiResponse< IndexPriceResponse > binance::derivatives_trading_options::rest_api::MarketDataApi::index_price ( const IndexPriceParams & params) const
nodiscard

Index Price.

GET /eapi/v1/index.

Get spot index price for option underlying.

Weight(IP): 1

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#index-price

◆ async_index_price()

template<class CompletionToken>
auto binance::derivatives_trading_options::rest_api::MarketDataApi::async_index_price ( const IndexPriceParams & params,
CompletionToken && token ) const
inline

Asynchronous index_price().

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

◆ kline_candlestick_data()

common::RestApiResponse< std::vector< std::vector< KlineCandlestickDataItemInner > > > binance::derivatives_trading_options::rest_api::MarketDataApi::kline_candlestick_data ( const KlineCandlestickDataParams & params) const
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:

  • If startTime and endTime are not sent, the most recent klines are returned.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#kline-candlestick-data

◆ async_kline_candlestick_data()

template<class CompletionToken>
auto binance::derivatives_trading_options::rest_api::MarketDataApi::async_kline_candlestick_data ( const KlineCandlestickDataParams & params,
CompletionToken && token ) const
inline

Asynchronous kline_candlestick_data().

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

◆ open_interest()

common::RestApiResponse< std::vector< OpenInterestResponseInner > > binance::derivatives_trading_options::rest_api::MarketDataApi::open_interest ( const OpenInterestParams & params) const
nodiscard

Open Interest.

GET /eapi/v1/openInterest.

Get open interest for specific underlying asset on specific expiration date.

Weight(IP): 0

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#open-interest

◆ async_open_interest()

template<class CompletionToken>
auto binance::derivatives_trading_options::rest_api::MarketDataApi::async_open_interest ( const OpenInterestParams & params,
CompletionToken && token ) const
inline

Asynchronous open_interest().

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

◆ option_mark_price()

common::RestApiResponse< std::vector< OptionMarkPriceResponseInner > > binance::derivatives_trading_options::rest_api::MarketDataApi::option_mark_price ( const OptionMarkPriceParams & params = {}) const
nodiscard

Option Mark Price.

GET /eapi/v1/mark.

Option mark price and greek info.

Weight(IP): 5

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#option-mark-price

◆ async_option_mark_price()

template<class CompletionToken>
auto binance::derivatives_trading_options::rest_api::MarketDataApi::async_option_mark_price ( const OptionMarkPriceParams & params,
CompletionToken && token ) const
inline

Asynchronous option_mark_price().

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

◆ order_book()

common::RestApiResponse< OrderBookResponse > binance::derivatives_trading_options::rest_api::MarketDataApi::order_book ( const OrderBookParams & params) const
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

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#order-book

◆ async_order_book()

template<class CompletionToken>
auto binance::derivatives_trading_options::rest_api::MarketDataApi::async_order_book ( const OrderBookParams & params,
CompletionToken && token ) const
inline

Asynchronous order_book().

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

◆ recent_block_trades_list()

common::RestApiResponse< std::vector< RecentBlockTradesListResponseInner > > binance::derivatives_trading_options::rest_api::MarketDataApi::recent_block_trades_list ( const RecentBlockTradesListParams & params = {}) const
nodiscard

Recent Block Trades List.

GET /eapi/v1/blockTrades.

Get recent block trades

Weight(IP): 5

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#recent-block-trades-list

◆ async_recent_block_trades_list()

template<class CompletionToken>
auto binance::derivatives_trading_options::rest_api::MarketDataApi::async_recent_block_trades_list ( const RecentBlockTradesListParams & params,
CompletionToken && token ) const
inline

Asynchronous recent_block_trades_list().

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

◆ recent_trades_list()

common::RestApiResponse< std::vector< RecentTradesListResponseInner > > binance::derivatives_trading_options::rest_api::MarketDataApi::recent_trades_list ( const RecentTradesListParams & params) const
nodiscard

◆ async_recent_trades_list()

template<class CompletionToken>
auto binance::derivatives_trading_options::rest_api::MarketDataApi::async_recent_trades_list ( const RecentTradesListParams & params,
CompletionToken && token ) const
inline

Asynchronous recent_trades_list().

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

◆ test_connectivity()

common::RestApiResponse< boost::json::value > binance::derivatives_trading_options::rest_api::MarketDataApi::test_connectivity ( ) const
nodiscard

Test Connectivity.

GET /eapi/v1/ping.

Test connectivity to the Rest API.

Weight(IP): 1

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#test-connectivity

◆ async_test_connectivity()

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

Asynchronous test_connectivity().

Completes with void(std::exception_ptr, common::RestApiResponse<boost::json::value>).

◆ ticker24hr_price_change_statistics()

common::RestApiResponse< std::vector< Ticker24hrPriceChangeStatisticsResponseInner > > binance::derivatives_trading_options::rest_api::MarketDataApi::ticker24hr_price_change_statistics ( const Ticker24hrPriceChangeStatisticsParams & params = {}) const
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

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#ticker24hr-price-change-statistics

◆ async_ticker24hr_price_change_statistics()

template<class CompletionToken>
auto binance::derivatives_trading_options::rest_api::MarketDataApi::async_ticker24hr_price_change_statistics ( const Ticker24hrPriceChangeStatisticsParams & params,
CompletionToken && token ) const
inline

Asynchronous ticker24hr_price_change_statistics().

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