|
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< GetMarketDetailResponse > | get_market_detail (const GetMarketDetailParams ¶ms) const |
| Get Market Detail. | |
| template<class CompletionToken> | |
| auto | async_get_market_detail (const GetMarketDetailParams ¶ms, CompletionToken &&token) const |
| Asynchronous get_market_detail(). | |
| common::RestApiResponse< ListPredictionCategoriesResponse > | list_prediction_categories () const |
| List Prediction Categories. | |
| template<class CompletionToken> | |
| auto | async_list_prediction_categories (CompletionToken &&token) const |
| Asynchronous list_prediction_categories(). | |
| common::RestApiResponse< ListPredictionMarketsResponse > | list_prediction_markets (const ListPredictionMarketsParams ¶ms={}) const |
| List Prediction Markets. | |
| template<class CompletionToken> | |
| auto | async_list_prediction_markets (const ListPredictionMarketsParams ¶ms, CompletionToken &&token) const |
| Asynchronous list_prediction_markets(). | |
| common::RestApiResponse< std::vector< MarketSearchResponseInner > > | market_search (const MarketSearchParams ¶ms) const |
| Market Search. | |
| template<class CompletionToken> | |
| auto | async_market_search (const MarketSearchParams ¶ms, CompletionToken &&token) const |
| Asynchronous market_search(). | |
| common::RestApiResponse< QueryLastTradePriceResponse > | query_last_trade_price (const QueryLastTradePriceParams ¶ms) const |
| Query Last Trade Price. | |
| template<class CompletionToken> | |
| auto | async_query_last_trade_price (const QueryLastTradePriceParams ¶ms, CompletionToken &&token) const |
| Asynchronous query_last_trade_price(). | |
| common::RestApiResponse< QueryOrderBookResponse > | query_order_book (const QueryOrderBookParams ¶ms) const |
| Query Order Book. | |
| template<class CompletionToken> | |
| auto | async_query_order_book (const QueryOrderBookParams ¶ms, CompletionToken &&token) const |
| Asynchronous query_order_book(). | |
|
explicit |
|
nodiscard |
Get Market Detail.
GET /sapi/v1/w3w/wallet/prediction/market/detail.
Get full details for a specific prediction market topic, including variant data and timeline.
Weight(IP): 1
Response Notes:
|
inline |
Asynchronous get_market_detail().
Completes with void(std::exception_ptr, common::RestApiResponse<GetMarketDetailResponse>).
|
nodiscard |
List Prediction Categories.
GET /sapi/v1/w3w/wallet/prediction/category/list.
Get all available prediction market categories (L1 and L2).
Weight(IP): 1
|
inline |
Asynchronous list_prediction_categories().
Completes with void(std::exception_ptr, common::RestApiResponse<ListPredictionCategoriesResponse>).
|
nodiscard |
List Prediction Markets.
GET /sapi/v1/w3w/wallet/prediction/market/list.
Get a paginated list of prediction market topics, with optional category and sort filters.
Weight(IP): 1
Response Notes:
|
inline |
Asynchronous list_prediction_markets().
Completes with void(std::exception_ptr, common::RestApiResponse<ListPredictionMarketsResponse>).
|
nodiscard |
Market Search.
GET /sapi/v1/w3w/wallet/prediction/market/search.
Semantic search for prediction market topics by keyword.
Weight(IP): 1
|
inline |
Asynchronous market_search().
Completes with void(std::exception_ptr, common::RestApiResponse<std::vector<MarketSearchResponseInner>>).
|
nodiscard |
Query Last Trade Price.
GET /sapi/v1/w3w/wallet/prediction/order-book/last-trade-price.
Get the most recent trade price for a prediction market.
Weight(IP): 1
|
inline |
Asynchronous query_last_trade_price().
Completes with void(std::exception_ptr, common::RestApiResponse<QueryLastTradePriceResponse>).
|
nodiscard |
Query Order Book.
GET /sapi/v1/w3w/wallet/prediction/order-book.
Get the current order book (bids and asks) for a specific prediction market outcome token.
Weight(IP): 1
|
inline |
Asynchronous query_order_book().
Completes with void(std::exception_ptr, common::RestApiResponse<QueryOrderBookResponse>).