接口说明:行业板块个股列表

地址:https://stockapi.com.cn/v1/base/bkList?bkCode=BK1036

参数名称类型默认值示例值是否必须描述
bkCodestringBK1036行业板块代码
pageNoint1页码
pageSizeint50每页行数

请求示例:

https://stockapi.com.cn/v1/base/bkList?bkCode=BK1036

返回值说明:

[
    { name: "code", type: "int", demo: "20000", desc: "返回码" },
    { name: "msg", type: "string",  demo: "success", desc: "状态" },
    { name: "data", type: "Object[]", demo: "",  desc: "" },
    { name: "- f1", type: "string" demo: "2", desc: "序号" },
    { name: "- f2", type: "string" demo: "90.8", desc: "最新价" },
    { name: "- f3", type: "string" demo: "-0.69%", desc: "今日涨跌幅" },
    { name: "- f12", type: "string" demo: "300223", desc: "股票代码" },
    { name: "- f13", type: "string" demo: "0", desc: "" },
    { name: "- f14", type: "string" demo: "北京君正", desc: "股票名称" },
    { name: "- f62", type: "string" demo: "42552789", desc: "今日主力净流入净额" },
    { name: "- f66", type: "string" demo: "5038315", desc: "今日超大单净流入净额" },
    { name: "- f69", type: "string" demo: "0.6%", desc: "今日超大单净流入占比" },
    { name: "- f72", type: "string" demo: "37514474", desc: "今日大单净流入净额" },
    { name: "- f75", type: "string" demo: "4.49%", desc: "今日大单净流入占比" },
    { name: "- f78", type: "string" demo: "22833456", desc: "今日中单净流入净额" },
    { name: "- f81", type: "string" demo: "2.73%", desc: "今日中单净流入占比" },
    { name: "- f84", type: "string" demo: "-65386248", desc: "今日小单净流入净额" },
    { name: "- f87", type: "string" demo: "-7.83%", desc: "今日小单净流入占比" },
    { name: "- f184", type: "string" demo: "2%", desc: "今日主力净流入净额占比" }
 
  ]

返回示例:

{
  "code": 20000,
  "msg": "success",
  "data": [
    {
      "f1": 2,
      "f2": 90.8,
      "f3": -0.69,
      "f12": "300223",
      "f13": 0,
      "f14": "北京君正",
      "f62": 42552789,
      "f66": 5038315,
      "f69": 0.6,
      "f72": 37514474,
      "f75": 4.49,
      "f78": 22833456,
      "f81": 2.73,
      "f84": -65386248,
      "f87": -7.83,
      "f124": 1653464073,
      "f184": 5.1,
    }
  ]
}

接口说明:所有ETF代码

地址:https://stockapi.com.cn/v1/fund/etf

请求示例:

https://stockapi.com.cn/v1/fund/etf

返回值说明:

[
    { name: "code", type: "int", demo: "20000", desc: "返回码" },
    { name: "msg", type: "string",  demo: "success", desc: "状态" },
    { name: "data", type: "Object[]", demo: "",  desc: "" },
    { name: "- code", type: "string" demo: "159707", desc: "代码" },
    { name: "- name", type: "string" demo: "地产ETF", desc: "ETF名称" },
  ]

返回示例:

{
  "code": 20000,
  "msg": "success",
  "data": [
    {
      "code": "159707",
      "name": "地产ETF"
    },
    {
      "code": "159708",
      "name": "红利ETF"
    }
  ]
}

接口说明:今日股票增量数据

地址:https://stockapi.com.cn/v1/base/dayAll

请求示例:

https://stockapi.com.cn/v1/base/dayAll

返回值说明:

