欢迎使用全新的 WEEX API 文档。需要查看旧版本?切换到旧版文档
WEEX
WEEX 钱包 REST API

资产

端点

划转

划转。

POST
/api/v3/wallet/transfer/self
https://api-spot.weex.com
请求权重
此端点消耗基于 IP 的请求权重。较重的端点会消耗更多您的 IP 速率限制容量。
请在访问限制章节中了解更多信息。
IP 权重20

划转 › 请求体(Request Body)

amount
​string · required

划转数量,必须大于 0,精度不得超过币种配置精度,超出返回 -1160。

fromAccountType
​string · required

划出账户类型:UNIMARGIN(合约账户)、SPOT(现货账户)、FUNDING(资金账户)。

toAccountType
​string · required

划入账户类型,枚举同 fromAccountType,且不能与划出账户相同。

coin
​string · required

币种编码。

bizId
​string

业务 ID。传入时业务部分必须为 16-32 位 ASCII 字母或数字,可带 openapi_ 前缀;无前缀时服务端自动补齐后存储和回传。不传时生成 openapi_ 加 32 位随机串。

params
​string

业务备注或扩展说明。

划转 › 响应

200

成功响应

code
​integer

业务码,0 表示成功。

msg
​string

响应信息。

​object
bizId
​string

实际使用的业务 ID。

result
​boolean

true 表示划转成功。

transferId
​string | null

划转 ID,有可能为 Null。

-2413
​string

Insufficient balance.

-2442
​string

Asset transfer failed.

-2443
​string

Asset transfer is processing. Retry with the same bizId.

-2444
​string

fromAccountType and toAccountType cannot be the same.

-2445
​string

bizId already exists. Reuse it only with the original request parameters.

-2446
​string

Legacy spot account is not supported. Use SPOT instead.

-2447
​string

bizId must contain 16 to 32 ASCII letters or digits, optionally prefixed with 'openapi_'.

-2452
​string

Exceeds the maximum amount available for transfer.

-1160
​string

Decimal precision error.