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

W3WPrediction REST API client. More...

#include <rest_api.hpp>

Public Member Functions

 RestApi (common::RestApiConfig configuration)
 Throws common::ConfigError if the configuration is invalid.
const common::RestApiConfig & configuration () const noexcept
template<class T>
common::RestApiResponse< T > send_request (std::string endpoint, common::HttpMethod method, common::Params query={}, common::Params body={}) const
 Calls an endpoint the SDK does not wrap yet. T may be boost::json::value.
template<class T>
common::RestApiResponse< T > send_signed_request (std::string endpoint, common::HttpMethod method, common::Params query={}, common::Params body={}) const
 Like send_request, but signed (adds timestamp and signature).
template<class T, class CompletionToken>
auto async_send_request (std::string endpoint, common::HttpMethod method, common::Params query, common::Params body, CompletionToken &&token) const
template<class T, class CompletionToken>
auto async_send_signed_request (std::string endpoint, common::HttpMethod method, common::Params query, common::Params body, CompletionToken &&token) const
common::RestApiResponse< GetMarketDetailResponse > get_market_detail (const GetMarketDetailParams &params) const
 Get Market Detail.
template<class CompletionToken>
auto async_get_market_detail (const GetMarketDetailParams &params, 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 &params={}) const
 List Prediction Markets.
template<class CompletionToken>
auto async_list_prediction_markets (const ListPredictionMarketsParams &params, CompletionToken &&token) const
 Asynchronous list_prediction_markets().
common::RestApiResponse< std::vector< MarketSearchResponseInner > > market_search (const MarketSearchParams &params) const
 Market Search.
template<class CompletionToken>
auto async_market_search (const MarketSearchParams &params, CompletionToken &&token) const
 Asynchronous market_search().
common::RestApiResponse< QueryLastTradePriceResponse > query_last_trade_price (const QueryLastTradePriceParams &params) const
 Query Last Trade Price.
template<class CompletionToken>
auto async_query_last_trade_price (const QueryLastTradePriceParams &params, CompletionToken &&token) const
 Asynchronous query_last_trade_price().
common::RestApiResponse< QueryOrderBookResponse > query_order_book (const QueryOrderBookParams &params) const
 Query Order Book.
template<class CompletionToken>
auto async_query_order_book (const QueryOrderBookParams &params, CompletionToken &&token) const
 Asynchronous query_order_book().
common::RestApiResponse< CreateOtcBlocktradeResponse > create_otc_blocktrade (const CreateOtcBlocktradeParams &params) const
 Create OTC Blocktrade (PREDICTION_TRADE).
template<class CompletionToken>
auto async_create_otc_blocktrade (const CreateOtcBlocktradeParams &params, CompletionToken &&token) const
 Asynchronous create_otc_blocktrade().
common::RestApiResponse< FulfilOtcBlocktradeResponse > fulfil_otc_blocktrade (const FulfilOtcBlocktradeParams &params) const
 Fulfil OTC Blocktrade (PREDICTION_TRADE).
template<class CompletionToken>
auto async_fulfil_otc_blocktrade (const FulfilOtcBlocktradeParams &params, CompletionToken &&token) const
 Asynchronous fulfil_otc_blocktrade().
common::RestApiResponse< GetOtcBlocktradeDetailResponse > get_otc_blocktrade_detail (const GetOtcBlocktradeDetailParams &params) const
 Get OTC Blocktrade Detail (PREDICTION_TRADE).
template<class CompletionToken>
auto async_get_otc_blocktrade_detail (const GetOtcBlocktradeDetailParams &params, CompletionToken &&token) const
 Asynchronous get_otc_blocktrade_detail().
common::RestApiResponse< GetOtcBlocktradeEventsResponse > get_otc_blocktrade_events (const GetOtcBlocktradeEventsParams &params={}) const
 Get OTC Blocktrade Events (PREDICTION_TRADE).
template<class CompletionToken>
auto async_get_otc_blocktrade_events (const GetOtcBlocktradeEventsParams &params, CompletionToken &&token) const
 Asynchronous get_otc_blocktrade_events().
common::RestApiResponse< GetOtcReservedBalancesResponse > get_otc_reserved_balances (const GetOtcReservedBalancesParams &params) const
 Get OTC Reserved Balances (PREDICTION_TRADE).
template<class CompletionToken>
auto async_get_otc_reserved_balances (const GetOtcReservedBalancesParams &params, CompletionToken &&token) const
 Asynchronous get_otc_reserved_balances().
common::RestApiResponse< ListOtcBlocktradesResponse > list_otc_blocktrades (const ListOtcBlocktradesParams &params={}) const
 List OTC Blocktrades (PREDICTION_TRADE).
template<class CompletionToken>
auto async_list_otc_blocktrades (const ListOtcBlocktradesParams &params, CompletionToken &&token) const
 Asynchronous list_otc_blocktrades().
common::RestApiResponse< PreviewOtcBlocktradeResponse > preview_otc_blocktrade (const PreviewOtcBlocktradeParams &params) const
 Preview OTC Blocktrade (PREDICTION_TRADE).
template<class CompletionToken>
auto async_preview_otc_blocktrade (const PreviewOtcBlocktradeParams &params, CompletionToken &&token) const
 Asynchronous preview_otc_blocktrade().
common::RestApiResponse< RemoveOtcBlocktradesResponse > remove_otc_blocktrades (const RemoveOtcBlocktradesParams &params) const
 Remove OTC Blocktrades (PREDICTION_TRADE).
template<class CompletionToken>
auto async_remove_otc_blocktrades (const RemoveOtcBlocktradesParams &params, CompletionToken &&token) const
 Asynchronous remove_otc_blocktrades().
common::RestApiResponse< GetPositionByTokenResponse > get_position_by_token (const GetPositionByTokenParams &params) const
 Get Position by Token (PREDICTION_TRADE).
template<class CompletionToken>
auto async_get_position_by_token (const GetPositionByTokenParams &params, CompletionToken &&token) const
 Asynchronous get_position_by_token().
