印度尼西亚指数清单列表数据API接口

17 阅读1分钟
# Restful API
https://tsanghi.com/api/fin/index/IDN/list?token={token}

更新时间:收盘后3~4小时。

更新周期:每天。

请求方式:GET。

# 测试:返回不超过10条数据(2年历史)
https://tsanghi.com/api/fin/index/IDN/list?token=demo

Request请求参数

参数名称参数类型参数选项参数说明
token字符串必选API Token。登录后获取。
ticker字符串可选指数代码。
fmt字符串可选输出格式。支持json和csv两种标准输出格式,默认:json。
columns字符串可选输出字段。支持自定义输出,多个字段以半角逗号分隔,默认:所有字段。

Response响应参数

参数名称参数类型参数说明
ticker字符串指数代码
name字符串指数名称
country_code字符串国家/地区代码。详见国家/地区清单接口。

Python示例

import requests

url = f"https://tsanghi.com/api/fin/index/IDN/list?token=demo"
data = requests.get(url).json()
print(data)

Response示例

image.png

# 更多详情
https://tsanghi.com