获取交易汇率

获取将要用于付款的汇率,汇率锁定时间10分钟,不可配置

查询交易汇率

Endpoint

Sandbox

POST https://preapi.futurepay-develop.com/api/v1/payment/quote

Production

POST https://api.futurepay.global/api/v1/payment/quote

Request Parameters

ParameterRequiredTypeDescription
sourceCcyMstring(3)源币种
targetCcyMstring(3)目标币种

Request Example

{
    "sourceCcy": "USD",
    "targetCcy": "HKD"
}

Response

FieldTypeDescription
quoteIdstring交易汇率
ratenumber(20,8)汇率
sourceCcystring源币种
targetCcystring目标币种
currencyPairstring币种对

Response Example

{
    "code": "0",
    "msg": "succeeded",
    "serverTime": 1779676882997,
    "data": {
        "quoteId": "3b47b9cc70af4292b84cc617522e9730",
        "rate": 7.8350000000,
        "sourceCcy": "USD",
        "targetCcy": "HKD",
        "currencyPair": "USDHKD"
    },
    "success": true
}


Did this page help you?