POST /exchange-rates/convert
使用报价ID执行币种兑换。参考:GAAP/IFRS (Double-Entry Accounting Principles)。quote_id在60秒内有效,兑换后即失效防止重放。
钱包服务 `bearerAuth` application/json
Request Body
Schema: dto.ExchangeConvertRequest
| Field | Type | Required | Example | Constraints | Description |
amount |
string |
Yes |
100.00 |
|
|
quote_id |
string |
Yes |
qt_abc123def |
|
|
remark |
string |
No |
USD to CNY conversion |
|
|
Referenced Schemas
dto.DataResponse-dto_ExchangeConvertResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.ExchangeConvertResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.ExchangeConvertResponse
| Field | Type | Required | Example | Constraints | Description |
from_amount |
string |
No |
100.00 |
|
|
from_currency |
string |
No |
USD |
|
|
message |
string |
No |
兑换成功 |
|
|
quote_id |
string |
No |
qt_abc123def |
|
|
rate |
number |
No |
7.24 |
|
|
to_amount |
string |
No |
724.00 |
|
|
to_currency |
string |
No |
CNY |
|
|
transaction_id |
string |
No |
txn_001 |
|
|
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|