[
    { name: "code", type: "int", demo: "20000", desc: "返回码" },
    { name: "msg", type: "string",  demo: "success", desc: "状态" },
    { name: "data", type: "Object", demo: "",  desc: "" },
    { name: "- code", type: "string", demo: "600004",  desc: "代码" },
    { name: "- time", type: "string", demo: "2022-09-30",  desc: "时间" },
    { name: "- volume", type: "string", demo: "",  desc: "成交量" },
    { name: "- turnoverRatio", type: "string", demo: "",  desc: "换手率" },
    { name: "- amount", type: "string", demo: "",  desc: "成交额" },
    { name: "- change", type: "string", demo: "",  desc: "涨跌" },
    { name: "- high", type: "string", demo: "",  desc: "最高价" },
    { name: "- low", type: "string", demo: "",  desc: "最低价" },
    { name: "- changeRatio", type: "string", demo: "",  desc: "涨跌幅" },
    { name: "- close", type: "string", demo: "",  desc: "收盘价" },
    { name: "- open", type: "string", demo: "",  desc: "开盘价" },
  ]

返回示例:

{
  "code": 20000,
  "msg": "success",
  "data": [
     {
      "code": "000016",
      "time": "2022-09-30",
      "open": "2618.08",
      "turnoverRatio": "0.19",
      "amount": "43646943525.00",
      "change": "1.03",
      "high": "2631.78",
      "low": "2604.93",
      "changeRatio": "0.04",
      "close": "2610.12",
      "volume": "23244464"
    },
    {
      "code": "000040.SZ",
      "time": "2022-09-30",
      "open": "3.88",
      "turnoverRatio": "9.58",
      "amount": "412453121.01",
      "change": "0.37",
      "high": "4.09",
      "low": "3.88",
      "changeRatio": "9.95",
      "close": "4.09",
      "volume": "1016331"
    }
  ]
}

接口说明:基金净值历史数据

地址:https://stockapi.com.cn/v1/fund/history

参数名称类型默认值示例值是否必须描述
codestring011435基金代码
endDatestring2022-10-28结束时间
startDatestring2022-10-28开始时间

请求示例:

https://stockapi.com.cn/v1/fund/history?code=011435&endDate=2022-10-28&startDate=2022-10-28

返回值说明:

[
    { name: "code", type: "int", demo: "20000", desc: "返回码" },
    { name: "msg", type: "string",  demo: "success", desc: "状态" },
    { name: "data", type: "Object[]", demo: "",  desc: "" },
    { name: "- time", type: "string" demo: "2022-10-28", desc: "净值日期" },
    { name: "- dwjz", type: "string" demo: "0.6944", desc: "单位净值" },
    { name: "- ljjz", type: "string" demo: "0.6944", desc: "累计净值" },
    { name: "- rzzl", type: "string" demo: "-2.004", desc: "日增长率" },
  ]

返回示例:

{
  "code": 20000,
  "msg": "success",
  "data": [
    {
      "time": "2022-10-28",
      "dwjz": "0.6944",
      "ljjz": "0.6944",
      "rzzl": -2.004
    }
  ]
}

接口说明:基金当天数据信息

地址:https://stockapi.com.cn/v1/fund/info

参数名称类型默认值示例值是否必须描述
codestring011435基金代码
datestring2022-10-28交易时间

请求示例:

https://stockapi.com.cn/v1/fund/history?code=011435&date=2022-10-28

返回值说明:

[
    { name: "code", type: "int", demo: "20000", desc: "返回码" },
    { name: "msg", type: "string",  demo: "success", desc: "状态" },
    { name: "data", type: "Object[]", demo: "",  desc: "" },
    { name: "- code", type: "string" demo: "011435", desc: "基金代码" },
    { name: "- createdate", type: "string" demo: "2021年03月24日", desc: "成立日期" },
    { name: "- zxgm", type: "string" demo: "9亿", desc: "最新规模" },
    { name: "- glr", type: "string" demo: "中欧基金", desc: "管理人" },
    { name: "- ljdwjz", type: "string" demo: "0.6856元", desc: "累计单位净值" },
    { name: "- jjjl", type: "string" demo: "卢纯青", desc: "基金经理" },
    { name: "- dwjz", type: "string" demo: "0.6856", desc: "单位净值" },
    { name: "- zdf", type: "string" demo: "-2.00%", desc: "涨跌幅" },
    { name: "- jsyzf", type: "string" demo: "-14.67%", desc: "近三月涨幅" },
    { name: "- jynzf", type: "string" demo: "-29.90%", desc: "近一年涨幅" },
    { name: "- jsnzf", type: "string" demo: "", desc: "近三年涨幅" },
    { name: "- zxgz", type: "string" demo: "", desc: "最新估值" },
    { name: "- sjrq", type: "string" demo: "2022-10-28", desc: "数据日期" },
    { name: "- lx", type: "string" demo: "混合型", desc: "类型" },
    { name: "- fx", type: "string" demo: "中风险", desc: "风险" },
    { name: "- xcpj", type: "string" demo: "晨星评级:暂无", desc: "晨星评级" }
  ]

返回示例:

{
  "code": 20000,
  "msg": "success",
  "data": {
    "code": "011436",
    "createdate": "2021年03月24日",
    "zxgm": "9亿 ",
    "glr": "中欧基金",
    "ljdwjz": "0.6856元",
    "jjjl": "卢纯青",
    "dwjz": "0.6856",
    "zdf": "-2.00%",
    "jsyzf": "-14.67%",
    "jynzf": "-29.90%",
    "jsnzf": "--",
    "zxgz": "--",
    "sjrq": "2022-10-28",
    "lx": "混合型",
    "fx": "中风险",
    "xcpj": "晨星评级:暂无 "
  }
}

接口说明:分时数据获取

地址:https://stockapi.com.cn/v1/base/min
更新频率:一分钟一次

参数名称类型默认值示例值是否必须描述
codestring601088股票代码

请求示例:

https://stockapi.com.cn/v1/base/min?code=601088

返回值说明:

[
    { name: "code", type: "int", demo: "20000", desc: "返回码" },
    { name: "msg", type: "string",  demo: "success", desc: "状态" },
    { name: "data", type: "Object[]", demo: "",  desc: "" },
    { name: "- time", type: "string" demo: "14:56:00", desc: "时间" },
    { name: "- price", type: "string" demo: "29.75", desc: "价格" },
    { name: "- shoushu", type: "string" demo: "39", desc: "手数" },
    { name: "- bsbz", type: "string" demo: "1", desc: "涨跌标志:1-跌,2-涨,4-竞价阶段" },
  ]

返回示例:

{
  "code": 20000,
  "msg": "success",
  "data": [
    {
      "time": "09:16:00",
      "price": "29.55",
      "shoushu": "889",
      "bsbz": "4"
    },
    {
      "time": "09:17:00",
      "price": "29.56",
      "shoushu": "1622",
      "bsbz": "4"
    }
  ]
}

接口说明:秒级数据获取

地址:https://stockapi.com.cn/v1/base/second
更新频率:3秒钟一次

参数名称类型默认值示例值是否必须描述
codestring601088股票代码

请求示例:

https://stockapi.com.cn/v1/base/second?code=601088

返回值说明:

[
    { name: "code", type: "int", demo: "20000", desc: "返回码" },
    { name: "msg", type: "string",  demo: "success", desc: "状态" },
    { name: "data", type: "Object[]", demo: "",  desc: "" },
    { name: "- time", type: "string" demo: "09:15:03", desc: "时间" },
    { name: "- price", type: "string" demo: "29.75", desc: "价格" },
    { name: "- shoushu", type: "string" demo: "39", desc: "手数" },
    { name: "- bsbz", type: "string" demo: "1", desc: "涨跌标志:1-跌,2-涨,4-竞价阶段" },
  ]

返回示例:

