基本信息数据API接口
外汇清单
获取已收录的外汇清单。目前,已经覆盖全球外汇品种800+,涉及币种130+。
# Restful API 测试JSON https://tsanghi.com/api/fin/forex/list?token=demo
讯享网
讯享网# Restful API 测试CSV https://tsanghi.com/api/fin/forex/list?token=demo&fmt=csv
基本行情数据API接口
历史日线
指定外汇代码,获取该只外汇的日线基本行情(开、高、低、收、量)。默认返回全部历史数据,也可以使用参数start_date和end_date选择特定时间段。此接口可方便地获取全球外汇的历史行情,可用于数据初始化。目前,已经覆盖全球外汇品种800+,以及30年以上的历史数据,涉及币种130+。
# Restful API 测试JSON https://tsanghi.com/api/fin/forex/daily?token=demo&ticker=USDCNY&order=2
讯享网# Restful API 测试CSV https://tsanghi.com/api/fin/forex/daily?token=demo&ticker=USDCNY&order=2&fmt=csv
增量日线
指定日期,获取全部外汇的日线基本行情数据(开、高、低、收、量)。不指定日期时,默认返回最新行情。此接口可方便地获取每日增量行情。
# Restful API 测试JSON https://tsanghi.com/api/fin/forex/daily/latest?token=demo
讯享网# Restful API 测试CSV https://tsanghi.com/api/fin/forex/daily/latest?token=demo&fmt=csv
历史周线
指定外汇代码,获取该只外汇的周线基本行情(开、高、低、收、量)。默认返回全部历史数据,也可以使用参数start_date和end_date选择特定时间段。此接口可方便地获取全球外汇的历史行情,可用于数据初始化。目前,已经覆盖全球外汇品种800+,以及30年以上的历史数据,涉及币种130+。
# Restful API 测试JSON https://tsanghi.com/api/fin/forex/weekly?token=demo&ticker=USDCNY&order=2
讯享网# Restful API 测试CSV https://tsanghi.com/api/fin/forex/weekly?token=demo&ticker=USDCNY&order=2&fmt=csv
增量周线
指定日期,获取全部外汇的周线基本行情数据(开、高、低、收、量)。不指定日期时,默认返回最新行情。此接口可方便地获取每周增量行情。
# Restful API 测试JSON https://tsanghi.com/api/fin/forex/weekly/latest?token=demo
讯享网# Restful API 测试CSV https://tsanghi.com/api/fin/forex/weekly/latest?token=demo&fmt=csv
历史月线
指定外汇代码,获取该只外汇的月线基本行情(开、高、低、收、量)。默认返回全部历史数据,也可以使用参数start_date和end_date选择特定时间段。此接口可方便地获取全球外汇的历史行情,可用于数据初始化。目前,已经覆盖全球外汇品种800+,以及30年以上的历史数据,涉及币种130+。
# Restful API 测试JSON https://tsanghi.com/api/fin/forex/monthly?token=demo&ticker=USDCNY&order=2
讯享网# Restful API 测试CSV https://tsanghi.com/api/fin/forex/monthly?token=demo&ticker=USDCNY&order=2&fmt=csv
增量月线
指定日期,获取全部外汇的月线基本行情数据(开、高、低、收、量)。不指定日期时,默认返回最新行情。此接口可方便地获取每月增量行情。
# Restful API 测试JSON https://tsanghi.com/api/fin/forex/monthly/latest?token=demo
讯享网# Restful API 测试CSV https://tsanghi.com/api/fin/forex/monthly/latest?token=demo&fmt=csv
历史年线
指定外汇代码,获取该只外汇的年线基本行情(开、高、低、收、量)。默认返回全部历史数据,也可以使用参数start_date和end_date选择特定时间段。此接口可方便地获取全球外汇的历史行情,可用于数据初始化。目前,已经覆盖全球外汇品种800+,以及30年以上的历史数据,涉及币种130+。
# Restful API 测试JSON https://tsanghi.com/api/fin/forex/yearly?token=demo&ticker=USDCNY&order=2
讯享网# Restful API 测试CSV https://tsanghi.com/api/fin/forex/yearly?token=demo&ticker=USDCNY&order=2&fmt=csv
增量年线
指定日期,获取全部外汇的月线基本行情数据(开、高、低、收、量)。不指定日期时,默认返回最新行情。此接口可方便地获取每年增量行情。
# Restful API 测试JSON https://tsanghi.com/api/fin/forex/yearly/latest?token=demo
讯享网# Restful API 测试CSV https://tsanghi.com/api/fin/forex/yearly/latest?token=demo&fmt=csv
更多详情:tsanghi.com
注:测试返回不超过10条数据(2年历史)

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/83168.html