汇率查询
接口地址:http://binstd.apistd.com/exchange/convert请求方法:post
请求参数 (Query)
参数名 | 类型 | 必须 | 描述 |
---|---|---|---|
key | string | 是 | 请求 AccessKey, 请在控制台中查看 |
from | string | 是 | 要换算的单位 |
to | string | 是 | 换算后的单位 |
amount | string | 是 | 数量 |
返回参数 (Body)
参数名 | 类型 | 描述 |
---|---|---|
status | string | 返回码 |
msg | string | 返回说明信息 |
result | object | 返回结果 |
from | string | 要换算的货币 |
to | string | 换算后的货币 |
fromname | string | 要换算的货币名称 |
toname | string | 换算后的货币名称 |
updatetime | string | 更新时间 |
rate | string | 汇率 |
camount | string | 计算金额 |
错误码
错误码 | 描述 |
---|---|
201 | 要兑换的货币为空 |
202 | 兑换后的货币为空 |
203 | 兑换数量为空 |
204 | 要兑换的货币有误 |
205 | 兑换后的货币有误 |
206 | 货币为空 |
207 | 货币有误 |
208 | 没有信息 |