> ## 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.

# 获取法币→加密货币交易对

> 获取入金流程支持的所有法币兑加密货币交易对，包括国家、法币代码、加密货币代码及交易精度。

使用 **GET** `/v2/base/buy/symbols` 端点获取 VelaFi 入金 (On-Ramp) 流程支持的所有法币兑加密货币交易对。每个交易对标明源法币（及其所属国家）和目标加密货币，以及交易金额适用的小数精度。您可以使用这些交易对填充 UI 中的币种选择器，并在请求报价或提交订单之前校验交易对是否可用。

## 请求

```text theme={null}
GET /v2/base/buy/symbols
```

### 请求头

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

### 查询参数

此端点不接受任何查询参数。

## 响应字段

**code** `number`

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

**msg** `string`

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

**data** `array`

法币/加密货币交易对对象数组。

**data\[]**

**country** `string`

与该法币关联的国家名称（例如 `"Mexico"`）。

**fiat** `string`

源法币的 ISO 4217 代码（例如 `"MXN"`）。

**crypto** `string`

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

**accuracy** `number`

该交易对中交易金额使用的小数位数。

## 示例

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

### 响应

```json theme={null}
{
  "code": 200,
  "msg": "SUCCESS",
  "data": [
    {
      "country": "Mexico",
      "fiat": "MXN",
      "crypto": "BTC",
      "accuracy": 2
    },
    {
      "country": "United States",
      "fiat": "USD",
      "crypto": "ETH",
      "accuracy": 2
    }
  ]
}
```

> [!TIP]
>
> 在向用户展示之前，请将此列表与支付方式端点（`GET /v2/base/buy/payments`）进行交叉比对，以确认所选交易对有可用的支付方式。


## Related topics

- [交易对](https://docs.velafi.com/cn/docs/pairs.md)
- [获取加密货币→法币交易对](https://docs.velafi.com/cn/api-reference/basic-configuration/get-crypto-fiat-pairs.md)
- [获取法币→法币交易对](https://docs.velafi.com/cn/api-reference/basic-configuration/get-fiat-fiat-pairs.md)
- [获取法币→加密货币支付方式](https://docs.velafi.com/cn/api-reference/basic-configuration/get-fiat-crypto-payment-methods.md)
- [获取加密货币→法币支付方式](https://docs.velafi.com/cn/api-reference/basic-configuration/get-crypto-fiat-payment-methods.md)


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