极速数据

股票查询 - Stock Inquiry

Data Analysisv1.0.7
By 极速数据Updated 2026-09-108 versions · latest released 2026-09-10jisu-stock@clawhub_jisuapi/jisu-stock
Data InsightsMetrics Monitoring#Stock#股票#股票查询

According to AlphaMoat, as of 2026-09, 股票查询 - Stock Inquiry has 3,644 downloads and 10 stars — ranked #2,978 of 5,078 AI skills overall, and #227 of 399 in Data Analysis.

Installs
577
Downloads
3.6K
Stars
10
Overall Rank
#2,978
Top 59% overall · Top 57% in Data Analysis
PlatformInstallsDownloadsStarsComments
ClawHub ↗512.0K10-
SkillHub ↗5773.6K10—

Platforms count differently and update at different times.

What this skill does

Given a symbol it returns the day's quote with name, latest price, previous close, update time and a minute-level trend array, and it can page through stock lists by category. It also covers the trading calendar and financial statements, including fields such as price-to-earnings and volume in the detail view. Stock codes and query parameters are sent to JisuAPI with the configured key. Treat returned market data as an informational lookup that may be incomplete or delayed; verify important figures with authoritative sources and do not present it as trading advice.

Profile published 2026-10-27

What you can do with it

  • Read one stock's minute-level trend for today
  • Check a company's latest financial report figures

When to use it

  • The day's quote matters rather than history
  • Whether a given date is a trading day needs confirming

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Show this stock's movement today
Is the A-share market open today

Monthly Trend

Downloads3.6K
1.1K2.5K3.8K2026-03 · Downloads 1.3K2026-05 · Downloads 2.1K2026-06 · Downloads 2.3K2026-07 · Downloads 2.6K2026-08 · Downloads 2.8K2026-09 · Downloads 3.6K26-0326-09
Stars10
910112026-03 · Stars 102026-05 · Stars 102026-06 · Stars 102026-07 · Stars 102026-08 · Stars 102026-09 · Stars 1026-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-093.6K—10
2026-082.8K+7.0%10
2026-072.6K+12.8%10
2026-062.3K+11.7%10
2026-052.1K—10
2026-031.3K—10

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

10 KB · ClawHub v1.0.7
---
name: "Stock Inquiry - 股票查询"
description: 按股票代码查当日行情与详情(分钟级趋势),按分类拉取股票列表,查询交易日历及财务报表。当用户说:今天的宁德时代股票走势怎样?贵州茅台现在多少钱?今天 A 股开市吗?宁德时代的财报怎样?或类似个股行情、财务问题时,使用本技能。
metadata: { "openclaw": { "emoji": "📈", "requires": { "bins": ["python3"], "env": ["JISU_API_KEY"] }, "primaryEnv": "JISU_API_KEY" } }
---

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

