基本信息数据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年历史)