common::RestApiResponse< QueryPnLResponse > query_pnl (const QueryPnLParams &params) const
 Query PnL (PREDICTION_TRADE).
template<class CompletionToken>
auto async_query_pnl (const QueryPnLParams &params, CompletionToken &&token) const
 Asynchronous query_pnl().
common::RestApiResponse< QueryPositionsResponse > query_positions (const QueryPositionsParams &params) const
 Query Positions (PREDICTION_TRADE).
template<class CompletionToken>
auto async_query_positions (const QueryPositionsParams &params, CompletionToken &&token) const
 Asynchronous query_positions().
common::RestApiResponse< QueryPositionsByFilterResponse > query_positions_by_filter (const QueryPositionsByFilterParams &params={}) const
 Query Positions by Filter (PREDICTION_TRADE).
template<class CompletionToken>
auto async_query_positions_by_filter (const QueryPositionsByFilterParams &params, CompletionToken &&token) const
 Asynchronous query_positions_by_filter().
common::RestApiResponse< QuerySettledPositionHistoryResponse > query_settled_position_history (const QuerySettledPositionHistoryParams &params) const
 Query Settled Position History (PREDICTION_TRADE).
template<class CompletionToken>
auto async_query_settled_position_history (const QuerySettledPositionHistoryParams &params, CompletionToken &&token) const
 Asynchronous query_settled_position_history().
common::RestApiResponse< BatchRedeemResponse > batch_redeem (const BatchRedeemParams &params) const
 Batch Redeem (PREDICTION_TRADE).
template<class CompletionToken>
auto async_batch_redeem (const BatchRedeemParams &params, CompletionToken &&token) const
 Asynchronous batch_redeem().
common::RestApiResponse< GetRedeemStatusResponse > get_redeem_status (const GetRedeemStatusParams &params) const
 Get Redeem Status (PREDICTION_TRADE).
template<class CompletionToken>
auto async_get_redeem_status (const GetRedeemStatusParams &params, CompletionToken &&token) const
 Asynchronous get_redeem_status().
common::RestApiResponse< BatchCancelOrdersResponse > batch_cancel_orders (const BatchCancelOrdersParams &params) const
 Batch Cancel Orders (PREDICTION_TRADE).
template<class CompletionToken>
auto async_batch_cancel_orders (const BatchCancelOrdersParams &params, CompletionToken &&token) const
 Asynchronous batch_cancel_orders().
common::RestApiResponse< GetQuoteResponse > get_quote (const GetQuoteParams &params) const
 Get Quote (PREDICTION_TRADE).
template<class CompletionToken>
auto async_get_quote (const GetQuoteParams &params, CompletionToken &&token) const
 Asynchronous get_quote().
common::RestApiResponse< PlaceOrderResponse > place_order (const PlaceOrderParams &params) const
 Place Order (PREDICTION_TRADE).
template<class CompletionToken>
auto async_place_order (const PlaceOrderParams &params, CompletionToken &&token) const
 Asynchronous place_order().
common::RestApiResponse< QueryActiveOrdersResponse > query_active_orders (const QueryActiveOrdersParams &params) const
 Query Active Orders (PREDICTION_TRADE).
template<class CompletionToken>
auto async_query_active_orders (const QueryActiveOrdersParams &params, CompletionToken &&token) const
 Asynchronous query_active_orders().
common::RestApiResponse< QueryOrderHistoryResponse > query_order_history (const QueryOrderHistoryParams &params) const
 Query Order History (PREDICTION_TRADE).
template<class CompletionToken>
auto async_query_order_history (const QueryOrderHistoryParams &params, CompletionToken &&token) const
 Asynchronous query_order_history().
common::RestApiResponse< ApplyMmDepositResponse > apply_mm_deposit (const ApplyMmDepositParams &params) const
 Apply MM Deposit (PREDICTION_TRADE).
template<class CompletionToken>
auto async_apply_mm_deposit (const ApplyMmDepositParams &params, CompletionToken &&token) const
 Asynchronous apply_mm_deposit().
common::RestApiResponse< ApplyMmWithdrawResponse > apply_mm_withdraw (const ApplyMmWithdrawParams &params) const
 Apply MM Withdraw (PREDICTION_TRADE).
template<class CompletionToken>
auto async_apply_mm_withdraw (const ApplyMmWithdrawParams &params, CompletionToken &&token) const
 Asynchronous apply_mm_withdraw().
common::RestApiResponse< CreateInboundTransferResponse > create_inbound_transfer (const CreateInboundTransferParams &params) const
 Create Inbound Transfer (PREDICTION_TRADE).
template<class CompletionToken>
auto async_create_inbound_transfer (const CreateInboundTransferParams &params, CompletionToken &&token) const
 Asynchronous create_inbound_transfer().
common::RestApiResponse< CreateOutboundTransferResponse > create_outbound_transfer (const CreateOutboundTransferParams &params) const
 Create Outbound Transfer (PREDICTION_TRADE).
template<class CompletionToken>
auto async_create_outbound_transfer (const CreateOutboundTransferParams &params, CompletionToken &&token) const
 Asynchronous create_outbound_transfer().
common::RestApiResponse< QueryTransferListResponse > query_transfer_list (const QueryTransferListParams &params) const
 Query Transfer List (PREDICTION_TRADE).
template<class CompletionToken>
auto async_query_transfer_list (const QueryTransferListParams &params, CompletionToken &&token) const
 Asynchronous query_transfer_list().
common::RestApiResponse< QueryTransferStatusResponse > query_transfer_status (const QueryTransferStatusParams &params) const
 Query Transfer Status (PREDICTION_TRADE).
template<class CompletionToken>
auto async_query_transfer_status (const QueryTransferStatusParams &params, CompletionToken &&token) const
 Asynchronous query_transfer_status().
common::RestApiResponse< GetPortfolioResponse > get_portfolio (const GetPortfolioParams &params) const
 Get Portfolio (PREDICTION_TRADE).
template<class CompletionToken>
auto async_get_portfolio (const GetPortfolioParams &params, CompletionToken &&token) const
 Asynchronous get_portfolio().
