DEV Community

GuGuData
GuGuData

Posted on

A 股股票代码 API 接口

A 股股票代码 API 接口

实时更新股票代码列表,实时数据,多交易所数据。

gugudata_api_cover

1. 产品功能

  • 目前支持所有 A 股股票代码列表查询;
  • 无需自己维护数据源,我们提供实时列表数据;
  • 包含 A 股所有交易所的股票代码列表;
  • 毫秒级查询性能;
  • 全接口支持 HTTPS(TLS v1.0 / v1.1 / v1.2 / v1.3);
  • 全面兼容 Apple ATS;
  • 全国多节点 CDN 部署;
  • 接口极速响应,多台服务器构建 API 接口负载均衡。

2. API 文档

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

接口地址: https://api.gugudata.com/stock/symbols

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

请求方式: GET

请求协议: HTTPS

请求示例: https://api.gugudata.com/stock/symbols?appkey=YOUR_APPKEY&stockType=A&pageIndex=1&pageSize=

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

接口测试: https://api.gugudata.com/stock/symbols/demo

3. 请求参数

参数名 参数类型 是否必须 默认值 备注
appkey string YOUR_APPKEY 付费后获取的 APPKEY
stocktype string A 股票类型,A:A股
pageindex number 1 分页参数,页码
pagesize number 分页参数,每页条数,最大值:100,若传递 0 则返回所有数据

4. 返回参数

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

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

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

Okay