Xpersona
股

股票历史行情查询 - Stock Historical Data Query - 极速数据

CLAWHUB · Unverified

按代码与时间范围查历史日线,或查列表与详情,便于 K 线与走势分析。当用户说:宁德时代最近一年 K 线数据?这只股票过去一年最高最低价?或类似历史行情问题时,使用本技能。 Skill: 股票历史行情查询 - Stock Historical Data Query - 极速数据 Owner: jisuapi Summary: 按代码与时间范围查历史日线,或查列表与详情,便于 K 线与走势分析。当用户说:宁德时代最近一年 K 线数据?这只股票过去一年最高最低价?或类似历史行情问题时,使用本技能。 Tags: latest:1.0.8 Version history: v1.0.8 | 2026-09-10T09:53:33.303Z | user - Removed redundant file: skill-card.md - No functional or interface changes in this release v1.0.7 | 2026-04-03T09:52:13.885Z | user - 技能名称与描述优化,更直观体现用法和适用场景 - 用法说明增加典型问题举例,方便用户理解

62
Rank
84
Safety
1.7k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.7K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s174fh1b14sn7vkvbqwsdn0xtd83gz5h:stockhistory
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-jisuapi-stockhistory/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

48,625 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: "Stock Historical Data Query - 股票历史行情查询"
description: 按代码与时间范围查历史日线,或查列表与详情,便于 K 线与走势分析。当用户说:宁德时代最近一年 K 线数据?这只股票过去一年最高最低价?或类似历史行情问题时,使用本技能。
metadata: { "openclaw": { "emoji": "📊", "requires": { "bins": ["python3"], "env": ["JISU_API_KEY"] }, "primaryEnv": "JISU_API_KEY" } }
---

# 极速数据股票历史行情查询(Jisu Stock History)

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

- **股票历史查询**(`/stockhistory/query`):根据股票代码、开始时间、结束时间获取历史数据,数据粒度为天,返回日期、开盘价、收盘价、最高价、最低价、成交量、成交额、换手率、涨跌幅等,可用于绘制 K 线及走势分析
- **股票列表**(`/stockhistory/list`):按分类(沪深股市)分页获取股票列表
- **股票详情**(`/stockhistory/detail`):根据股票代码获取单只股票详情(最新价、涨跌幅、成交量、市盈率等)

## 前置配置:获取 API Key

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


```bash
# Linux / macOS
export JISU_API_KEY="your_appkey_here"

# Windows PowerShell
$env:JISU_API_KEY="your_appkey_here"
```

## 脚本路径

脚本文件:`skills/stockhistory/stockhistory.py`

## 使用方式

### 1. 股票历史查询(/stockhistory/query)

根据股票代码与可选的时间范围获取历史日线数据。

```bash
# 指定时间范围
python3 skills/stockhistory/stockhistory.py query '{"code":"300917","startdate":"2020-12-24","enddate":"2020-12-25"}'

# 仅股票代码(startdate/enddate 可选,不传由接口默认)
python3 skills/stockhistory/stockhistory.py query '{"code":"300917"}'
```

请求 JSON:

```json
{
  "code": "300917",
  "startdate": "2020-12-24",
  "enddate": "2020-12-25"
}
```

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

### 2. 股票列表(/stockhistory/list)

按分类分页获取股票列表,当前文档中 classid 为 1(沪深股市)。

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

请求 JSON:

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

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

### 3. 股票详情(/stockhistory/detail)

根据股票代码获取单只股票详情。

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

请求 JSON:

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

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

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

### 股票历史查询(query)

```json
{
  "code": "300917",
  "name": "C特发",
  "startdate": "2020-12-24",
  "enddate": "2020-12-25",
  "list": [
    {
      "stockid": 6769,
      "date": "2020-12-24",
      "openningprice": "40.10",
      "closingprice": "53.92",
      "maxprice": "54.20",
      "minprice": "40.10",
      "tradenum": 166623,
      "tradeamount": "756991472.00",
      "turnoverrate": "78.110",
      "changepercent": "32.48",
      "changeamount": "13.22",
   

_meta.json

{
  "ownerId": "kn7ex9mabfb47dvpgkmeypwqj9825yyz",
  "slug": "stockhistory",
  "version": "1.0.8",
  "publishedAt": 1789034013303
}

skill-card.md

## Description:

按代码与时间范围查历史日线,或查列表与详情,便于 K 线与走势分析。

This skill is ready for commercial/non-commercial use.

## Publisher:

[jisuapi](https://clawhub.ai/user/jisuapi)

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill to query JisuAPI for historical daily stock prices, stock lists, and single-stock details by stock code and optional date range.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Stock codes, date ranges, and the configured JISU_API_KEY are sent to JisuAPI when the skill runs.

Mitigation: Use the skill only when sharing those query details with JisuAPI is acceptable, and prefer a dedicated API key with quota or billing limits.

Risk: Returned market data may be incomplete, stale, or unsuitable as financial advice.

Mitigation: Treat outputs as data lookup results for analysis or charting, and verify important market decisions against authoritative financial sources.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/jisuapi/skills/stockhistory)
- [JisuAPI stock history API documentation](https://www.jisuapi.com/api/stockhistory/)
- [JisuAPI homepage](https://www.jisuapi.com/)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with shell commands and JSON examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [The bundled script prints JSON responses from JisuAPI or JSON-formatted error objects.]

## Skill Version(s):

1.0.8 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to 股票历史行情查询 - Stock Historical Data Query - 极速数据 and adjacent AI workflows.