common::RestApiResponse< GetQuotaStatusResponse > get_quota_status (const GetQuotaStatusParams &params={}) const
 Get Quota Status (PREDICTION_TRADE).
template<class CompletionToken>
auto async_get_quota_status (const GetQuotaStatusParams &params, CompletionToken &&token) const
 Asynchronous get_quota_status().
common::RestApiResponse< ListPredictionWalletsResponse > list_prediction_wallets (const ListPredictionWalletsParams &params={}) const
 List Prediction Wallets (PREDICTION_TRADE).
template<class CompletionToken>
auto async_list_prediction_wallets (const ListPredictionWalletsParams &params, CompletionToken &&token) const
 Asynchronous list_prediction_wallets().
common::RestApiResponse< QueryPaymentOptionBalancesResponse > query_payment_option_balances (const QueryPaymentOptionBalancesParams &params={}) const
 Query Payment Option Balances (PREDICTION_TRADE).
template<class CompletionToken>
auto async_query_payment_option_balances (const QueryPaymentOptionBalancesParams &params, CompletionToken &&token) const
 Asynchronous query_payment_option_balances().

Static Public Member Functions

static RestApi from_config (common::RestApiConfig config)
 A client for config.base_path, production when it is not set.
static RestApi production (common::RestApiConfig config)
 A client for production (W3w Prediction REST API).

Detailed Description

W3WPrediction REST API client.

Cheap to copy: copies share one common::RestClient (connection pool and executor).

Every endpoint has a blocking form (name(params)) and an asynchronous form (async_name(params, token)) that accepts any Asio completion token.

Constructor & Destructor Documentation

◆ RestApi()

binance::w3w_prediction::rest_api::RestApi::RestApi ( common::RestApiConfig configuration)
explicit

Throws common::ConfigError if the configuration is invalid.

Member Function Documentation

◆ from_config()

RestApi binance::w3w_prediction::rest_api::RestApi::from_config ( common::RestApiConfig config)
staticnodiscard

A client for config.base_path, production when it is not set.

◆ production()

RestApi binance::w3w_prediction::rest_api::RestApi::production ( common::RestApiConfig config)
staticnodiscard

A client for production (W3w Prediction REST API).

◆ configuration()

const common::RestApiConfig & binance::w3w_prediction::rest_api::RestApi::configuration ( ) const
nodiscardnoexcept

◆ send_request()

template<class T>
common::RestApiResponse< T > binance::w3w_prediction::rest_api::RestApi::send_request ( std::string endpoint,
common::HttpMethod method,
common::Params query = {},
common::Params body = {} ) const
inlinenodiscard

Calls an endpoint the SDK does not wrap yet. T may be boost::json::value.

◆ send_signed_request()

template<class T>
common::RestApiResponse< T > binance::w3w_prediction::rest_api::RestApi::send_signed_request ( std::string endpoint,
common::HttpMethod method,
common::Params query = {},
common::Params body = {} ) const
inlinenodiscard

Like send_request, but signed (adds timestamp and signature).

◆ async_send_request()

template<class T, class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_send_request ( std::string endpoint,
common::HttpMethod method,
common::Params query,
common::Params body,
CompletionToken && token ) const
inline

◆ async_send_signed_request()

template<class T, class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_send_signed_request ( std::string endpoint,
common::HttpMethod method,
common::Params query,
common::Params body,
CompletionToken && token ) const
inline

◆ get_market_detail()

common::RestApiResponse< GetMarketDetailResponse > binance::w3w_prediction::rest_api::RestApi::get_market_detail ( const GetMarketDetailParams & params) const
inlinenodiscard

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:

  • status is a case-sensitive string. REGISTERED: registered and not yet resolved, this value alone does not guarantee that trading is available. RESOLVED: the outcome has been determined, it does not mean that the user has already claimed the payout. PAUSED: trading is temporarily suspended and may resume. CLOSED: closed for display, for example the end time has passed or the market was removed, it does not guarantee that trading is closed.
  • markets[].tradingStatus shows whether new orders may be attempted. OPEN: new orders may be attempted, this is the only value that allows new orders. MATCHING_NOT_ENABLED: order matching is not enabled. CANCEL_ONLY: only cancellation is allowed. CLOSED: trading has stopped. Use markets[].tradingStatus, not status, to decide whether to place an order, because a market whose status is CLOSED can still have tradingStatus OPEN. A topic can contain several markets and an order is placed on one market, so only the tradingStatus of that market matters. A successful quote does not guarantee that an order is accepted or filled.
  • outcomes[].winner is returned only after the market is resolved. There is no separate cancelled, invalid or refunded status. A resolved market can pay more than one outcome, in that case several outcomes have winner set to true and price is the settled value per share, for example 0.5 for each of two outcomes.

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#get-market-detail

◆ async_get_market_detail()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_get_market_detail ( const GetMarketDetailParams & params,
CompletionToken && token ) const
inline

Asynchronous get_market_detail().

◆ list_prediction_categories()

common::RestApiResponse< ListPredictionCategoriesResponse > binance::w3w_prediction::rest_api::RestApi::list_prediction_categories ( ) const
inlinenodiscard

List Prediction Categories.

GET /sapi/v1/w3w/wallet/prediction/category/list.

Get all available prediction market categories (L1 and L2).

Weight(IP): 1

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#list-prediction-categories

◆ async_list_prediction_categories()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_list_prediction_categories ( CompletionToken && token) const
inline

◆ list_prediction_markets()

common::RestApiResponse< ListPredictionMarketsResponse > binance::w3w_prediction::rest_api::RestApi::list_prediction_markets ( const ListPredictionMarketsParams & params = {}) const
inlinenodiscard

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:

  • For the values of status and markets[].tradingStatus, see Get Market Detail.

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#list-prediction-markets

◆ async_list_prediction_markets()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_list_prediction_markets ( const ListPredictionMarketsParams & params,
CompletionToken && token ) const
inline

◆ market_search()

