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

#include <redeem_api.hpp>

Public Member Functions

 RedeemApi (std::shared_ptr< common::RestClient > client)
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().

Constructor & Destructor Documentation

◆ RedeemApi()

binance::w3w_prediction::rest_api::RedeemApi::RedeemApi ( std::shared_ptr< common::RestClient > client)
explicit

Member Function Documentation

◆ batch_redeem()

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

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::RedeemApi::async_batch_redeem ( const BatchRedeemParams & params,
CompletionToken && token ) const
inline

Asynchronous batch_redeem().

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

◆ get_redeem_status()

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

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::RedeemApi::async_get_redeem_status ( const GetRedeemStatusParams & params,
CompletionToken && token ) const
inline

Asynchronous get_redeem_status().

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