沧海数据指数数据API接口大全

基本信息数据API接口

指数清单

指定国家或地区,获取相应的指数清单。目前,已经覆盖全球30+国家/地区,收录的指数数量超500只。

# Restful API 测试JSON
https://tsanghi.com/api/fin/index/CHN/list?token=demo
# Restful API 测试CSV
https://tsanghi.com/api/fin/index/CHN/list?token=demo&fmt=csv

国家/地区清单

获取指数已覆盖的国家/地区清单。目前,已经覆盖全球30+国家/地区。

# Restful API 测试JSON
https://tsanghi.com/api/fin/index/country?token=demo
# Restful API 测试CSV
https://tsanghi.com/api/fin/index/country?token=demo&fmt=csv

基本行情数据API接口

历史日线

指定国家(或地区)和指数代码,获取该只指数的日线基本行情(开、高、低、收、量)。默认返回全部历史数据,也可以使用参数start_date和end_date选择特定时间段。此接口可方便地获取全球指数的历史行情,可用于数据初始化。目前,已经覆盖全球30+国家/地区,以及30年以上的历史数据,收录指数超500只。

# Restful API 测试JSON
https://tsanghi.com/api/fin/index/CHN/daily?token=demo&ticker=000001&order=2
# Restful API 测试CSV
https://tsanghi.com/api/fin/index/CHN/daily?token=demo&ticker=000001&order=2&fmt=csv

增量日线

指定国家(或地区)和日期,获取全部指数的日线基本行情数据(开、高、低、收、量)。不指定日期时,默认返回最新行情。此接口可方便地获取每日增量行情。

# Restful API 测试JSON
https://tsanghi.com/api/fin/index/CHN/daily/latest?token=demo
# Restful API 测试CSV
https://tsanghi.com/api/fin/index/CHN/daily/latest?token=demo&fmt=csv

历史周线

指定国家(或地区)和指数代码,获取该只指数的周线基本行情(开、高、低、收、量)。默认返回全部历史数据,也可以使用参数start_date和end_date选择特定时间段。此接口可方便地获取全球指数的历史行情,可用于数据初始化。目前,已经覆盖全球30+国家/地区,以及30年以上的历史数据,收录指数超500只。

# Restful API 测试JSON
https://tsanghi.com/api/fin/index/CHN/weekly?token=demo&ticker=000001&order=2
# Restful API 测试CSV
https://tsanghi.com/api/fin/index/CHN/weekly?token=demo&ticker=000001&order=2&fmt=csv

增量周线

指定国家(或地区)和日期,获取全部指数的周线基本行情数据(开、高、低、收、量)。不指定日期时,默认返回最新行情。此接口可方便地获取每日增量行情。

# Restful API 测试JSON
https://tsanghi.com/api/fin/index/CHN/weekly/latest?token=demo
# Restful API 测试CSV
https://tsanghi.com/api/fin/index/CHN/weekly/latest?token=demo&fmt=csv

历史月线

指定国家(或地区)和指数代码,获取该只指数的月线基本行情(开、高、低、收、量)。默认返回全部历史数据,也可以使用参数start_date和end_date选择特定时间段。此接口可方便地获取全球指数的历史行情,可用于数据初始化。目前,已经覆盖全球30+国家/地区,以及30年以上的历史数据,收录指数超500只。

# Restful API 测试JSON
https://tsanghi.com/api/fin/index/CHN/monthly?token=demo&ticker=000001&order=2
# Restful API 测试CSV
https://tsanghi.com/api/fin/index/CHN/monthly?token=demo&ticker=000001&order=2&fmt=csv

增量月线

指定国家(或地区)和日期,获取全部指数的月线基本行情数据(开、高、低、收、量)。不指定日期时,默认返回最新行情。此接口可方便地获取每日增量行情。

# Restful API 测试JSON
https://tsanghi.com/api/fin/index/CHN/monthly/latest?token=demo
# Restful API 测试CSV
https://tsanghi.com/api/fin/index/CHN/monthly/latest?token=demo&fmt=csv

历史年线

指定国家(或地区)和指数代码,获取该只指数的年线基本行情(开、高、低、收、量)。默认返回全部历史数据,也可以使用参数start_date和end_date选择特定时间段。此接口可方便地获取全球指数的历史行情,可用于数据初始化。目前,已经覆盖全球30+国家/地区,以及30年以上的历史数据,收录指数超500只。

# Restful API 测试JSON
https://tsanghi.com/api/fin/index/CHN/yearly?token=demo&ticker=000001&order=2
# Restful API 测试CSV
https://tsanghi.com/api/fin/index/CHN/yearly?token=demo&ticker=000001&order=2&fmt=csv

增量年线

指定国家(或地区)和日期,获取全部指数的年线基本行情数据(开、高、低、收、量)。不指定日期时,默认返回最新行情。此接口可方便地获取每日增量行情。

# Restful API 测试JSON
https://tsanghi.com/api/fin/index/CHN/yearly/latest?token=demo
# Restful API 测试CSV
https://tsanghi.com/api/fin/index/CHN/yearly/latest?token=demo&fmt=csv

基本面数据API接口

成分股

指定国家(或地区)和指数代码,获取相应指数的成分股。目前,已经覆盖全球30+国家/地区,收录的指数数量超500只。

# Restful API 测试JSON
https://tsanghi.com/api/fin/index/CHN/constituent?token=demo&ticker=000001
# Restful API 测试CSV
https://tsanghi.com/api/fin/index/CHN/constituent?token=demo&ticker=000001&fmt=csv

更多详情:tsanghi.com

注:测试返回不超过10条数据(2年历史)

  • 11
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值