Welcome to the new WEEX API documentation. Looking for the previous version?Switch to the legacy docs

Transfer between accounts

  • POST /api/v3/wallet/transfer/self

Weight(IP): 20

Transfers assets between the authenticated user's Funding, Spot, and Futures accounts. Requires TRANSFER permission. The user is identified through API key authentication and cannot be specified by UID in the request.

Request Body

ParameterTypeRequired?Description
amountStringYesTransfer amount. Must be greater than 0 and respect the configured coin precision; excess precision returns -1160.
fromAccountTypeStringYesSource account type: UNIMARGIN (futures account), SPOT (spot account), or FUNDING (funding account).
toAccountTypeStringYesDestination account type. Uses the same values as fromAccountType and must be different from the source account.
coinStringYesAsset code.
bizIdStringNoBusiness ID. If specified, the business ID must contain 16-32 ASCII letters or numbers and may include the openapi_ prefix. The server adds the prefix if absent, stores and returns the final ID, or generates openapi_ plus 32 random characters when omitted.
paramsStringNoBusiness remark or additional information.

Request example

JSONCode
{ "amount": "20", "fromAccountType": "SPOT", "toAccountType": "FUNDING", "coin": "USDT", "params": "test", "bizId": "openapi_NzqVr0AGj1uDYUp20260903102825" }

Response parameters

Field nameTypeDescription
codeIntegerBusiness code. 0 indicates success.
msgStringResponse message.
data.bizIdStringBusiness ID used for the transfer.
data.resultBooleantrue indicates a successful transfer.
data.transferIdStringTransfer ID. May be Null.

Response example

JSONCode
{ "code": 0, "msg": "success", "data": { "bizId": "openapi_NzqVr0AGj1uDYUp20260903102825", "result": true, "transferId": null } }

Error codes

CodeMessage
-2413Insufficient balance.
-2442Asset transfer failed.
-2443Asset transfer is processing. Retry with the same bizId.
-2444fromAccountType and toAccountType cannot be the same.
-2445bizId already exists. Reuse it only with the original request parameters.
-2446Legacy spot account is not supported. Use SPOT instead.
-2447bizId must contain 16 to 32 ASCII letters or digits, optionally prefixed with 'openapi_'.
-2452Exceeds the maximum amount available for transfer.
-1160Decimal precision error.

See Wallet Error Codes for other wallet and validation errors.