接口参考
币种与网络
返回当前支持的全部币种和网络,以及限额和可用状态。
GET
/api/open/v1/currencies请求参数
无。
响应
data 是数组,每一项是一个币种在一个网络上的信息:
| 字段 | 类型 | 说明 |
|---|---|---|
currency | string | 币种代码,如 USDT |
network | string | 网络,如 TRC20、ERC20、Bitcoin |
name | string | 币种名称 |
decimals | integer | 精度(小数位数) |
minAmount | string | 单笔最小付款数量 |
maxAmount | string | 单笔最大付款数量 |
needMemo | boolean | 该网络是否需要 Memo / Tag |
payIn | boolean | 当前能否用这个网络付款 |
payOut | boolean | 当前能否在这个网络收款 |
JSON
{
"code": 0,
"message": "ok",
"data": [
{
"currency": "USDT",
"network": "TRC20",
"name": "Tether",
"decimals": 6,
"minAmount": "10",
"maxAmount": "500000",
"needMemo": false,
"payIn": true,
"payOut": true
}
]
}使用建议
- 可用状态会因网络维护而变化。建议每 5 到 10 分钟刷新一次缓存,不要每次报价前都调用。
- 付款币种选
payIn为true的网络,收款币种选payOut为true的网络。 needMemo为true的网络,下单时需要填写recipientMemo,付款时用户也需要填写depositMemo。
对接中遇到问题?联系技术支持: [email protected]