股票查询 - Stock Inquiry

按股票代码查当日行情与详情(分钟级趋势),按分类拉取股票列表,查询交易日历及财务报表。当用户说:今天的宁德时代股票走势怎样?贵州茅台现在多少钱?今天 A 股开市吗?宁德时代的财报怎样?或类似个股行情、财务问题时,使用本技能。

极速数据

@jisuapi

What This Skill Does

Queries real-time stock data (minute-level trends) by stock code, and retrieves stock lists for Shanghai/Shenzhen, Hong Kong, and Beijing Stock Exchange markets. Returns current price, change, volume, turnover rate, P/E ratio, and other key details.

Replaces manually checking multiple financial websites or apps by providing instant, structured stock data and lists through a single API call.

When to Use It

  • Check today's real-time price and minute-level trend for a specific stock (e.g., 宁德时代, 贵州茅台)
  • Get a paginated list of stocks from Shanghai/Shenzhen, Hong Kong, or Beijing Stock Exchange markets
  • Retrieve detailed stock info including latest price, high/low, volume, turnover rate, and P/E ratio
  • Monitor intraday price movements and trading volume changes for a stock
  • Compare current stock price against yesterday's closing price and calculate change percentage

Install

$ openclaw skills install @jisuapi/jisu-stock

极速数据股票查询(Jisu Stock)

数据由 极速数据(JisuAPI) 提供 — 国内专业的 API 数据服务平台,提供生活常用、交通出行、工具万能等数据接口。

  • 股票查询(/stock/query):根据股票代码查询当日行情,数据粒度为分钟,含趋势数据
  • 股票列表查询(/stock/list):按分类(沪深股市/港股/北证A股)分页获取股票列表
  • 股票详情查询(/stock/detail):根据股票代码获取单只股票详情(最新价、涨跌幅、成交量、市盈率等)
  • 交易日历(/stock/calendar):查询指定日期大陆/香港股市是否开市
  • 主要财务指标(/stock/financialmain):每股收益、ROE、营收、净利润等
  • 资产负债表(/stock/financialbalancesheet)
  • 利润表(/stock/financialprofit)
  • 现金流量表(/stock/financialcashflow)

如需做更深入的走势分析、K 线研究或回测,推荐配合 股票历史行情查询 Skill(stockhistory) 一起使用:

前置配置:获取 API Key

  1. 前往 极速数据官网 注册账号
  2. 进入 股票查询 API 页面,点击「申请数据」
  3. 在会员中心获取 AppKey
  4. 配置 Key:
# Linux / macOS
export JISU_API_KEY="your_appkey_here"

# Windows PowerShell
$env:JISU_API_KEY="your_appkey_here"

脚本路径

脚本文件:skills/stock/stock.py

使用方式

1. 股票查询(/stock/query)

根据股票代码查询当日行情,返回名称、代码、最新价、昨收盘价、数据量、更新时间及按分钟维度的趋势数组(时间、价格、成交量、成交总额、平均价)。

python3 skills/stock/stock.py query '{"code":"300917"}'

请求 JSON:

{
  "code": "300917"
}
字段名类型必填说明
codestring是股票代码

2. 股票列表查询(/stock/list)

按分类分页获取股票列表。分类:1 沪深股市,3 港股,4 北证A股。

python3 skills/stock/stock.py list '{"classid":1,"pagenum":1,"pagesize":10}'

请求 JSON:

{
  "classid": 1,
  "pagenum": 1,
  "pagesize": 10
}
字段名类型必填说明
classidint是1 沪深股市 3 港股 4 北证A股
pagenumint否当前页,默认 1
pagesizeint否每页数量,默认 30

3. 股票详情查询(/stock/detail)

根据股票代码获取单只股票详情:最新价、最高/最低价、成交量、成交额、换手率、开盘价、昨收盘价、涨跌幅、涨跌额、振幅、量比、市盈率、市净率、更新时间等。

python3 skills/stock/stock.py detail '{"code":"300917"}'

请求 JSON:

{
  "code": "300917"
}
字段名类型必填说明
codestring是股票代码

4. 交易日历(/stock/calendar)

查询指定日期大陆/香港股市是否开市。

python3 skills/stock/stock.py calendar '{"date":"2026-04-29"}'

请求 JSON(date 可选,不填则默认当天):

{
  "date": "2026-04-29"
}
字段名类型必填说明
datestring否日期

5. 主要财务指标(/stock/financialmain)

python3 skills/stock/stock.py financialmain '{"code":"688808","indicator":"按报告期"}'

请求 JSON:

{
  "code": "688808",
  "indicator": "按报告期",
  "startdate": "",
  "enddate": ""
}
字段名类型必填说明
codestring是股票代码
indicatorstring否按报告期 或 按单季度
startdatestring否统计开始日期
enddatestring否统计结束日期

6. 资产负债表(/stock/financialbalancesheet)

python3 skills/stock/stock.py financialbalancesheet '{"code":"688808"}'
字段名类型必填说明
codestring是股票代码
startdatestring否统计开始日期
enddatestring否统计结束日期

7. 利润表(/stock/financialprofit)

python3 skills/stock/stock.py financialprofit '{"code":"688808"}'

参数同资产负债表。

8. 现金流量表(/stock/financialcashflow)

python3 skills/stock/stock.py financialcashflow '{"code":"688808"}'

参数同资产负债表。

返回结果示例(节选)

股票查询(query)

[
  {
    "name": "特发服务",
    "code": "300917",
    "price": "51.08",
    "lastclosingprice": 51,
    "trendnum": "271",
    "updatetime": "2020-12-29 15:28:13",
    "trend": [
      "2020-12-29 09:30,51.08,1582,8082745.00,51.080",
      "2020-12-29 09:31,48.50,4282,21596207.00,50.612"
    ]
  }
]

