汇率查询

参考汇率查询

Endpoint

Sandbox

POST https://preapi.futurepay-develop.com/api/v1/fx/rate

Production

POST https://api.futurepay.global/api/v1/fx/rate

Request Parameters

ParameterRequiredTypeDescription
directionMint指定买入卖出,0:指定买入,1:指定卖出
buyCcyMString买入币种
sellCcyMString卖出币种

Request Example

{
    "direction": 1,
    "sellCcy": "USD",
    "buyCcy": "EUR"
}

Response

FieldTypeDescription
sellCcyString卖出币种
buyCcyString买入币种
rateBigDecimal汇率
expireTimeLong过期时间(Unix 时间戳,单位:秒)
currencyPairString币种对

Response Example

{
    "code": "0",
    "msg": "succeeded",
    "serverTime": 1781602384165,
    "data": {
        "sellCcy": "USD",
        "buyCcy": "EUR",
        "currencyPair": "EURUSD",
        "rate": "0.8683800000",
        "expireTime": 1781602414
    },
    "success": true
}


Did this page help you?