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

# 实时汇率查询

> 已废弃的 USD 汇率查询接口（/common/quote/v1/exchange-rate），仅支持 USD 结算支付方式；新接入请改用实时汇率查询（V2）。

> [!WARNING]
>
> 该接口已废弃，请使用 [实时汇率查询（V2）](https://doc.haipay.net/zh/operations/exchange-rate-v2.md)

**说明：**

* **查询USD转换其他币种汇率，仅支持usd结算支付方式**

**URL：**

`/common/quote/v1/exchange-rate`

**参数：**

| 参数名 | 必选 | 类型 | 说明 |
| :- | :- | :- | :- |
| appId | 是 | Long | 业务ID（后台获取） |
| sourceCurrency | 是 | String | 源币种(USD) |
| targetCurrency | 是 | String | 目标币种 |
| payType | 否 | String | 支付类型 |
| inBankCode | 否 | String | 支付方式 |
| sign | 是 | String | 签名 |

返回data参数说明

| 参数名 | 类型 | 说明 |
| :- | :- | :- |
| sourceCurrency | String | 币种(USD) |
| targetCurrency | String | 目标币种 |
| payType | String | 支付类型 |
| inBankCode | String | 支付方式 |
| exchangeRate | String | 汇率 |
| sign | String | 签名 |

## 相关主题

* [HaiPay 接口说明与公共规则](https://doc.haipay.net/zh/get-started/api-conventions.md)
* [配置商户密钥与 RSA 签名规则](https://doc.haipay.net/zh/get-started/configuration-and-signatures.md)


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