汇率查询
参考汇率查询
Endpoint
Sandbox
POST https://preapi.futurepay-develop.com/api/v1/fx/rateProduction
POST https://api.futurepay.global/api/v1/fx/rateRequest Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
direction | M | int | 指定买入卖出,0:指定买入,1:指定卖出 |
buyCcy | M | String | 买入币种 |
sellCcy | M | String | 卖出币种 |
Request Example
{
"direction": 1,
"sellCcy": "USD",
"buyCcy": "EUR"
}Response
| Field | Type | Description |
|---|---|---|
sellCcy | String | 卖出币种 |
buyCcy | String | 买入币种 |
rate | BigDecimal | 汇率 |
expireTime | Long | 过期时间(Unix 时间戳,单位:秒) |
currencyPair | String | 币种对 |
Response Example
{
"code": "0",
"msg": "succeeded",
"serverTime": 1781602384165,
"data": {
"sellCcy": "USD",
"buyCcy": "EUR",
"currencyPair": "EURUSD",
"rate": "0.8683800000",
"expireTime": 1781602414
},
"success": true
}Updated 28 days ago
Did this page help you?