|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
#include <transfer_api.hpp>
Public Member Functions | |
| TransferApi (std::shared_ptr< common::RestClient > client) | |
| common::RestApiResponse< ApplyMmDepositResponse > | apply_mm_deposit (const ApplyMmDepositParams ¶ms) const |
| Apply MM Deposit (PREDICTION_TRADE). | |
| template<class CompletionToken> | |
| auto | async_apply_mm_deposit (const ApplyMmDepositParams ¶ms, CompletionToken &&token) const |
| Asynchronous apply_mm_deposit(). | |
| common::RestApiResponse< ApplyMmWithdrawResponse > | apply_mm_withdraw (const ApplyMmWithdrawParams ¶ms) const |
| Apply MM Withdraw (PREDICTION_TRADE). | |
| template<class CompletionToken> | |
| auto | async_apply_mm_withdraw (const ApplyMmWithdrawParams ¶ms, CompletionToken &&token) const |
| Asynchronous apply_mm_withdraw(). | |
| common::RestApiResponse< CreateInboundTransferResponse > | create_inbound_transfer (const CreateInboundTransferParams ¶ms) const |
| Create Inbound Transfer (PREDICTION_TRADE). | |
| template<class CompletionToken> | |
| auto | async_create_inbound_transfer (const CreateInboundTransferParams ¶ms, CompletionToken &&token) const |
| Asynchronous create_inbound_transfer(). | |
| common::RestApiResponse< CreateOutboundTransferResponse > | create_outbound_transfer (const CreateOutboundTransferParams ¶ms) const |
| Create Outbound Transfer (PREDICTION_TRADE). | |
| template<class CompletionToken> | |
| auto | async_create_outbound_transfer (const CreateOutboundTransferParams ¶ms, CompletionToken &&token) const |
| Asynchronous create_outbound_transfer(). | |
| common::RestApiResponse< QueryTransferListResponse > | query_transfer_list (const QueryTransferListParams ¶ms) const |
| Query Transfer List (PREDICTION_TRADE). | |
| template<class CompletionToken> | |
| auto | async_query_transfer_list (const QueryTransferListParams ¶ms, CompletionToken &&token) const |
| Asynchronous query_transfer_list(). | |
| common::RestApiResponse< QueryTransferStatusResponse > | query_transfer_status (const QueryTransferStatusParams ¶ms) const |
| Query Transfer Status (PREDICTION_TRADE). | |
| template<class CompletionToken> | |
| auto | async_query_transfer_status (const QueryTransferStatusParams ¶ms, CompletionToken &&token) const |
| Asynchronous query_transfer_status(). | |
|
explicit |
|
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:
|
inline |
Asynchronous apply_mm_deposit().
Completes with void(std::exception_ptr, common::RestApiResponse<ApplyMmDepositResponse>).
|
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:
| Value | Behavior |
|---|---|
| null | Allowed — defaults to SPOT |
| 0 | Allowed — source = SPOT |
| 1 | Allowed — source = FUNDING |
| Other (e.g. 99) | Rejected — returns validation error |
|
inline |
Asynchronous apply_mm_withdraw().
Completes with void(std::exception_ptr, common::RestApiResponse<ApplyMmWithdrawResponse>).
|
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
|
inline |
Asynchronous create_inbound_transfer().
Completes with void(std::exception_ptr, common::RestApiResponse<CreateInboundTransferResponse>).
|
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
|
inline |
Asynchronous create_outbound_transfer().
Completes with void(std::exception_ptr, common::RestApiResponse<CreateOutboundTransferResponse>).
|
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
|
inline |
Asynchronous query_transfer_list().
Completes with void(std::exception_ptr, common::RestApiResponse<QueryTransferListResponse>).
|
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
|
inline |
Asynchronous query_transfer_status().
Completes with void(std::exception_ptr, common::RestApiResponse<QueryTransferStatusResponse>).