公共 OpenAPI汇率
GET
/openapi/v1/fx/get_rate查询币种汇率并返回换算结果。
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Query Parameters
from?string
源币种,3 位 ISO 代码,默认 HKD。
to?string
目标币种,3 位 ISO 代码,默认 CNY。
amount?number
换算金额,默认 1,必须大于 0。
Response Body
application/json
curl -X GET "https://example.com/openapi/v1/fx/get_rate"{ "code": 0, "message": "获取汇率成功", "data": { "from": "USD", "to": "CNY", "rate": 7.1284, "amount": 100, "result": 712.84, "date": "2026-05-23" }, "time": 1779502528}