一:介绍
本文主要介绍一个接口可以完整的获取A股的所有的股票代码,
数据来源是从上海交易所,深圳交易所,北京交易所的数据,
每天会同步一次,具体接口如下。
二:接口
2.1 接口地址
https://jay.tohours.com/miniprogram/api/external/stock/query-code
2.3 请求方式
POST
2.4 入参
参数 | 类型 | 是否必填 | 说明 |
---|
pageNo | int | N | 页码,默认是1 |
pageSize | int | N | 每页大小,默认是10,最大是100 |
2.5 出参
{
"resCode":"200",
"resMsg":"操作成功!",
"resData":{
"total":10970,
"current":1,
"pages":1097,
"size":10,
"optimizeCountSql":true,
"records":[
{
"code":"605566",
"name":"福莱蒽特",
"timeToMarket":"20211025"
},
{
"code":"605567",
"name":"春雪食品",
"timeToMarket":"20211013"
},
{
"code":"605577",
"name":"龙版传媒",
"timeToMarket":"20210824"
},
{
"code":"605580",
"name":"恒盛能源",
"timeToMarket":"20210819"
},
{
"code":"605588",
"name":"冠石科技",
"timeToMarket":"20210812"
},
{
"code":"605589",
"name":"圣泉集团",
"timeToMarket":"20210810"
},
{
"code":"605598",
"name":"上海港湾",
"timeToMarket":"20210917"
},
{
"code":"605599",
"name":"菜百股份",
"timeToMarket":"20210909"
},
{
"code":"605183",
"name":"确成股份",
"timeToMarket":"20201207"
},
{
"code":"605186",
"name":"健麾信息",
"timeToMarket":"20201222"
}
],
"maxLimit":"",
"searchCount":true,
"orders":[
],
"countId":""
}
}
参数 | 类型 | 说明 |
---|
resCode | String | 状态码,200:正常,100:异常 |
resMsg | String | resCode是100的错误提示内容 |
resData | String | resCode是200的正确响应数据 |
name | String | 股票名称 |
code | String | 股票代码 |
timeToMarket | String | 上市时间,格式yyyy-MM-dd |
三:联系作者
微信:616527047