国际货币汇率 API 数据接口

GuGuData - Aug 11 - - Dev Community

国际货币汇率 API 数据接口

支持多种货币对,每日精准汇率,多币种支持。

gugudata_api_cover

1. 产品功能

  • 支持多种货币汇率查询;
  • 支持部分加密货币汇率查询;
  • 数据为每日更新汇率数据;
  • 可一次查询源货币代码对应所有目标货币汇率;
  • 数据持续更新与维护;
  • 全接口支持 HTTPS(TLS v1.0 / v1.1 / v1.2 / v1.3);
  • 全面兼容 Apple ATS;
  • 全国多节点 CDN 部署;
  • 接口极速响应,多台服务器构建 API 接口负载均衡;
  • 接口调用状态与状态监控

2. API 文档

接口详情: https://www.gugudata.com/api/details/currencyexchange

接口地址: https://api.gugudata.com/v2/finance/currency-exchange

返回格式: application/json; charset=utf-8

请求方式: GET

请求协议: HTTPS

请求示例: https://api.gugudata.com/v2/finance/currency-exchange?appkey=YOUR_APPKEY&source=YOUR_VALUE&target=YOUR_VALUE

数据预览: https://www.gugudata.com/preview/currencyexchange

接口测试: https://api.gugudata.com/v2/finance/currency-exchange/demo

3. 请求参数

参数名 参数类型 是否必须 默认值 备注
appkey string YOUR_APPKEY 付费后获取的 APPKEY
source string YOUR_VALUE 源货币代码,例如:USD,支持的货币:1INCH\
target string YOUR_VALUE 目标货币代码,例如:CNY,不传递则返回所有支持的货币对

4. 返回参数

参数名 参数类型 备注
dataStatus.statusCode int 接口返回状态码
dataStatus.statusDescription string 接口返回状态说明
dataStatus.responseDateTime string 接口数据返回时间
dataStatus.dataTotalCount int 此条件下的总数据量,一般用于分页计算
data.sourceCurrency string 源货币代码
data.targetCurrency.sourceCurrency string 汇率结果:源货币代码
data.targetCurrency.targetCurrency string 汇率结果:目标货币代码
data.targetCurrency.exchangeRate double 汇率结果:汇率
data.targetCurrency.lastUpdateTimestamp string 汇率结果:最后更新时间戳
data.lastUpdateTimestamp string 最后更新时间戳
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player