← Back to Skills Marketplace
jisuapi

Stock Inquiry - 股票查询

by 极速数据 · GitHub ↗ · v1.0.6 · MIT-0
cross-platform ✓ Security Clean
623
Downloads
10
Stars
4
Active Installs
7
Versions
Install in OpenClaw
/install jisu-stock
Description
按股票代码查当日行情与详情(分钟级趋势),或按分类拉取沪深、港股、北证等股票列表。当用户说:今天的宁德时代股票走势怎样?宁德时代股票行情怎样?贵州茅台现在多少钱?或类似个股行情、股票列表问题时,使用本技能。
README (SKILL.md)

\r \r

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

\r

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

  • 股票查询/stock/query):根据股票代码查询当日行情,数据粒度为分钟,含趋势数据\r
  • 股票列表查询/stock/list):按分类(沪深股市/港股/北证A股)分页获取股票列表\r
  • 股票详情查询/stock/detail):根据股票代码获取单只股票详情(最新价、涨跌幅、成交量、市盈率等)\r \r 如需做更深入的走势分析、K 线研究或回测,推荐配合 股票历史行情查询 Skill(stockhistory) 一起使用: \r
  • ClawHub 链接:https://clawhub.ai/jisuapi/stockhistory\r \r

前置配置:获取 API Key\r

\r

  1. 前往 极速数据官网 注册账号\r
  2. 进入 股票查询 API 页面,点击「申请数据」\r
  3. 在会员中心获取 AppKey\r
  4. 配置 Key:\r \r \r
