A AuthMS API Wiki API Reference iam.tianv.com →

GET /exchange-rates

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

钱包服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
from query string Yes USD 源币种
to query string Yes CNY 目标币种

Responses

StatusDescriptionSchema
200兑换率信息dto.DataResponse-dto_ExchangeRateResponse
400请求参数错误gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证或令牌无效gitee_com_linmes_authms_base_dto.SimpleResponse
500服务内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.DataResponse-dto_ExchangeRateResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.ExchangeRateResponse No
message string No
timestamp string No

dto.ExchangeRateResponse

FieldTypeRequiredExampleConstraintsDescription
expires_at string No 2026-05-12T10:01:00Z
from_currency string No USD
quote_id string No qt_abc123def
rate number No 7.24
to_currency string No CNY

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No