汇率接口
汇率接口
通用信息说明
点击查询通用信息说明
汇率查询数据
数据均为100外币兑换人民币数值
接口信息
接口名称 | 汇率查询接口 |
---|---|
接口地址 | getExchageResult |
请求类型 | get |
接口参数 |
接口地址,点击获取数据
响应信息:
字段 | 类型 | 描述 |
---|---|---|
code | int | 响应码 |
msg | String | 响应信息 |
data | Object | 响应数据 |
resultDataBeanList | List | 汇率信息列表 |
bankConversionPri | BigDecimal | 银行折算价/中间价 |
date | String | 发布日期 |
name | String | 发布时间 |
time | String | 货币名称 |
fbuyPri | BigDecimal | 现汇买入价 |
fsellPri | BigDecimal | 现汇卖出价 |
mbuyPri | BigDecimal | 现钞买入价 |
msellPri | BigDecimal | 现钞卖出价 |
汇率计算接口
接口名称 | 汇率计算接口 |
---|---|
接口地址 | /compute |
请求类型 | POST |
请求参数 | name:货币名称 compute:计算金额 |
【汇率接口】请求地址:http://59.111.53.180:8080/exchange/compute
{"name":"美元","compute":"100"}
响应示例
{
"code": 10000,
"msg": "success",
"data": [
{
"name": "人民币",
"number": "679.4200"
},
{
"name": "欧元",
"number": "85.7312302839"
},
{
"name": "港币",
"number": "784.8215317084"
},
{
"name": "日元",
"number": "11164.2046108089"
},
{
"name": "英镑",
"number": "76.1860976239"
},
{
"name": "澳大利亚元",
"number": "135.0386580009"
},
{
"name": "加拿大元",
"number": "129.9703491153"
},
{
"name": "泰国铢",
"number": "3312.6279863481"
},
{
"name": "新加坡元",
"number": "136.1699569095"
},
{
"name": "挪威克朗",
"number": "817.5932611312"
},
{
"name": "新西兰元",
"number": "147.1944191689"
},
{
"name": "丹麦克朗",
"number": "638.9129208200"
},
{
"name": "瑞典克朗",
"number": "880.4198522742"
},
{
"name": "菲律宾比索",
"number": "5279.0986790987"
},
{
"name": "卢布",
"number": "6290.9259259259"
},
{
"name": "瑞士法郎",
"number": "99.1651341332"
},
{
"name": "新台币",
"number": "3052.2012578616"
},
{
"name": "澳门元",
"number": "804.9046321526"
},
{
"name": "林吉特",
"number": "406.5705224104"
},
{
"name": "南非兰特",
"number": "1321.8287937743"
},
{
"name": "韩国元",
"number": "111857.0958182417"
},
{
"name": "人民币",
"number": "679.4200000000"
}
]
}
响应说明
参数 | 描述 |
---|---|
name | 货币名称 |
number | 计算后的金额 |
推荐阅读
- JAVA(抽象类与接口的区别&重载与重写&内存泄漏)
- 基于微信小程序带后端ssm接口小区物业管理平台设计
- 2020-04-07vue中Axios的封装和API接口的管理
- 调取接口时报404错误(ID:16)
- CICC(脑机接口,科幻几近成真())
- 接口|axios接口报错-参数类型错误解决
- 190403|190403 - Jmeter压测接口
- JavaScript|vue 基于axios封装request接口请求——request.js文件
- 微信小程序请求接口格式
- 简易有效Api接口防攻击策略