DEV Community

GuGuData
GuGuData

Posted on

A 股指数成分数据 API 数据接口

A 股指数成分数据 API 数据接口

股指成分全量数据,支持指数列表获取,返回所有指数成分数据。

gugudata_api_cover

1. 产品功能

  • 支持所有指数数据查询;
  • 根据指数代码返回所有包含的股票基础信息;
  • 包含收录时间数据;
  • 毫秒级查询性能;
  • 数据持续更新与维护;
  • 全接口支持 HTTPS(TLS v1.0 / v1.1 / v1.2 / v1.3);
  • 全面兼容 Apple ATS;
  • 全国多节点 CDN 部署;
  • 接口极速响应,多台服务器构建 API 接口负载均衡;
  • 接口调用状态与状态监控

2. API 文档

接口详情: https://www.gugudata.com/api/details/stockcnindexcontains

接口地址: https://api.gugudata.com/stock/cn/index/contains

返回格式: application/json; charset=utf-8

请求方式: GET

请求协议: HTTPS

请求示例: https://api.gugudata.com/stock/cn/index/contains?appkey=YOUR_APPKEY&symbol=YOUR_VALUE

数据预览: https://www.gugudata.com/preview/stockcnindexcontains

接口测试: https://api.gugudata.com/stock/cn/index/contains/demo

3. 请求参数

参数名 参数类型 是否必须 默认值 备注
appkey string YOUR_APPKEY 付费后获取的 APPKEY
symbol string YOUR_VALUE 传递上面获取的指数编码,如: 000001。可通过前置接口或参见 A 股指数代码参数枚举页面

4. 返回参数

参数名 参数类型 备注
DataStatus.StatusCode int 接口返回状态码
DataStatus.StatusDescription string 接口返回状态说明
DataStatus.ResponseDateTime string 接口数据返回时间
DataStatus.DataTotalCount int 此条件下的总数据量,一般用于分页计算
Data.Symbol string 股票代码
Data.StockName double 股票名称
Data.FeaturedDateTime double 收录进指数时间

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Heroku

This site is powered by Heroku

Heroku was created by developers, for developers. Get started today and find out why Heroku has been the platform of choice for brands like DEV for over a decade.

Sign Up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay