# 法定货币及支付方式查询接口

该接口可获取当前支持的所有法定货币和支付方式，接口正常将返回由 [`fiatCurrency`](#fiatcurrency) 对象组成的数组，如果没有支持的法定货币，则 `data` 为空

## 法定货币查询接口

<mark style="color:blue;">`GET`</mark> `https://api.ramp.fatpay.xyz/open/api/onramp/currency`

查询 FaTPay 当前支持的所有加密货币列表

#### Headers

| Name                                              | Type    | Description                                                                                                                                                                                                                                                                                                                                                                                   |
| ------------------------------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Content-Type<mark style="color:red;">\*</mark>    | String  | application/json                                                                                                                                                                                                                                                                                                                                                                              |
| X-Fp-Version<mark style="color:red;">\*</mark>    | String  | <p>FaTPay API 接口版本<br>e.g. v1.0</p>                                                                                                                                                                                                                                                                                                                                                           |
| X-Fp-Timestamp<mark style="color:red;">\*</mark>  | Integer | <p>Unixtime 时间戳，秒<br>e.g. 1661346861</p>                                                                                                                                                                                                                                                                                                                                                      |
| X-Fp-Nonce<mark style="color:red;">\*</mark>      | Integer | <p>6位随机正整数<br>e.g. 868964</p>                                                                                                                                                                                                                                                                                                                                                                 |
| X-Fp-Partner-Id<mark style="color:red;">\*</mark> | String  | <p>申请高级合作伙伴时，由 FaTPay 分配的 partner ID<br>e.g. 2yQrS9A0xmM8xpfa</p>                                                                                                                                                                                                                                                                                                                             |
| X-Fp-Signature<mark style="color:red;">\*</mark>  | String  | <p>由 APIPrivateKey 生成的签名<br>e.g. zbBQ+1nv/5up9riH1wbTSSMmkb26LQj3g1cNWsutOordOrtpk8agcA5D5bdYaGeVlHK0qZ2MlUV+ZfOK9cXMuficeIm5fnEjMEm7s1IZtSivMt5te7EFqe52dtVFafE4hUgwqH6QBZB0yZ1FSqHs2dOCI0e8RKJQBDitxtHkibStl1Jt5wulzzq96qWbbVnwoBqGDT52OtwwEcDqMI4SIAzUAdBhAuLqUig1U4Ne9ufT8B1aAohEk5fvn/Sbom21bEjLdgbt5PwH2wmmuBx4tq31IgcP4V+qEBILY2eMAFzkvxNXaX3PsLbj9NpgyIc3HQl0FtRq3gdN7FsSvyvcWA==</p> |

{% tabs %}
{% tab title="200: OK 正常返回" %}

```javascript
{
    "code": 10000,
    "msg": "Success",
    "data": [
        {
            "fiatCurrency": "USD",
            "name": "USD",
            "paymentOptions": [
                {
                    "name": "CARD_PAYMENT",
                    "processingTime": "3 - 7Min",
                    "icon": "https://fatpay.xyz/img/1.png",
                    "maxAmount": 4000,
                    "minAmount": 1
                }
            ]
        },
        {
            "fiatCurrency": "THB",
            "name": "THB",
            "paymentOptions": [
                {
                    "name": "BANK_CARD_TRANSFER",
                    "processingTime": "3 - 7Min",
                    "icon": "https://fatpay.xyz/img/2.png",
                    "maxAmount": 1400000,
                    "minAmount": 1
                }
            ]
        }
    ]
}
```

{% endtab %}
{% endtabs %}

## 返回的对象

### `fiatCurrency`

| 参数名称           | 类型     | 是否必须 | 参数说明                    |
| -------------- | ------ | ---- | ----------------------- |
| fiatCurrency   | String | 是    | 法币ISO代码，如 USD, THB      |
| name           | String | 是    | 法币描述 ，如 US Dollar       |
| paymentOptions | Object | 是    | 由 `paymentOption` 组成的数组 |

### `paymentOption`

| 参数名称           |         | 类型 | 参数说明                                       |
| -------------- | ------- | -- | ------------------------------------------ |
| name           | String  | 是  | 付款方式名称，如 CREDIT\_DEBIT\_CARD               |
| processingTime | String  | 是  | 付款方式到账周期，如 3 - 7Min                        |
| icon           | String  | 是  | 付款方式的icon，如 <https://fatpay.xyz/img/1.png> |
| maxAmount      | Decimal | 是  | 该付款方式最大金额，单位元，最多 2 位小数，如 4000              |
| minAmount      | Decimal | 是  | 该付款方式最小金额，单位元，最多 2 位小数，如 10                |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev.fatpay.org/zh/reference/api-reference/on-ramp-apis/list-all-fiat-currencies.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
