
# 测试:返回不超过10条数据(2年历史)
https://tsanghi.com/api/fin/index/CHN/daily?token=demo&ticker=000300&order=2
Python示例
import requests
url = f"https://tsanghi.com/api/fin/index/CHN/daily?token=demo&ticker=000300"
data = requests.get(url).json()
print(data)
Response示例
全球指数行情通用接口
# Restful
APIhttps://tsanghi.com/api/fin/index/{country_code}/daily?token={token}&ticker={ticker}
默认返回全部历史数据,也可以使用参数start_date和end_date选择特定时间段。此接口可方便地获取全球指数的历史行情,可用于数据初始化。目前,已经覆盖全球30+国家/地区,以及30年以上的历史数据,收录指数数量超500只(详见指数清单接口)。
更新时间:收盘后3~4小时。
更新周期:每天。
请求方式:GET。
Request请求参数