{
  "code": 20000,
  "msg": "success",
  "data": [
   {
      "time": "09:15:03",
      "price": "29.44",
      "shoushu": "8",
      "bsbz": "4"
    },
    {
      "time": "09:15:06",
      "price": "29.50",
      "shoushu": "20",
      "bsbz": "4"
    }
  ]
}

接口说明:分时K线数据

地址:https://stockapi.com.cn/v1/base/mink
更新频率:一分钟一次

参数名称类型默认值示例值是否必须描述
codestring601088股票代码

请求示例:

https://stockapi.com.cn/v1/base/mink?code=601088

返回值说明:

[
    { name: "code", type: "int", demo: "20000", desc: "返回码" },
    { name: "msg", type: "string",  demo: "success", desc: "状态" },
    { name: "data", type: "Object[]", demo: "",  desc: "" },
    { name: "- time", type: "string" demo: "2022-11-29 09:15:00", desc: "时间" },
    { name: "- open", type: "string" demo: "29.75", desc: "开盘价" },
    { name: "- amount", type: "string" demo: "0.00", desc: "成交额" },
    { name: "- high", type: "string" demo: "29.95", desc: "最高价" },
    { name: "- low", type: "string" demo: "29.15", desc: "最低价" },
    { name: "- close", type: "string" demo: "29.75", desc: "收盘价" },
    { name: "- volume", type: "string" demo: "18999", desc: "成交量" },
  ]

返回示例:

{
  "code": 20000,
  "msg": "success",
  "data": [
    {
      "time": "2022-11-29 09:15:00",
      "open": "30.37",
      "amount": "0.00",
      "high": "30.37",
      "low": "30.37",
      "close": "30.37",
      "volume": "0"
    },
    {
      "time": "2022-11-29 09:16:00",
      "open": "30.40",
      "amount": "0.00",
      "high": "30.40",
      "low": "30.38",
      "close": "30.38",
      "volume": "0"
    }
  ]
}

接口说明:分时kdj数据

地址:https://stockapi.com.cn/v1/base/minKdj
请求示例:

https://stockapi.com.cn/v1/base/minKdj?code=600004&cycle=9&cycle1=3&cycle2=3

请求参数说明:

参数名称类型默认值示例值是否必须描述
codestring600004.SH股票代码
cycleint99周期
cycle1int33周期1
cycle2int33周期2
[
    { name: "code", type: "int", demo: "20000", desc: "返回码" },
    { name: "msg", type: "string",  demo: "success", desc: "状态" },
    { name: "data", type: "Object", demo: "600004.SH",  desc: "" },
    { name: "- api_code", type: "string", demo: "601088.SH",  desc: "股票代码" },
    { name: "- date", type: "Object[]", demo: "10.83",  desc: "时间" },
    { name: "- k", type: "Object[]", demo: "",  desc: "" },
    { name: "- d", type: "Object[]", demo: "",  desc: "" },
    { name: "- j", type: "Object[]", demo: "",  desc: "" }
   
  ]

返回示例:

{
    "code":20000,
    "msg":"success",
    "data":{
        "code":"601088.SH",
        "date":Array[256],
        "d":Array[256],
        "j":Array[256],
        "k":Array[256]
    }
}

接口说明:获取所有指数代码

地址:https://stockapi.com.cn/v1/base/ZSCode
请求示例:

https://stockapi.com.cn/v1/base/ZSCode

请求参数说明:无参
返回示例:

{
    "code": 20000,
  "msg": "success",
  "data": [
    {
      "code": "zs000001",
      "name": "上证指数"
    },
    {
      "code": "zs399001",
      "name": "深证成指"
    },
    {
      "code": "zs399006",
      "name": "创业板指"
    }
  ]
}

接口说明:获取游资名称

地址:https://stockapi.com.cn/v1/youzi/name
请求示例:

https://stockapi.com.cn/v1/youzi/name

请求参数说明:无参
返回说明:

[
   { name: "code", type: "int", demo: "20000", desc: "返回码" },
   { name: "msg", type: "string",  demo: "success", desc: "状态" },
   { name: "data", type: "Object", demo: "600004.SH",  desc: "" },
   { name: "- youziName", type: "string", demo: "章盟主",  desc: "游资名称" },
   { name: "- cpfg", type: "string", demo: "10.83",  desc: "操盘风格" },
 ]

返回示例:

{
    "code": 20000,
  "msg": "success",
  "data": [
    {
      "youziName": "章盟主",
      "cpfg": "说到中国最早的游资,只有两个人有这个资格,一个就是“敢死队总舵主”徐翔,另一个就是我们今天说的被称为游资“盟主”的章建平,章盟主是“60后”的老大,短线手法非常犀利,更厉害的是据说他没有任何助手,所有东西都是自己一个人做。"
    },
    {
      "youziName": "徐留胜",
      "cpfg": "著名牛散、顶级游资徐留胜,曾被证监会处罚罚没1.1亿。通常喜好大手笔出手后波段锁仓"
    },
    {
      "youziName": "方新侠",
      "cpfg": "方新侠,85后,博士学位,股龄12年以上,编写《股坛练兵诀》、《股坛点将录》"
    }
  ]
}

接口说明:全量游资上榜交割单历史

地址:https://stockapi.com.cn/v1/youzi/dayAll
请求参数说明:

参数名称类型默认值示例值是否必须描述
endDatestring2023-03-24结束时间
startDatestring2023-03-24开始时间
https://stockapi.com.cn/v1/youzi/dayAll?endDate=2023-03-24&startDate=2023-03-21

返回说明:

[
   { name: "code", type: "int", demo: "20000", desc: "返回码" },
   { name: "msg", type: "string",  demo: "success", desc: "状态" },
   { name: "data", type: "Object", demo: "",  desc: "" },
   { name: "- yzmc", type: "string", demo: "92科比",  desc: "游资名称" },
   { name: "- yyb", type: "string", demo: "兴业证券股份有限公司南京天元东路证券营业部",  desc: "营业部" },
   { name: "- gpdm", type: "string", demo: "001337",  desc: "股票代码" },
   { name: "- gpmc", type: "string", demo: "四川黄金",  desc: "股票名称" },
   { name: "- mrje", type: "string", demo: "14470401",  desc: "买入金额" },
   { name: "- mcje", type: "string", demo: "15080",  desc: "卖出金额" },
   { name: "- jlrje", type: "string", demo: "14455321",  desc: "净流入金额" },
   { name: "- rq", type: "string", demo: "日期",  desc: "2023-03-22" },
   { name: "- gl", type: "string", demo: "贵金属,四川板块,昨日连板_含一字,昨日涨停_含一字,黄金概念,次新股",  desc: "概念" },
 ]

返回示例:

{
    "code": 20000,
  "msg": "success",
  "data": [
    {
      "yzmc": "92科比",
      "yyb": "兴业证券股份有限公司南京天元东路证券营业部",
      "gpdm": "001337",
      "gpmc": "四川黄金",
      "mrje": "14470401",
      "mcje": "15080",
      "jlrje": "14455321",
      "rq": "2023-03-22",
      "gl": "贵金属,四川板块,昨日连板_含一字,昨日涨停_含一字,黄金概念,次新股"
    },
    {
      "yzmc": "T王",
      "yyb": "东方财富证券股份有限公司拉萨团结路第二证券营业部",
      "gpdm": "001337",
      "gpmc": "四川黄金",
      "mrje": "19266093",
      "mcje": "6871531",
      "jlrje": "12394562",
      "rq": "2023-03-22",
      "gl": "贵金属,四川板块,昨日连板_含一字,昨日涨停_含一字,黄金概念,次新股"
    }
  ]
}

接口说明:单个游资上榜交割单历史

地址:https://stockapi.com.cn/v1/youzi/jgd
请求参数说明:

