> ## Documentation Index
> Fetch the complete documentation index at: https://docs.velafi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取加密货币列表

> 获取 VelaFi 支持的所有加密货币，以及表示交易金额时每种资产使用的小数精度。

使用 **GET** `/v2/base/cryptos` 接口获取 VelaFi 在入金和出金交易中支持的所有加密货币。每个条目都包含一个 `accuracy` 值，表示平台对该资产使用的小数位数。在构建交易对或支付方式查询之前，请查看此列表以确认有效的加密货币符号。

## 请求

```text theme={null}
GET /v2/base/cryptos
```

### 请求头

| 请求头 | 值 | 必填 |
| - | - | - |
| `X-BH-TOKEN` | 通过 `GET /v2/token/generate` 获取的 token | ✓ |

### 查询参数

此接口不接受任何查询参数。

## 响应字段

**code** `number`

HTTP 风格的状态码。`200` 表示成功。

**msg** `string`

可读的状态信息，例如 `"SUCCESS"`。

**data** `array`

加密货币对象数组。

**data\[]**

**crypto** `string`

加密货币的代码符号（例如 `"USDT"`、`"BTC"`）。

**accuracy** `number`

表示该资产金额时使用的小数位数。例如，BTC 为 `8`，USDT 为 `6`。

## 示例

```bash cURL theme={null}
curl --request GET \
  --url 'https://api.velafi.com/v2/base/cryptos' \
  --header 'X-BH-TOKEN: YOUR_TOKEN'
```

### 响应

```json theme={null}
{
  "code": 200,
  "msg": "SUCCESS",
  "data": [
    {
      "crypto": "USDT",
      "accuracy": 6
    },
    {
      "crypto": "BTC",
      "accuracy": 8
    }
  ]
}
```

> [!NOTE]
>
> 在其他 API 请求中指定资产时，请始终使用此接口返回的准确 `crypto` 符号。符号区分大小写。


## Related topics

- [获取加密货币提现记录](https://docs.velafi.com/cn/api-reference/crypto-wallet/get-crypto-withdrawal-history.md)
- [获取加密货币→法币交易对](https://docs.velafi.com/cn/api-reference/basic-configuration/get-crypto-fiat-pairs.md)
- [获取加密货币/法币报价](https://docs.velafi.com/cn/api-reference/quote/get-user-quote-for-crypto-fiat.md)
- [获取加密货币划转记录](https://docs.velafi.com/cn/api-reference/merchant/query-crypto-transfers.md)
- [获取加密货币充值记录](https://docs.velafi.com/cn/api-reference/crypto-wallet/get-crypto-deposit-history.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.