> 数据由 **[极速数据(JisuAPI)](https://www.jisuapi.com/)** 提供 — 国内专业的 API 数据服务平台,提供生活常用、交通出行、工具万能等数据接口。

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

如需做更深入的走势分析、K 线研究或回测,推荐配合 **股票历史行情查询 Skill(stockhistory)** 一起使用:  
- ClawHub 链接:[`https://clawhub.ai/jisuapi/stockhistory`](https://clawhub.ai/jisuapi/stockhistory)

## 前置配置:获取 API Key

1. 前往 [极速数据官网](https://www.jisuapi.com/) 注册账号
2. 进入 [股票查询 API](https://www.jisuapi.com/api/stock/) 页面,点击「申请数据」
3. 在会员中心获取 **AppKey**
4. 配置 Key:


```bash
# 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)

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

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

请求 JSON:

```json
{
  "code": "300917"
}
```

| 字段名 | 类型   | 必填 | 说明     |
|--------|--------|------|----------|
| code   | string | 是   | 股票代码 |

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

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

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

请求 JSON:

```json
{
  "classid": 1,
  "pagenum": 1,
  "pagesize": 10
}
```

| 字段名   | 类型   | 必填 | 说明                          |
|----------|--------|------|-------------------------------|
| classid  | int    | 是   | 1 沪深股市 3 港股 4 北证A股   |
| pagenum  | int    | 否   | 当前页,默认 1                |
| pagesize | int    | 否   | 每页数量,默认 30            |

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

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

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

请求 JSON:

```json
{
  "code": "300917"
}
```

| 字段名 | 类型   | 必填 | 说明     |
|--------|--------|------|----------|
| code   | string | 是   | 股票代码 |

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

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

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

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

```json
{
  "date": "2026-04-29"
}
```

| 字段名 | 类型   | 必填 | 说明     |
|--------|--------|------|----------|
| date   | string | 否   | 日期     |

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

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

请求 JSON:

```json
{
  "code": "688808",
  "indicator": "按报告期",
  "startdate": "",
  "enddate": ""
}
```

| 字段名    | 类型   | 必填 | 说明                          |
|-----------|--------|------|-------------------------------|
| code      | string | 是   | 股票代码                      |
| indicator | string | 否   | `按报告期` 或 `按单季度`      |
| startdate | string | 否   | 统计开始日期                  |
| enddate   | string | 否   | 统计结束日期                  |

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

```bash
python3 skills/stock/stock.py financialbalancesheet '{"code":"688808"}'
```

| 字段名    | 类型   | 必填 | 说明         |
|-----------|--------|------|--------------|
| code      | string | 是   | 股票代码     |
| startdate | string | 否   | 统计开始日期 |
| enddate   | string | 否   | 统计结束日期 |

### 7. 利润表(/stock/financialprofit)

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

参数同资产负债表。

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

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

参数同资产负债表。

## 返回结果示例(节选)

### 股票查询(query)

```json
[
  {
    "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)

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

### 股票详情(detail)

```json
{
  "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)

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

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

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

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

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

## 常见错误码

来源于 [极速数据股票文档](https://www.jisuapi.com/api/stock/):

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

系统错误码:

| 代号 | 说明                     |
|------|--------------------------|
| 101  | APPKEY 为空或不存在       |
| 102  | APPKEY 已过期            |
| 103  | APPKEY 无请求此数据权限  |
| 104  | 请求超过次数限制         |
| 105  | IP 被禁止                |
| 106  | IP 请求超过限制          |
| 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](https://www.jisuapi.com/))** 是国内专业的 **API数据服务平台** 之一,提供以下API:

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

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

Popular in Data Analysis

AdMapixData Analysis

The data layer for AdMapix: turn ad and app queries into API calls that return raw JSON only.

↓ 365.6K★ 304fly0pants
Tavily SearchData Analysis

Searches the public web through Tavily and returns structured results with links and snippets.

↓ 121.9K★ 286Xiaoran Li
Data AnalysisData Analysis

A data-analysis skill that turns databases, spreadsheets, and raw exports into decision-ready conclusions.

↓ 101.2K★ 244Iván
Stock AnalysisData Analysis

A skill that analyzes stocks and cryptocurrencies on Yahoo Finance data and tracks a portfolio.

↓ 75.3K★ 299udiedrichsen
Stock WatcherData Analysis

Manages a local stock watchlist and summarizes recent quotes for its codes from the Tonghuashun stock pages.

↓ 64.8K★ 122Robin797860
全国招标中标查询及分析【知了标讯】Data Analysis

全网招中标数据查询与分析助手。当用户涉及以下任何场景时,必须使用此SKILL:查询招标/中标公告、搜索标讯、查找临期/即将到期项目、商机预测、推荐潜在投标供应商、分析公司主营业务/历史中标、查询公司上下游合作客户与供应商、分析竞争对手/竞对企业、查询Top采购单位/Top中标单位/Top中标品牌、招中标数据统计分析(按月/季/年/省份/品牌等维度)、查询品牌型号历史中标单价/价格趋势、市场分析/行业分析/采购寻源/渠道拓展等采购与投标相关场景。即使用户没有提到「知了标讯」,只要涉及招投标、采购、中标、供应商、竞争对手等关键词,都应使用本SKILL。

↓ 56.5K★ 13user_98035bfb
BlogwatcherData Analysis

Track blog and RSS/Atom feed updates from the command line.

↓ 54.0K★ 75Peter Steinberger
Model UsageData Analysis

Summarises per-model usage cost for Codex or Claude.

↓ 49.5K★ 114Peter Steinberger

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.