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

#include <transfer_api.hpp>

Public Member Functions

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

Constructor & Destructor Documentation

◆ TransferApi()

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

Member Function Documentation

◆ apply_mm_deposit()

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

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::TransferApi::async_apply_mm_deposit ( const ApplyMmDepositParams & params,
CompletionToken && token ) const
inline

Asynchronous apply_mm_deposit().

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

◆ apply_mm_withdraw()

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

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::TransferApi::async_apply_mm_withdraw ( const ApplyMmWithdrawParams & params,
CompletionToken && token ) const
inline

Asynchronous apply_mm_withdraw().

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

◆ create_inbound_transfer()

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

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::TransferApi::async_create_inbound_transfer ( const CreateInboundTransferParams & params,
CompletionToken && token ) const
inline

Asynchronous create_inbound_transfer().

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

◆ create_outbound_transfer()

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

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::TransferApi::async_create_outbound_transfer ( const CreateOutboundTransferParams & params,
CompletionToken && token ) const
inline

Asynchronous create_outbound_transfer().

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

◆ query_transfer_list()

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

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::TransferApi::async_query_transfer_list ( const QueryTransferListParams & params,
CompletionToken && token ) const
inline

Asynchronous query_transfer_list().

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

◆ query_transfer_status()

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

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::TransferApi::async_query_transfer_status ( const QueryTransferStatusParams & params,
CompletionToken && token ) const
inline

Asynchronous query_transfer_status().

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