common::RestApiResponse< std::vector< MarketSearchResponseInner > > binance::w3w_prediction::rest_api::RestApi::market_search ( const MarketSearchParams & params) const
inlinenodiscard

Market Search.

GET /sapi/v1/w3w/wallet/prediction/market/search.

Semantic search for prediction market topics by keyword.

Weight(IP): 1

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#market-search

◆ async_market_search()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_market_search ( const MarketSearchParams & params,
CompletionToken && token ) const
inline

Asynchronous market_search().

◆ query_last_trade_price()

common::RestApiResponse< QueryLastTradePriceResponse > binance::w3w_prediction::rest_api::RestApi::query_last_trade_price ( const QueryLastTradePriceParams & params) const
inlinenodiscard

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

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#query-last-trade-price

◆ async_query_last_trade_price()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_query_last_trade_price ( const QueryLastTradePriceParams & params,
CompletionToken && token ) const
inline

Asynchronous query_last_trade_price().

◆ query_order_book()

common::RestApiResponse< QueryOrderBookResponse > binance::w3w_prediction::rest_api::RestApi::query_order_book ( const QueryOrderBookParams & params) const
inlinenodiscard

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

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#query-order-book

◆ async_query_order_book()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_query_order_book ( const QueryOrderBookParams & params,
CompletionToken && token ) const
inline

Asynchronous query_order_book().

◆ create_otc_blocktrade()

common::RestApiResponse< CreateOtcBlocktradeResponse > binance::w3w_prediction::rest_api::RestApi::create_otc_blocktrade ( const CreateOtcBlocktradeParams & params) const
inlinenodiscard

Create OTC Blocktrade (PREDICTION_TRADE).

POST /sapi/v1/w3w/wallet/prediction/otc/blocktrade/create.

Create an OTC blocktrade as the maker (BID to buy outcome shares with USDT, or ASK to sell outcome shares for USDT). The maker wallet is resolved server-side by userId; signing is done server-side via SAS typedDataSign. Returns orderId and a one-time secretToken to share out-of-band with the intended taker.

Weight(IP): 200

Security Type: PREDICTION_TRADE

Notes:

  • Restricted to authorized market makers. Requests from unauthorized accounts are rejected — contact BD to request access.
  • Side & Amount Rules:
side makerAmount takerAmount
BUY USDT (wei) shares (wei)
SELL shares (wei) USDT (wei)
  • "Note on <tt>side</tt> encoding: this request uses a string enum (<tt>BUY</tt>/<tt>SELL</tt>). Responses from Get Blocktrade Detail / Preview / List return <tt>side</tt> as an integer and also include a <tt>quoteType</tt> string — both encode the same concept."
Request side Response side (Integer) Response quoteType
BUY 0 "Bid"
SELL 1 "Ask"

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/otc#create-otc-blocktrade

◆ async_create_otc_blocktrade()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_create_otc_blocktrade ( const CreateOtcBlocktradeParams & params,
CompletionToken && token ) const
inline

Asynchronous create_otc_blocktrade().

◆ fulfil_otc_blocktrade()

common::RestApiResponse< FulfilOtcBlocktradeResponse > binance::w3w_prediction::rest_api::RestApi::fulfil_otc_blocktrade ( const FulfilOtcBlocktradeParams & params) const
inlinenodiscard

Fulfil OTC Blocktrade (PREDICTION_TRADE).

POST /sapi/v1/w3w/wallet/prediction/otc/blocktrade/fulfil.

Fulfil an open maker blocktrade as the taker, using the secretToken the maker shared out-of-band. All-or-nothing fill (no partial fill); the taker order is the server-derived symmetric inverse of the maker order.

Weight(IP): 200

Security Type: PREDICTION_TRADE

Notes:

  • Restricted to authorized market makers. Requests from unauthorized accounts are rejected — contact BD to request access.

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/otc#fulfil-otc-blocktrade

◆ async_fulfil_otc_blocktrade()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_fulfil_otc_blocktrade ( const FulfilOtcBlocktradeParams & params,
CompletionToken && token ) const
inline

Asynchronous fulfil_otc_blocktrade().

◆ get_otc_blocktrade_detail()

common::RestApiResponse< GetOtcBlocktradeDetailResponse > binance::w3w_prediction::rest_api::RestApi::get_otc_blocktrade_detail ( const GetOtcBlocktradeDetailParams & params) const
inlinenodiscard

Get OTC Blocktrade Detail (PREDICTION_TRADE).

POST /sapi/v1/w3w/wallet/prediction/otc/blocktrade/detail.

Query the maker's own blocktrade by orderId. Returns full order data including status and secretToken.

Weight(IP): 200

Security Type: PREDICTION_TRADE

Notes:

  • Restricted to authorized market makers. Requests from unauthorized accounts are rejected — contact BD to request access.

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/otc#get-otc-blocktrade-detail

◆ async_get_otc_blocktrade_detail()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_get_otc_blocktrade_detail ( const GetOtcBlocktradeDetailParams & params,
CompletionToken && token ) const
inline

◆ get_otc_blocktrade_events()

common::RestApiResponse< GetOtcBlocktradeEventsResponse > binance::w3w_prediction::rest_api::RestApi::get_otc_blocktrade_events ( const GetOtcBlocktradeEventsParams & params = {}) const
inlinenodiscard

Get OTC Blocktrade Events (PREDICTION_TRADE).

POST /sapi/v1/w3w/wallet/prediction/otc/blocktrade/events.

Paginated feed of blocktrade lifecycle and settlement events (CREATE, FULFIL, MATCH_SUBMIT, MATCH_SUCCESS, EXPIRE, FAILED, etc.).

Weight(IP): 200

Security Type: PREDICTION_TRADE

Notes:

  • Restricted to authorized market makers. Requests from unauthorized accounts are rejected — contact BD to request access.

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/otc#get-otc-blocktrade-events

◆ async_get_otc_blocktrade_events()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_get_otc_blocktrade_events ( const GetOtcBlocktradeEventsParams & params,
CompletionToken && token ) const
inline

◆ get_otc_reserved_balances()

