查询汇率
GET
/v1/fx/rates 用于展示与定价的参考汇率。实际结算汇率以渠道回执为准,不要用这个值记账。
Query 参数
base必填 | string | |
quote | string | 不传返回该基准币种的全部报价 |
响应 200
base | string | |
quote | string | |
rate | string | 字符串避免浮点误差 |
as_of | string<date-time> |
请求
curl -X GET https://api.baton.example/v1/fx/rates \ -H "Authorization: Bearer sk_live_xxx"
响应 · 200
[
{
"base": "USD",
"quote": "EUR",
"rate": "0.9183",
"as_of": "2026-11-16T08:00:00Z"
}
]