获取交易汇率
获取将要用于付款的汇率,汇率锁定时间10分钟,不可配置
查询交易汇率
Endpoint
Sandbox
POST https://preapi.futurepay-develop.com/api/v1/payment/quoteProduction
POST https://api.futurepay.global/api/v1/payment/quoteRequest Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
sourceCcy | M | string(3) | 源币种 |
targetCcy | M | string(3) | 目标币种 |
Request Example
{
"sourceCcy": "USD",
"targetCcy": "HKD"
}Response
| Field | Type | Description |
|---|---|---|
quoteId | string | 交易汇率 |
rate | number(20,8) | 汇率 |
sourceCcy | string | 源币种 |
targetCcy | string | 目标币种 |
currencyPair | string | 币种对 |
Response Example
{
"code": "0",
"msg": "succeeded",
"serverTime": 1779676882997,
"data": {
"quoteId": "3b47b9cc70af4292b84cc617522e9730",
"rate": 7.8350000000,
"sourceCcy": "USD",
"targetCcy": "HKD",
"currencyPair": "USDHKD"
},
"success": true
}Updated 14 days ago
Did this page help you?