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): 200
Security Type: PREDICTION_TRADE
Notes:
fromToken / toToken: typically the same symbol (e.g. both USDT). When they differ, the backend may attempt a swap, but cross-symbol conversion is not guaranteed for all pairs — prefer using the same symbol."Request parameters.
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): 200
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 |
walletType (INT 0/1) for the source CEX account, while Apply MM Deposit uses accountType (STRING SPOT/FUNDING) for the target. The difference is intentional: withdraw reuses the existing v1/capital/withdraw/apply flow, which inherits that flow's integer walletType field."Request parameters.
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): 200
Security Type: PREDICTION_TRADE
Request parameters.
Transfer funds from the user's CEX account (SPOT or FUNDING) into the prediction wallet. Requires SAS authorization.
Weight(IP): 200
Security Type: PREDICTION_TRADE
Request parameters.
Get the authenticated user's prediction wallet transfer history within a date range.
Weight(IP): 200
Security Type: PREDICTION_TRADE
Request parameters.
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): 200
Security Type: PREDICTION_TRADE
Request parameters.
TransferApi - object-oriented interface TransferApi