POST /exchange-rates/convert

使用报价ID执行币种兑换。参考:GAAP/IFRS (Double-Entry Accounting Principles)。quote_id在60秒内有效,兑换后即失效防止重放。

钱包服务 `bearerAuth` application/json

请求体

Schema: service-wallet/internal/handler/dto.ExchangeConvertRequest

字段类型必填示例约束描述
amount string 是 100.00
quote_id string 是 qt_abc123def
remark string 否 USD to CNY conversion

响应

引用的 Schema

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

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

service-core/base/dto.SimpleResponse

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

service-wallet/internal/handler/dto.ExchangeConvertResponse

字段类型必填示例约束描述
from_amount string 否 100.00
from_currency string 否 USD
message string 否 兑换成功
quote_id string 否 qt_abc123def
rate number 否 7.24
to_amount string 否 724.00
to_currency string 否 CNY
transaction_id string 否 txn_001