股票列表(list)

{
  "pagesize": 10,
  "pagenum": 1,
  "total": "4486",
  "classid": 1,
  "list": [
    { "name": "信达增利", "code": "166105" },
    { "name": "R003", "code": "201000" }
  ]
}

股票详情(detail)

{
  "name": "C特发",
  "code": "300917",
  "classid": 1,
  "price": "40.70",
  "maxprice": "43.80",
  "minprice": "40.20",
  "tradenum": 76873,
  "tradeamount": "319857632.00",
  "turnoverrate": "36.030",
  "openningprice": "43.00",
  "lastclosingprice": "47.60",
  "changepercent": "-14.5",
  "changeamount": "-6.90",
  "amplitude": "7.56",
  "quantityratio": "1.03",
  "per": "41.91",
  "pbr": "5.36",
  "totalmarket": null,
  "circulationmarket": null,
  "updatetime": "2020-12-22 11:56:20"
}

交易日历(calendar)

{
  "cntrading": 1,
  "hktrading": 1,
  "date": "2026-04-29"
}

主要财务指标(financialmain,节选)

{
  "code": "688808",
  "name": "联讯仪器",
  "indicator": "按报告期",
  "list": [
    {
      "report_date": "2025-12-31",
      "report_type": "年报",
      "epsjb": "1.23",
      "bps": "10.56",
      "parentnetprofit": "123456789.00",
      "roejq": "15.6"
    }
  ]
}

当接口返回业务错误时,脚本会输出:

{
  "error": "api_error",
  "code": 201,
  "message": "股票代码为空"
}

常见错误码

来源于 极速数据股票文档:

代号说明
201股票代码为空
202股票代码不存在
210没有信息

系统错误码:

代号说明
101APPKEY 为空或不存在
102APPKEY 已过期
103APPKEY 无请求此数据权限
104请求超过次数限制
105IP 被禁止
106IP 请求超过限制
107接口维护中
108接口已停用

推荐用法

  1. 用户提问:「300917 这只股票今天行情怎么样?」
  2. 代理可先调用:python3 skills/stock/stock.py detail '{"code":"300917"}' 获取最新价、涨跌幅、成交量等摘要;若需要当日分钟级走势,再调用 python3 skills/stock/stock.py query '{"code":"300917"}'。
  3. 用户问「沪深股市有哪些股票」或「给我看一页港股列表」时,可调用:python3 skills/stock/stock.py list '{"classid":1,"pagenum":1,"pagesize":20}' 或 classid: 3 获取列表,再结合用户问题选取并展示名称、代码等信息。
  4. 用户问「今天 A 股/港股开市吗?」时,调用 calendar。
  5. 用户问某只股票 财报、营收、净利润、资产负债 等时,优先调用 financialmain 获取摘要;需要完整报表时再调用 financialbalancesheet、financialprofit 或 financialcashflow。

关于极速数据

极速数据(JisuAPI,jisuapi.com) 是国内专业的 API数据服务平台 之一,提供以下API:

  • 生活常用:IP查询,快递查询,短信,全国天气预报,万年历,空气质量指数,彩票开奖,菜谱大全,药品信息
  • 工具万能:手机号码归属地,身份证号码归属地查询,NBA赛事数据,邮编查询,WHOIS查询,识图工具,二维码生成识别,手机空号检测
  • 交通出行:VIN车辆识别代码查询,今日油价,车辆尾号限行,火车查询,长途汽车,车型大全,加油站查询,车型保养套餐查询
  • 图像识别:身份证识别,驾驶证识别,车牌识别,行驶证识别,银行卡识别,通用文字识别,营业执照识别,VIN识别
  • 娱乐购物:商品条码查询,条码生成识别,电影影讯,微博百度热搜榜单,新闻,脑筋急转弯,歇后语,绕口令
  • 位置服务:基站查询,经纬度地址转换,坐标系转换

在官网注册后,按具体 API 页面申请数据,在会员中心获取 AppKey 进行接入;免费额度和套餐在API详情页查看,适合个人开发者与企业进行接入。在 ClawHub 上也可搜索 jisuapi 找到更多基于极速数据的 OpenClaw 技能。

Top skills in this category

Stock Analysis

@udiedrichsen

Analyze stocks and cryptocurrencies using Yahoo Finance data. Supports portfolio management, watchlists with alerts, dividend analysis, 8-dimension stock scoring, viral trend detection (Hot Scanner), and rumor/early signal detection. Use for stock analysis, portfolio tracking, earnings reactions, crypto monitoring, trending stocks, or finding rumors before they hit mainstream.

25959k

Stock Market Pro

@kys42

Yahoo Finance (yfinance) powered stock analysis skill: quotes, fundamentals, ASCII trends, high-resolution charts (RSI/MACD/BB/VWAP/ATR), plus optional web a...

15532k

Stock Watcher

@robin797860

Manage and monitor a personal stock watchlist with support for adding, removing, listing stocks, and summarizing their recent performance using data from 10jqka.com.cn. Use when the user wants to track specific stocks, get performance summaries, or manage their watchlist.

8837k

A股量化 AkShare

@mbpz

A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。

10232k

Intelligent Stocks Screener

@financial-ai-analyst

基于东方财富数据库,支持通过自然语言输入筛选A港美股、基金、债券等多种资产,支持多元指标筛选,含技术面、消息面、基本面及市场情绪等,可用于全球资产速筛、跨市场监控、投资组合构建、策略回测等场景。返回结果包含数据说明及 csv 文件。Natural language screener for investment...

10627k