提现
POST
/az/spot/withdraw
注意:参数以json形式放在body中
注意:目前仅支持链上提现,内部转账(toAccountId)暂不支持;未携带链上 address 的请求会被拒绝并返回 "Internal transfer is not supported."
限流规则
1/s/apikey
请求参数
| 参数 | 类型 | 是否必须 | 默认值 | 描述 | 取值范围 |
|---|---|---|---|---|---|
| fromAccount | string | false | SPOT | 提现账户类型,现货或者是合约 | SPOT; FUTURES_U |
| currency | string | true | 币种名称,可从'获取AZ可充提的币种'接口中获取 | ||
| chain | string | true | 转账网络名称,可从'获取AZ可充提的币种'接口中获取。链上提现必填。 | ||
| clientOrderId | string | false | 自定义客户端ID,正则:^[a-zA-Z0-9_]{4,32}$ | ||
| amount | number | true | 提现金额,包含手续费部分 | ||
| address | string | true | 提现地址。必填——目前仅支持链上提现,内部转账暂不支持。 | ||
| memo | string | false | memo,对于EOS类似的需要memo的链必传 | ||
| toAccountId | number | false | 收款用户ID。暂不支持——内部转账当前已禁用,该参数会被忽略,仅支持链上提现。 |
Request
{
"currency":"zb",
"chain":"Ethereum",
"amount":1000,
"address":"0xfa3abfa50eb2006f5be7831658b17aca240d8526",
"memo":""
}
Response
{
"rc": 0,
"mc": "SUCCESS",
"ma": [],
"result": {
"id": 100 //Long 提现记录id,用于后期查询提现历史记录
}
}