GET /exchange-rates
查询两种币种之间的当前兑换率,生成60秒有效的报价ID
钱包服务 `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
from |
query |
string |
Yes |
|
USD |
|
源币种 |
to |
query |
string |
Yes |
|
CNY |
|
目标币种 |
Referenced Schemas
dto.DataResponse-dto_ExchangeRateResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.ExchangeRateResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.ExchangeRateResponse
| Field | Type | Required | Example | Constraints | Description |
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
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|