参数名称类型默认值示例值是否必须描述
yzmcstring92科比游资名称
endDatestring2023-03-24结束时间
startDatestring2023-03-21开始时间
https://stockapi.com.cn/v1/youzi/jgd?yzmc=92科比&endDate=2023-03-24&startDate=2023-03-21

返回说明:

[
   { name: "code", type: "int", demo: "20000", desc: "返回码" },
   { name: "msg", type: "string",  demo: "success", desc: "状态" },
   { name: "data", type: "Object", demo: "",  desc: "" },
   { name: "- yzmc", type: "string", demo: "92科比",  desc: "游资名称" },
   { name: "- yyb", type: "string", demo: "兴业证券股份有限公司南京天元东路证券营业部",  desc: "营业部" },
   { name: "- gpdm", type: "string", demo: "001337",  desc: "股票代码" },
   { name: "- gpmc", type: "string", demo: "四川黄金",  desc: "股票名称" },
   { name: "- mrje", type: "string", demo: "14470401",  desc: "买入金额" },
   { name: "- mcje", type: "string", demo: "15080",  desc: "卖出金额" },
   { name: "- jlrje", type: "string", demo: "14455321",  desc: "净流入金额" },
   { name: "- rq", type: "string", demo: "日期",  desc: "2023-03-22" },
   { name: "- gl", type: "string", demo: "贵金属,四川板块,昨日连板_含一字,昨日涨停_含一字,黄金概念,次新股",  desc: "概念" },
 ]

返回示例:

{
    "code": 20000,
  "msg": "success",
  "data": [
    {
      "yzmc": "92科比",
      "yyb": "兴业证券股份有限公司南京天元东路证券营业部",
      "gpdm": "001337",
      "gpmc": "四川黄金",
      "mrje": "14470401",
      "mcje": "15080",
      "jlrje": "14455321",
      "rq": "2023-03-22",
      "gl": "贵金属,四川板块,昨日连板_含一字,昨日涨停_含一字,黄金概念,次新股"
    }
  ]
}

接口说明:个股游资上榜交割单

地址:https://stockapi.com.cn/v1/youzi/gegu
请求参数说明:

参数名称类型默认值示例值是否必须描述
codestring001337股票代码
endDatestring2023-03-24结束时间
startDatestring2023-03-21开始时间
https://stockapi.com.cn/v1/youzi/gegu?code=001337&endDate=2023-03-24&startDate=2023-03-21

返回说明:

[
   { name: "code", type: "int", demo: "20000", desc: "返回码" },
   { name: "msg", type: "string",  demo: "success", desc: "状态" },
   { name: "data", type: "Object", demo: "",  desc: "" },
   { name: "- yzmc", type: "string", demo: "92科比",  desc: "游资名称" },
   { name: "- yyb", type: "string", demo: "兴业证券股份有限公司南京天元东路证券营业部",  desc: "营业部" },
   { name: "- gpdm", type: "string", demo: "001337",  desc: "股票代码" },
   { name: "- gpmc", type: "string", demo: "四川黄金",  desc: "股票名称" },
   { name: "- mrje", type: "string", demo: "14470401",  desc: "买入金额" },
   { name: "- mcje", type: "string", demo: "15080",  desc: "卖出金额" },
   { name: "- jlrje", type: "string", demo: "14455321",  desc: "净流入金额" },
   { name: "- rq", type: "string", demo: "日期",  desc: "2023-03-22" },
   { name: "- gl", type: "string", demo: "贵金属,四川板块,昨日连板_含一字,昨日涨停_含一字,黄金概念,次新股",  desc: "概念" },
 ]

返回示例:

{
    "code": 20000,
  "msg": "success",
  "data": [
    {
      "yzmc": "92科比",
      "yyb": "兴业证券股份有限公司南京天元东路证券营业部",
      "gpdm": "001337",
      "gpmc": "四川黄金",
      "mrje": "14470401",
      "mcje": "15080",
      "jlrje": "14455321",
      "rq": "2023-03-22",
      "gl": "贵金属,四川板块,昨日连板_含一字,昨日涨停_含一字,黄金概念,次新股"
    },
    {
      "yzmc": "T王",
      "yyb": "东方财富证券股份有限公司拉萨团结路第二证券营业部",
      "gpdm": "001337",
      "gpmc": "四川黄金",
      "mrje": "19266093",
      "mcje": "6871531",
      "jlrje": "12394562",
      "rq": "2023-03-22",
      "gl": "贵金属,四川板块,昨日连板_含一字,昨日涨停_含一字,黄金概念,次新股"
    }
  ]
}

接口说明:全量异动数据历史

地址:https://stockapi.com.cn/v1/change/allHistory
请求参数说明:

参数名称类型默认值示例值是否必须描述
typestring8201:火箭发射异动类型
endDatestring2023-03-24结束时间
startDatestring2023-03-21开始时间
https://stockapi.com.cn/v1/change/allHistory?endDate=2023-03-22&startDate=2023-03-21&type=8201

返回说明:

[
   { name: "code", type: "int", demo: "20000", desc: "返回码" },
   { name: "msg", type: "string",  demo: "success", desc: "状态" },
   { name: "data", type: "Object", demo: "",  desc: "" },
   { name: "- time", type: "string", demo: "145553",  desc: "异动时间" },
   { name: "- code", type: "string", demo: "股票代码",  desc: "873152" },
    { name: "- name", type: "string", demo: "股票名称",  desc: "天宏锂电" },
   { name: "- type", type: "string", demo: "8201",  desc: "异动类型" },
   { name: "- info", type: "string", demo: "26.13%",  desc: "异动信息" },
   { name: "- typeName", type: "string", demo: "异动名称",  desc: "火箭发射" },
   { name: "- dateId", type: "string", demo: "日期",  desc: "2023-03-21" }
 ]

返回示例:

{
    "code": 20000,
  "msg": "success",
  "data": [
    {
      "time": "145553",
      "code": "873152",
      "name": "天宏锂电",
      "type": 8201,
      "info": "26.13%",
      "typeName": "火箭发射",
      "dateId": "2023-03-21"
    },
    {
      "time": "145522",
      "code": "871553",
      "name": "凯腾精工",
      "type": 8201,
      "info": "6.82%",
      "typeName": "火箭发射",
      "dateId": "2023-03-21"
    }
  ]
}

接口说明:股票异动数据历史

地址:https://stockapi.com.cn/v1/change/codeHistory
请求参数说明:

参数名称类型默认值示例值是否必须描述
codestring300688股票代码
endDatestring2023-03-24结束时间
startDatestring2023-03-21开始时间
https://stockapi.com.cn/v1/change/codeHistory?endDate=2023-03-22&startDate=2023-03-21&code=300688

返回说明:

[
   { name: "code", type: "int", demo: "20000", desc: "返回码" },
   { name: "msg", type: "string",  demo: "success", desc: "状态" },
   { name: "data", type: "Object", demo: "",  desc: "" },
   { name: "- time", type: "string", demo: "145553",  desc: "异动时间" },
   { name: "- code", type: "string", demo: "股票代码",  desc: "300688" },
   { name: "- name", type: "string", demo: "股票名称",  desc: "创业黑马" },
   { name: "- type", type: "string", demo: "001337",  desc: "异动类型" },
   { name: "- info", type: "string", demo: "26.13%",  desc: "异动信息" },
   { name: "- typeName", type: "string", demo: "异动名称",  desc: "火箭发射" },
   { name: "- dateId", type: "string", demo: "日期",  desc: "2023-03-21" }
 ]

返回示例:

{
    "code": 20000,
  "msg": "success",
  "data": [
    {
      "time": "145502",
      "code": "300688",
      "name": "创业黑马",
      "type": 8201,
      "info": "4.91%",
      "typeName": "火箭发射",
      "dateId": "2023-03-21"
    }
  ]
}
Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