common::RestApiResponse< GetOtcReservedBalancesResponse > binance::w3w_prediction::rest_api::RestApi::get_otc_reserved_balances ( const GetOtcReservedBalancesParams & params) const
inlinenodiscard

Get OTC Reserved Balances (PREDICTION_TRADE).

POST /sapi/v1/w3w/wallet/prediction/otc/blocktrade/reserved-balances.

Query PredictFun reserved balances for the caller's bound wallet — these are funds locked by the caller's open OTC blocktrade orders (maker BID locks USDT, maker ASK locks shares). Not tied to a specific blocktrade id; the path nesting under otc/blocktrade reflects the cause of the lock, not a per-order query. Returns one entry per requested asset, aligned with the request order. Pass {type:"USDT"} for reserved USDT, or {type:"SHARE", tokenId:"..."} for a specific outcome token's reserved shares.

Weight(IP): 200

Security Type: PREDICTION_TRADE

Notes:

  • Restricted to authorized market makers. Requests from unauthorized accounts are rejected — contact BD to request access.
  • AssetQuery:
Name Type Mandatory Description
type STRING YES Asset type. Enum: USDT, SHARE
tokenId STRING NO Outcome token id (present for SHARE entries only)

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/otc#get-otc-reserved-balances

◆ async_get_otc_reserved_balances()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_get_otc_reserved_balances ( const GetOtcReservedBalancesParams & params,
CompletionToken && token ) const
inline

◆ list_otc_blocktrades()

common::RestApiResponse< ListOtcBlocktradesResponse > binance::w3w_prediction::rest_api::RestApi::list_otc_blocktrades ( const ListOtcBlocktradesParams & params = {}) const
inlinenodiscard

List OTC Blocktrades (PREDICTION_TRADE).

POST /sapi/v1/w3w/wallet/prediction/otc/blocktrade/list.

List the maker's own blocktrades with optional status filter and cursor pagination.

Weight(IP): 200

Security Type: PREDICTION_TRADE

Notes:

  • Restricted to authorized market makers. Requests from unauthorized accounts are rejected — contact BD to request access.

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/otc#list-otc-blocktrades

◆ async_list_otc_blocktrades()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_list_otc_blocktrades ( const ListOtcBlocktradesParams & params,
CompletionToken && token ) const
inline

Asynchronous list_otc_blocktrades().

◆ preview_otc_blocktrade()

common::RestApiResponse< PreviewOtcBlocktradeResponse > binance::w3w_prediction::rest_api::RestApi::preview_otc_blocktrade ( const PreviewOtcBlocktradeParams & params) const
inlinenodiscard

Preview OTC Blocktrade (PREDICTION_TRADE).

POST /sapi/v1/w3w/wallet/prediction/otc/blocktrade/preview.

Inspect an open blocktrade by secretToken (no orderId needed). Taker uses this to preview the maker order before fulfilling. Returns the same shape as Get Blocktrade Detail, but orderId is null and secretToken is never returned from this endpoint.

Weight(IP): 200

Security Type: PREDICTION_TRADE

Notes:

  • Restricted to authorized market makers. Requests from unauthorized accounts are rejected — contact BD to request access.

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/otc#preview-otc-blocktrade

◆ async_preview_otc_blocktrade()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_preview_otc_blocktrade ( const PreviewOtcBlocktradeParams & params,
CompletionToken && token ) const
inline

Asynchronous preview_otc_blocktrade().

◆ remove_otc_blocktrades()

common::RestApiResponse< RemoveOtcBlocktradesResponse > binance::w3w_prediction::rest_api::RestApi::remove_otc_blocktrades ( const RemoveOtcBlocktradesParams & params) const
inlinenodiscard

Remove OTC Blocktrades (PREDICTION_TRADE).

POST /sapi/v1/w3w/wallet/prediction/otc/blocktrade/remove.

Cancel open or fulfilled-but-unsettled blocktrades. Terminal orders (already MATCHED/CANCELLED/EXPIRED/FAILED) are returned in noop instead of removed.

Weight(IP): 200

Security Type: PREDICTION_TRADE

Notes:

  • Restricted to authorized market makers. Requests from unauthorized accounts are rejected — contact BD to request access.

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/otc#remove-otc-blocktrades

◆ async_remove_otc_blocktrades()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_remove_otc_blocktrades ( const RemoveOtcBlocktradesParams & params,
CompletionToken && token ) const
inline

Asynchronous remove_otc_blocktrades().

◆ get_position_by_token()

common::RestApiResponse< GetPositionByTokenResponse > binance::w3w_prediction::rest_api::RestApi::get_position_by_token ( const GetPositionByTokenParams & params) const
inlinenodiscard

Get Position by Token (PREDICTION_TRADE).

GET /sapi/v1/w3w/wallet/prediction/position/token.

Get the authenticated user's position detail for a specific prediction token.

Weight(IP): 1

Security Type: PREDICTION_TRADE

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#get-position-by-token

◆ async_get_position_by_token()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_get_position_by_token ( const GetPositionByTokenParams & params,
CompletionToken && token ) const
inline

Asynchronous get_position_by_token().

◆ query_pnl()

common::RestApiResponse< QueryPnLResponse > binance::w3w_prediction::rest_api::RestApi::query_pnl ( const QueryPnLParams & params) const
inlinenodiscard

Query PnL (PREDICTION_TRADE).

GET /sapi/v1/w3w/wallet/prediction/pnl/query.

Query profit and loss records for the authenticated user's prediction positions. When tokenId is provided, returns a single record in pnl; otherwise returns a list in pnlList.

Weight(IP): 1

Security Type: PREDICTION_TRADE

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#query-pn-l

◆ async_query_pnl()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_query_pnl ( const QueryPnLParams & params,
CompletionToken && token ) const
inline

Asynchronous query_pnl().

◆ query_positions()

common::RestApiResponse< QueryPositionsResponse > binance::w3w_prediction::rest_api::RestApi::query_positions ( const QueryPositionsParams & params) const
inlinenodiscard

