预估金额
获取所选方向和汇率类型的货币对预估兑换金额.
POST
https://bridge.bestswap.net/api/estimate
Headers
Name | Type | Description |
---|---|---|
x-api-key* | String | Api Key |
x-sign* | String | Api 签名 |
Request Body
Name | Type | Description |
---|---|---|
from_currency* | String | 发送币种 |
to_currency* | String | 接受币种 |
amount* | Number | 发送币种金额 |
字段 | 类型 | 描述 |
---|---|---|
code | Number | 响应状态码, 如果请求成功状态码为 200, 否则为错误. |
timestamp | String | 当前请求时间 |
data | Object | 预估金额数组 |
- from | Object | 发送的资产的数据 |
-- from.code | String | BestSwap 中的唯一货币代码 |
-- from.network | String | 资产的区块链网络 |
-- from.coin | String | 公共资产代码 |
-- from.amount | String | 客户需要发送的金额 |
-- from.rate | String | 最终汇率 |
-- from.precision | Number | 币种精度 |
-- from.min | String | 最低金额 |
-- from.max | String | 最高金额 |
-- from.usd | String | 等值美元 |
-- from.btc | String | 等值比特币 |
- to | Object | 客户将收到的资产的数据 |
-- to.code | String | BestSwap 中的唯一货币代码 |
-- to.network | String | 资产的区块链网络 |
-- to.coin | String | 公共资产代码 |
-- to.amount | String | 客户预估收到的金额 |
-- to.rate | String | 最终汇率 |
-- to.precision | Number | 币种精度 |
-- to.min | String | 最低金额 |
-- to.max | String | 最高金额 |
-- to.usd | String | 等值美元 |
- errors | Array | 错误信息 |
message | String | 响应数据信息 |
Last updated