# Linux / macOS\r
export JISU_API_KEY="your_appkey_here"\r
\r
# Windows PowerShell\r
$env:JISU_API_KEY="your_appkey_here"\r
```\r
\r
## 脚本路径\r
\r
脚本文件:`skills/stock/stock.py`\r
\r
## 使用方式\r
\r
### 1. 股票查询(/stock/query)\r
\r
根据股票代码查询当日行情,返回名称、代码、最新价、昨收盘价、数据量、更新时间及按分钟维度的趋势数组(时间、价格、成交量、成交总额、平均价)。\r
\r
```bash\r
python3 skills/stock/stock.py query '{"code":"300917"}'\r
```\r
\r
请求 JSON:\r
\r
```json\r
{\r
  "code": "300917"\r
}\r
```\r
\r
| 字段名 | 类型   | 必填 | 说明     |\r
|--------|--------|------|----------|\r
| code   | string | 是   | 股票代码 |\r
\r
### 2. 股票列表查询(/stock/list)\r
\r
按分类分页获取股票列表。分类:1 沪深股市,3 港股,4 北证A股。\r
\r
```bash\r
python3 skills/stock/stock.py list '{"classid":1,"pagenum":1,"pagesize":10}'\r
```\r
\r
请求 JSON:\r
\r
```json\r
{\r
  "classid": 1,\r
  "pagenum": 1,\r
  "pagesize": 10\r
}\r
```\r
\r
| 字段名   | 类型   | 必填 | 说明                          |\r
|----------|--------|------|-------------------------------|\r
| classid  | int    | 是   | 1 沪深股市 3 港股 4 北证A股   |\r
| pagenum  | int    | 否   | 当前页,默认 1                |\r
| pagesize | int    | 否   | 每页数量,默认 30            |\r
\r
### 3. 股票详情查询(/stock/detail)\r
\r
根据股票代码获取单只股票详情:最新价、最高/最低价、成交量、成交额、换手率、开盘价、昨收盘价、涨跌幅、涨跌额、振幅、量比、市盈率、市净率、更新时间等。\r
\r
```bash\r
python3 skills/stock/stock.py detail '{"code":"300917"}'\r
```\r
\r
请求 JSON:\r
\r
```json\r
{\r
  "code": "300917"\r
}\r
```\r
\r
| 字段名 | 类型   | 必填 | 说明     |\r
|--------|--------|------|----------|\r
| code   | string | 是   | 股票代码 |\r
\r
## 返回结果示例(节选)\r
\r
### 股票查询(query)\r
\r
```json\r
[\r
  {\r
    "name": "特发服务",\r
    "code": "300917",\r
    "price": "51.08",\r
    "lastclosingprice": 51,\r
    "trendnum": "271",\r
    "updatetime": "2020-12-29 15:28:13",\r
    "trend": [\r
      "2020-12-29 09:30,51.08,1582,8082745.00,51.080",\r
      "2020-12-29 09:31,48.50,4282,21596207.00,50.612"\r
    ]\r
  }\r
]\r
```\r
\r
### 股票列表(list)\r
\r
```json\r
{\r
  "pagesize": 10,\r
  "pagenum": 1,\r
  "total": "4486",\r
  "classid": 1,\r
  "list": [\r
    { "name": "信达增利", "code": "166105" },\r
    { "name": "R003", "code": "201000" }\r
  ]\r
}\r
```\r
\r
### 股票详情(detail)\r
\r
```json\r
{\r
  "name": "C特发",\r
  "code": "300917",\r
  "classid": 1,\r
  "price": "40.70",\r
  "maxprice": "43.80",\r
  "minprice": "40.20",\r
  "tradenum": 76873,\r
  "tradeamount": "319857632.00",\r
  "turnoverrate": "36.030",\r
  "openningprice": "43.00",\r
  "lastclosingprice": "47.60",\r
  "changepercent": "-14.5",\r
  "changeamount": "-6.90",\r
  "amplitude": "7.56",\r
  "quantityratio": "1.03",\r
  "per": "41.91",\r
  "pbr": "5.36",\r
  "updatetime": "2020-12-22 11:56:20"\r
}\r
```\r
\r
当接口返回业务错误时,脚本会输出:\r
\r
```json\r
{\r
  "error": "api_error",\r
  "code": 201,\r
  "message": "股票代码为空"\r
}\r
```\r
\r
## 常见错误码\r
\r
来源于 [极速数据股票文档](https://www.jisuapi.com/api/stock/):\r
\r
| 代号 | 说明         |\r
|------|--------------|\r
| 201  | 股票代码为空 |\r
| 202  | 股票代码不存在 |\r
| 210  | 没有信息     |\r
\r
系统错误码:\r
\r
| 代号 | 说明                     |\r
|------|--------------------------|\r
| 101  | APPKEY 为空或不存在       |\r
| 102  | APPKEY 已过期            |\r
| 103  | APPKEY 无请求此数据权限  |\r
| 104  | 请求超过次数限制         |\r
| 105  | IP 被禁止                |\r
| 106  | IP 请求超过限制          |\r
| 107  | 接口维护中               |\r
| 108  | 接口已停用               |\r
\r
## 推荐用法\r
\r
1. 用户提问:「300917 这只股票今天行情怎么样?」  \r
2. 代理可先调用:`python3 skills/stock/stock.py detail '{"code":"300917"}'` 获取最新价、涨跌幅、成交量等摘要;若需要当日分钟级走势,再调用 `python3 skills/stock/stock.py query '{"code":"300917"}'`。  \r
3. 用户问「沪深股市有哪些股票」或「给我看一页港股列表」时,可调用:`python3 skills/stock/stock.py list '{"classid":1,"pagenum":1,"pagesize":20}'` 或 `classid: 3` 获取列表,再结合用户问题选取并展示名称、代码等信息。\r
\r
## 关于极速数据\r
\r
**极速数据(JisuAPI,[jisuapi.com](https://www.jisuapi.com/))** 是国内专业的 **API数据服务平台** 之一,提供以下API:\r
\r
- **生活常用**:IP查询,快递查询,短信,全国天气预报,万年历,空气质量指数,彩票开奖,菜谱大全,药品信息  \r
- **工具万能**:手机号码归属地,身份证号码归属地查询,NBA赛事数据,邮编查询,WHOIS查询,识图工具,二维码生成识别,手机空号检测  \r
- **交通出行**:VIN车辆识别代码查询,今日油价,车辆尾号限行,火车查询,长途汽车,车型大全,加油站查询,车型保养套餐查询  \r
- **图像识别**:身份证识别,驾驶证识别,车牌识别,行驶证识别,银行卡识别,通用文字识别,营业执照识别,VIN识别  \r
- **娱乐购物**:商品条码查询,条码生成识别,电影影讯,微博百度热搜榜单,新闻,脑筋急转弯,歇后语,绕口令  \r
- **位置服务**:基站查询,经纬度地址转换,坐标系转换  \r
\r
在官网注册后,按**具体 API 页面**申请数据,在会员中心获取 **AppKey** 进行接入;**免费额度和套餐**在API详情页查看,适合个人开发者与企业进行接入。在 **ClawHub** 上也可搜索 **`jisuapi`** 找到更多基于极速数据的 OpenClaw 技能。\r
\r
Usage Guidance
This skill appears to do exactly what it says: call JisuAPI stock endpoints and return results. Before installing, ensure you: (1) trust JisuAPI and understand its pricing/rate limits; (2) provide a dedicated or limited-permission JISU_API_KEY (don’t reuse higher-privilege keys); (3) have python3 and the 'requests' package available in the runtime environment; and (4) monitor API usage for unexpected activity. The script does make network calls to api.jisuapi.com (expected) and does not access other system secrets or write/install additional software.
Capability Analysis
Type: OpenClaw Skill Name: jisu-stock Version: 1.0.6 The jisu-stock skill bundle is a legitimate tool for querying stock market data via the JisuAPI service. The Python script (stock.py) is a straightforward wrapper that uses the requests library to fetch data from api.jisuapi.com using an environment-provided API key, and the documentation (SKILL.md) provides clear, non-malicious instructions for the AI agent.
Capability Assessment
Purpose & Capability
Name/description match the implementation: the script calls https://api.jisuapi.com/stock endpoints (query, list, detail). Required env var (JISU_API_KEY) is the API key used by those calls and is declared as primaryEnv.
Instruction Scope
SKILL.md instructs the agent to run the included Python script with JSON args and to set JISU_API_KEY. The script only reads JISU_API_KEY and the provided JSON argument, makes HTTP GET requests to the JisuAPI service, and prints JSON results. It does not read other environment variables, system files, or send data to unexpected endpoints.
Install Mechanism
No install spec (instruction-only) which is low-risk, but the script uses the Python 'requests' library and there is no mention of installing it; users/agents must ensure python3 and the requests package are available. No downloads or external installers are performed by the skill.
Credentials
Only JISU_API_KEY is required and is appropriate for a service-forwarding stock-query skill. No unrelated credentials or config paths are requested.
Persistence & Privilege
always is false (default) and the skill does not modify other skills or system settings. It does not request permanent agent-level privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install jisu-stock
  3. After installation, invoke the skill by name or use /jisu-stock
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.6
- Skill description and name improved to make usage scenarios and trigger conditions more explicit. - Now highlights recommended use cases for stock quotes, minute-level trends, and stock lists. - Clarified audience instructions for when to use this skill (e.g., user asks about current stock price or trends). - No code changes; only SKILL.md was updated for clarity and discoverability.
v1.0.5
Version 1.0.5 - 更新文档,加入“极速数据(JisuAPI)”平台介绍与 API 获取流程说明 - 补充了平台支持的 API 列表及适用场景,便于入门和扩展使用 - 优化了环境变量配置指导,更突出 AppKey 获取和配置流程 - 推荐通过 ClawHub 查找更多极速数据相关技能 - 原有接口定义、用法及错误码等未发生变更
v1.0.4
- 推荐结合“股票历史行情查询 Skill(stockhistory)”一起使用,提升深度走势分析、K线研究和回测能力,并新增 ClawHub 相关链接说明 - 其他文档内容无变化
v1.0.3
No changes were detected in this version.
v1.0.2
- No code or documentation changes detected in this version. - Functionality and usage remain the same as the previous version.
v1.0.1
- Updated script path reference from skill/stock/stock.py to skills/stock/stock.py throughout documentation - No logic or code changes; documentation only
v1.0.0
- Migrated to use 极速数据股票查询 API for real-time stock data. - All implementation moved to a new Python script (stock.py); removed JavaScript-related files. - Added support for querying A-shares, Hong Kong stocks, and Beijing Exchange A-shares by API. - Supports three command types: stock query (with trends), stock listing (by classification/pagination), and stock detail query. - Usage now requires a JISU_API_KEY environment variable for authentication.
Metadata
Slug jisu-stock
Version 1.0.6
License MIT-0
All-time Installs 4
Active Installs 4
Total Versions 7
Frequently Asked Questions

What is Stock Inquiry - 股票查询?

按股票代码查当日行情与详情(分钟级趋势),或按分类拉取沪深、港股、北证等股票列表。当用户说:今天的宁德时代股票走势怎样?宁德时代股票行情怎样?贵州茅台现在多少钱?或类似个股行情、股票列表问题时,使用本技能。 It is an AI Agent Skill for Claude Code / OpenClaw, with 623 downloads so far.

How do I install Stock Inquiry - 股票查询?

Run "/install jisu-stock" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Stock Inquiry - 股票查询 free?

Yes, Stock Inquiry - 股票查询 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Stock Inquiry - 股票查询 support?

Stock Inquiry - 股票查询 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Stock Inquiry - 股票查询?

It is built and maintained by 极速数据 (@jisuapi); the current version is v1.0.6.

💬 Comments