Query Positions (PREDICTION_TRADE).

GET /sapi/v1/w3w/wallet/prediction/position/list.

Get the authenticated user's prediction token positions with portfolio summary and tab-based filtering.

Weight(IP): 1

Security Type: PREDICTION_TRADE

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#query-positions

◆ async_query_positions()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_query_positions ( const QueryPositionsParams & params,
CompletionToken && token ) const
inline

Asynchronous query_positions().

◆ query_positions_by_filter()

common::RestApiResponse< QueryPositionsByFilterResponse > binance::w3w_prediction::rest_api::RestApi::query_positions_by_filter ( const QueryPositionsByFilterParams & params = {}) const
inlinenodiscard

Query Positions by Filter (PREDICTION_TRADE).

GET /sapi/v1/w3w/wallet/prediction/position/filter.

Get prediction positions filtered by wallet address and/or market topic ID. Both parameters are optional.

Weight(IP): 1

Security Type: PREDICTION_TRADE

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#query-positions-by-filter

◆ async_query_positions_by_filter()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_query_positions_by_filter ( const QueryPositionsByFilterParams & params,
CompletionToken && token ) const
inline

◆ query_settled_position_history()

common::RestApiResponse< QuerySettledPositionHistoryResponse > binance::w3w_prediction::rest_api::RestApi::query_settled_position_history ( const QuerySettledPositionHistoryParams & params) const
inlinenodiscard

Query Settled Position History (PREDICTION_TRADE).

GET /sapi/v1/w3w/wallet/prediction/position/settled-history.

Get the authenticated user's settled (resolved) prediction position history with optional filters.

Weight(IP): 1

Security Type: PREDICTION_TRADE

Response Notes:

  • There is no separate cancelled, invalid or refunded status. A resolved market pays each outcome by its payout ratio, which can be fractional, for example 0.5 for each of two outcomes. This is not a refund of the purchase cost. Use finalOutcome, isWinner, claimAmount and redeemStatus together with your own claim records, and Get Market Detail for outcomes[].winner.

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#query-settled-position-history

◆ async_query_settled_position_history()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_query_settled_position_history ( const QuerySettledPositionHistoryParams & params,
CompletionToken && token ) const
inline

◆ batch_redeem()

common::RestApiResponse< BatchRedeemResponse > binance::w3w_prediction::rest_api::RestApi::batch_redeem ( const BatchRedeemParams & params) const
inlinenodiscard

Batch Redeem (PREDICTION_TRADE).

POST /sapi/v1/w3w/wallet/prediction/batch-redeem.

Redeem one or more settled prediction tokens on-chain to claim winnings. Requires SAS authorization.

Weight(IP): 1

Security Type: PREDICTION_TRADE

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/redeem#batch-redeem

◆ async_batch_redeem()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_batch_redeem ( const BatchRedeemParams & params,
CompletionToken && token ) const
inline

Asynchronous batch_redeem().

◆ get_redeem_status()

common::RestApiResponse< GetRedeemStatusResponse > binance::w3w_prediction::rest_api::RestApi::get_redeem_status ( const GetRedeemStatusParams & params) const
inlinenodiscard

Get Redeem Status (PREDICTION_TRADE).

GET /sapi/v1/w3w/wallet/prediction/redeem/status.

Query the on-chain transaction status of a previously submitted redeem request.

Weight(IP): 1

Security Type: PREDICTION_TRADE

Response Notes:

  • Status values:
Value Description
PENDING Transaction submitted, awaiting confirmation
CONFIRMED Transaction confirmed on-chain
FAILED Transaction failed
NOT_FOUND Transaction hash not found

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/redeem#get-redeem-status

◆ async_get_redeem_status()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_get_redeem_status ( const GetRedeemStatusParams & params,
CompletionToken && token ) const
inline

Asynchronous get_redeem_status().

◆ batch_cancel_orders()

common::RestApiResponse< BatchCancelOrdersResponse > binance::w3w_prediction::rest_api::RestApi::batch_cancel_orders ( const BatchCancelOrdersParams & params) const
inlinenodiscard

Batch Cancel Orders (PREDICTION_TRADE).

POST /sapi/v1/w3w/wallet/prediction/trade/batch-cancel.

Cancel one or more active prediction orders in a single request. Requires SAS authorization.

Known Issue — Bracket Encoding Incompatibility: This endpoint uses indexed bracket notation (cancelInfoList[0].orderId). Binance SAPI signature verification runs over the raw, unencoded canonical string. However, mainstream HTTP libraries (Python requests, Java HttpURLConnection/URI, Go net/url, Node.js url) automatically percent-encode [ → %5B and ] → %5D, producing a signature mismatch with error -1022 Signature for this request is not valid. Postman is unaffected because it does not encode keys.

Workarounds (use low-level HTTP APIs that do not normalize URLs):

  • Python: use http.client (stdlib) and hand-build the body string.
  • Java: use HttpURLConnection and write the raw body bytes directly.
  • Go: use strings.NewReader with a hand-built body instead of url.Values.Encode().

Weight(IP): 1

Security Type: PREDICTION_TRADE

Notes:

  • Use dot notation for nested list fields: cancelInfoList[0].orderId, cancelInfoList[1].orderId, etc.
  • vendor does not need to be supplied. The server automatically sets the correct vendor (predict_fun) for every item in the batch.

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#batch-cancel-orders

◆ async_batch_cancel_orders()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_batch_cancel_orders ( const BatchCancelOrdersParams & params,
CompletionToken && token ) const
inline

Asynchronous batch_cancel_orders().

◆ get_quote()

common::RestApiResponse< GetQuoteResponse > binance::w3w_prediction::rest_api::RestApi::get_quote ( const GetQuoteParams & params) const
inlinenodiscard

Get Quote (PREDICTION_TRADE).

POST /sapi/v1/w3w/wallet/prediction/trade/get-quote.

Get a price quote for a prediction order. The returned quoteId must be used in the subsequent Place Order request.

Weight(IP): 1

Security Type: PREDICTION_TRADE

