提币聚合配置
提币聚合配置
查询提币前置聚合配置。该接口是发起提币前的推荐最短路径,可一次返回可提资产、支持链、金额限制、精度、memo 要求,以及可选的白名单地址。
请求频率限制:1/1s
请求地址
GET /deepcoin/asset/withdraw-config
请求参数
| 字段名 | 是否必填 | 类型 | 字段描述 |
|---|---|---|---|
| ccy | 是 | string | 币种,例如 USDT |
| includeAddresses | 否 | boolean | 是否包含地址簿白名单,默认 false |
响应参数
| 字段名 | 类型 | 字段描述 |
|---|---|---|
| data | array | 提币聚合配置列表 |
| >ccy | string | 币种 |
| >withdrawable | string | 可提数量 |
| >quota | string | 提币额度,-1 表示无固定额度限制 |
| >usedQuota | string | 已用提币额度 |
| >leftQuota | string | 剩余提币额度 |
| >withdrawEnabled | boolean | 是否可提币 |
| >addressWhitelistWithdrawOnly | boolean | 是否仅允许向白名单地址提币 |
| >notice | string | 公告或提示 |
| >assets | array | 可提币资产列表,结构同 withdraw-assets |
| >addresses | array | 白名单地址列表,includeAddresses=true 时返回 |
| >chains | array | 提币链列表,结构同 withdraw-chains |
推荐流程
- 调用
GET /deepcoin/asset/withdraw-config?ccy=USDT&includeAddresses=true。 - 使用
chains[].chain作为POST /deepcoin/asset/withdrawal的chain参数。 - 使用
addresses[].addressId作为必填addressId参数。 - 可选传入
addresses[].toAddr作为toAddr;接口仅用于白名单一致性校验。 - 使用
chains[].minWd和chains[].precision校验amt。 - 当
chains[].needMemo=true或addresses[].memo非空时传入memo。 - 如需指定非默认资金账户扣款,传入 1 个
accountTypes值。
响应示例
{
"code": "0",
"msg": "",
"data": {
"data": [
{
"ccy": "USDT",
"withdrawable": "36378.15",
"quota": "-1",
"usedQuota": "0",
"leftQuota": "0",
"withdrawEnabled": true,
"addressWhitelistWithdrawOnly": false,
"assets": [
{
"ccy": "USDT",
"available": "36378.15",
"withdrawable": "36378.15"
}
],
"addresses": [
{
"addressId": "574",
"ccy": "USDT",
"chain": "USDT-TRC20",
"chainType": "8",
"toAddr": "TEV1gDkDST3kUtv27SCYfbAoz7ukLMwJdS",
"apiWithdrawEnabled": true
}
],
"chains": [
{
"ccy": "USDT",
"chain": "USDT-TRC20",
"chainName": "TRC20",
"chainType": "8",
"withdrawEnabled": true,
"minWd": "10",
"fee": "11",
"precision": "2",
"needMemo": false
}
]
}
]
}
}