GET /exchange-rates

查询两种币种之间的当前兑换率,生成60秒有效的报价ID

钱包服务 `bearerAuth` application/json

请求参数

名称位置类型必填默认值示例约束描述
from query string 是 USD 源币种
to query string 是 CNY 目标币种

响应

引用的 Schema

dto.DataResponse-service-wallet/internal/handler/dto/ExchangeRateResponse

字段类型必填示例约束描述
code integer 否
data service-wallet/internal/handler/dto.ExchangeRateResponse 否
message string 否
timestamp string 否

service-core/base/dto.SimpleResponse

字段类型必填示例约束描述
code integer 否
message string 否
timestamp string 否

service-wallet/internal/handler/dto.ExchangeRateResponse

字段类型必填示例约束描述
expires_at string 否 2026-05-12T10:01:00Z
from_currency string 否 USD
quote_id string 否 qt_abc123def
rate number 否 7.24
to_currency string 否 CNY