获取币种列表
获取平台所有的加密货币列表
(鉴权类型:NONE, 参见接口权限)
请求格式
GET https://api-cloud.bitmart.com/spot/v1/currencies
请求限制
参见 速率限制详细
请求参数
无
请求示例
curl https://api-cloud.bitmart.com/spot/v1/currencies
响应详情
字段 | 类型 | 描述 |
---|---|---|
id | String | 币种简称,如 BTC |
name | String | 币种全称,如 Bitcoin |
withdraw_enabled | Boolean | 此币种是否可在平台上提现,true-可;false-不可以 |
deposit_enabled | Boolean | 此币种是否可在平台上充值,true-可;false-不可以 |
解释说明
如果返回的响应里没有您需要的币种,可能该币种已经下架。
返回数据格式示例
{
"code": 1000,
"trace":"886fb6ae-456b-4654-b4e0-d681ac05cea1",
"message": "OK",
"data": {
"currencies": [
{
"id": "BTC",
"name": "Bitcoin",
"withdraw_enabled": true,
"deposit_enabled": true
},
{
"id": "ETH",
"name": "Ethereum",
"withdraw_enabled": true,
"deposit_enabled": true
}
]
}
}