Response Notes:

  • feeAmount is a string because it is denominated in wei (18 decimals) and may exceed JavaScript's safe integer range. feeDiscountBps is also a string to allow fractional basis-point values in the future. feeRateBps and slippageBps are integers and will never exceed safe integer bounds.
  • Minimum order amount: The minimum order amount is set by the server and the upstream market rules and may change, so no fixed value is documented. BUY orders are checked by amount (amountIn) and SELL orders by share quantity, for both MARKET and LIMIT orders. If the amountIn of a BUY order is below the minimum, the server returns -9000 with the message Your order amount is too small. A successful quote does not guarantee that the order is accepted or filled, so check the error message and the final order status.

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#get-quote

◆ async_get_quote()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_get_quote ( const GetQuoteParams & params,
CompletionToken && token ) const
inline

Asynchronous get_quote().

◆ place_order()

common::RestApiResponse< PlaceOrderResponse > binance::w3w_prediction::rest_api::RestApi::place_order ( const PlaceOrderParams & params) const
inlinenodiscard

Place Order (PREDICTION_TRADE).

POST /sapi/v1/w3w/wallet/prediction/trade/place-order-bundle.

Place a prediction order using a previously obtained quote. Requires SAS authorization.

Weight(IP): 1

Security Type: PREDICTION_TRADE

Notes:

  • Validation rules:
orderType timeInForce priceLimit
MARKET Must be FOK Not required
LIMIT Must be GTC Required, must be > 0

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#place-order

◆ async_place_order()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_place_order ( const PlaceOrderParams & params,
CompletionToken && token ) const
inline

Asynchronous place_order().

◆ query_active_orders()

common::RestApiResponse< QueryActiveOrdersResponse > binance::w3w_prediction::rest_api::RestApi::query_active_orders ( const QueryActiveOrdersParams & params) const
inlinenodiscard

Query Active Orders (PREDICTION_TRADE).

GET /sapi/v1/w3w/wallet/prediction/order/list.

Get active (open) prediction orders for the authenticated user.

Weight(IP): 1

Security Type: PREDICTION_TRADE

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#query-active-orders

◆ async_query_active_orders()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_query_active_orders ( const QueryActiveOrdersParams & params,
CompletionToken && token ) const
inline

Asynchronous query_active_orders().

◆ query_order_history()

common::RestApiResponse< QueryOrderHistoryResponse > binance::w3w_prediction::rest_api::RestApi::query_order_history ( const QueryOrderHistoryParams & params) const
inlinenodiscard

Query Order History (PREDICTION_TRADE).

GET /sapi/v1/w3w/wallet/prediction/order/history.

Get historical prediction orders (all statuses) for the authenticated user, with optional filters.

Weight(IP): 1

Security Type: PREDICTION_TRADE

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#query-order-history

◆ async_query_order_history()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_query_order_history ( const QueryOrderHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous query_order_history().

◆ apply_mm_deposit()

common::RestApiResponse< ApplyMmDepositResponse > binance::w3w_prediction::rest_api::RestApi::apply_mm_deposit ( const ApplyMmDepositParams & params) const
inlinenodiscard

Apply MM Deposit (PREDICTION_TRADE).

POST /sapi/v1/w3w/wallet/prediction/deposit/apply.

Move funds from the user's bound CeDeFi MPC wallet to their CEX account (SPOT/FUNDING) via a contract escrow + credit flow. The maker wallet is resolved server-side by userId; the caller does not pass wallet or signature.

Weight(IP): 1

Security Type: PREDICTION_TRADE

Notes:

  • Restricted to authorized market makers. Requests from unauthorized accounts are rejected — contact BD to request access.
  • "Note on <tt>fromToken</tt> / <tt>toToken</tt>: typically the same symbol (e.g. both <tt>USDT</tt>). When they differ, the backend may attempt a swap, but cross-symbol conversion is not guaranteed for all pairs — prefer using the same symbol."

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/transfer#apply-mm-deposit

◆ async_apply_mm_deposit()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_apply_mm_deposit ( const ApplyMmDepositParams & params,
CompletionToken && token ) const
inline

Asynchronous apply_mm_deposit().

◆ apply_mm_withdraw()

common::RestApiResponse< ApplyMmWithdrawResponse > binance::w3w_prediction::rest_api::RestApi::apply_mm_withdraw ( const ApplyMmWithdrawParams & params) const
inlinenodiscard

Apply MM Withdraw (PREDICTION_TRADE).

POST /sapi/v1/w3w/wallet/prediction/withdraw/apply.

Withdraw funds from the user's CEX account (SPOT/FUNDING) to their bound CeDeFi MPC wallet address. Unlike v1/capital/withdraw/apply, the caller does NOT pass address; the backend resolves the user's bound CeDeFi MPC wallet address by userId and reuses the existing capital withdraw flow with that address as the target.

Weight(IP): 1

Security Type: PREDICTION_TRADE

Notes:

  • Restricted to authorized market makers. Requests from unauthorized accounts are rejected — contact BD to request access.
  • walletType Validation:
Value Behavior
null Allowed — defaults to SPOT
0 Allowed — source = SPOT
1 Allowed — source = FUNDING
Other (e.g. 99) Rejected — returns validation error
  • "Note on field naming: this endpoint uses <tt>walletType</tt> (INT <tt>0</tt>/<tt>1</tt>) for the source CEX account, while Apply MM Deposit uses <tt>accountType</tt> (STRING <tt>SPOT</tt>/<tt>FUNDING</tt>) for the target. The difference is intentional: withdraw reuses the existing <tt>v1/capital/withdraw/apply</tt> flow, which inherits that flow's integer <tt>walletType</tt> field."

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/transfer#apply-mm-withdraw

◆ async_apply_mm_withdraw()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_apply_mm_withdraw ( const ApplyMmWithdrawParams & params,
CompletionToken && token ) const
inline

Asynchronous apply_mm_withdraw().

◆ create_inbound_transfer()

common::RestApiResponse< CreateInboundTransferResponse > binance::w3w_prediction::rest_api::RestApi::create_inbound_transfer ( const CreateInboundTransferParams & params) const
inlinenodiscard

Create Inbound Transfer (PREDICTION_TRADE).

POST /sapi/v1/w3w/wallet/prediction/transfer/inbound.

Transfer funds from the prediction wallet back to the user's CEX account (SPOT or FUNDING). Requires SAS authorization.

⚠️ SAS Authorization Required: This endpoint enforces SAS (Self-Authorization Service) authorization. If SAS is not enabled for the wallet, the request will be rejected with -31003 SAS authorization required. Enable SAS for your wallet before calling this endpoint.

Weight(IP): 1

Security Type: PREDICTION_TRADE

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/transfer#create-inbound-transfer

◆ async_create_inbound_transfer()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_create_inbound_transfer ( const CreateInboundTransferParams & params,
CompletionToken && token ) const
inline

◆ create_outbound_transfer()

common::RestApiResponse< CreateOutboundTransferResponse > binance::w3w_prediction::rest_api::RestApi::create_outbound_transfer ( const CreateOutboundTransferParams & params) const
inlinenodiscard

Create Outbound Transfer (PREDICTION_TRADE).

POST /sapi/v1/w3w/wallet/prediction/transfer/outbound.

Transfer funds from the user's CEX account (SPOT or FUNDING) into the prediction wallet. Requires SAS authorization.

Weight(IP): 1

Security Type: PREDICTION_TRADE

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/transfer#create-outbound-transfer

◆ async_create_outbound_transfer()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_create_outbound_transfer ( const CreateOutboundTransferParams & params,
CompletionToken && token ) const
inline

◆ query_transfer_list()

common::RestApiResponse< QueryTransferListResponse > binance::w3w_prediction::rest_api::RestApi::query_transfer_list ( const QueryTransferListParams & params) const
inlinenodiscard

Query Transfer List (PREDICTION_TRADE).

GET /sapi/v1/w3w/wallet/prediction/transfer/list.

Get the authenticated user's prediction wallet transfer history within a date range.

Weight(IP): 1

Security Type: PREDICTION_TRADE

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/transfer#query-transfer-list

◆ async_query_transfer_list()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_query_transfer_list ( const QueryTransferListParams & params,
CompletionToken && token ) const
inline

Asynchronous query_transfer_list().

◆ query_transfer_status()

common::RestApiResponse< QueryTransferStatusResponse > binance::w3w_prediction::rest_api::RestApi::query_transfer_status ( const QueryTransferStatusParams & params) const
inlinenodiscard

Query Transfer Status (PREDICTION_TRADE).

GET /sapi/v1/w3w/wallet/prediction/transfer/status.

Query the current status of a prediction wallet transfer by transfer ID.

status values: Terminal states are COMPLETED and FAILED. Intermediate states are PROCESSING and PENDING. Do not poll for SUCCESS — it is not a valid terminal state.

Weight(IP): 1

Security Type: PREDICTION_TRADE

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/transfer#query-transfer-status

◆ async_query_transfer_status()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_query_transfer_status ( const QueryTransferStatusParams & params,
CompletionToken && token ) const
inline

Asynchronous query_transfer_status().

◆ get_portfolio()

common::RestApiResponse< GetPortfolioResponse > binance::w3w_prediction::rest_api::RestApi::get_portfolio ( const GetPortfolioParams & params) const
inlinenodiscard

Get Portfolio (PREDICTION_TRADE).

GET /sapi/v1/w3w/wallet/prediction/pnl/portfolio.

Get the authenticated user's prediction portfolio overview including active positions count, aggregated PnL, and full position list.

Weight(IP): 1

Security Type: PREDICTION_TRADE

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/wallet#get-portfolio

◆ async_get_portfolio()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_get_portfolio ( const GetPortfolioParams & params,
CompletionToken && token ) const
inline

Asynchronous get_portfolio().

◆ get_quota_status()

common::RestApiResponse< GetQuotaStatusResponse > binance::w3w_prediction::rest_api::RestApi::get_quota_status ( const GetQuotaStatusParams & params = {}) const
inlinenodiscard

Get Quota Status (PREDICTION_TRADE).

GET /sapi/v1/w3w/wallet/prediction/quota/limit/status.

Query the current user's daily trading quota limit and remaining allowance for prediction markets.

Weight(IP): 1

Security Type: PREDICTION_TRADE

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/wallet#get-quota-status

◆ async_get_quota_status()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_get_quota_status ( const GetQuotaStatusParams & params,
CompletionToken && token ) const
inline

Asynchronous get_quota_status().

◆ list_prediction_wallets()

common::RestApiResponse< ListPredictionWalletsResponse > binance::w3w_prediction::rest_api::RestApi::list_prediction_wallets ( const ListPredictionWalletsParams & params = {}) const
inlinenodiscard

List Prediction Wallets (PREDICTION_TRADE).

GET /sapi/v1/w3w/wallet/prediction/wallet/list.

Get all prediction wallets registered for the authenticated user.

Weight(IP): 1

Security Type: PREDICTION_TRADE

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/wallet#list-prediction-wallets

◆ async_list_prediction_wallets()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_list_prediction_wallets ( const ListPredictionWalletsParams & params,
CompletionToken && token ) const
inline

◆ query_payment_option_balances()

common::RestApiResponse< QueryPaymentOptionBalancesResponse > binance::w3w_prediction::rest_api::RestApi::query_payment_option_balances ( const QueryPaymentOptionBalancesParams & params = {}) const
inlinenodiscard

Query Payment Option Balances (PREDICTION_TRADE).

GET /sapi/v1/w3w/wallet/prediction/balance/payment-options.

Get available balances for each payment option that can be used for prediction trading.

Weight(IP): 1

Security Type: PREDICTION_TRADE

See https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/wallet#query-payment-option-balances

◆ async_query_payment_option_balances()

template<class CompletionToken>
auto binance::w3w_prediction::rest_api::RestApi::async_query_payment_option_balances ( const QueryPaymentOptionBalancesParams & params,
CompletionToken && token ) const
inline