Xpersona
S

Shanghai Stock Exchange Composite Index - 上证股票指数

CLAWHUB · Unverified

查询上证、深证、创业板、沪深300、科创50 等主要指数分钟级行情。当用户说:上证指数现在多少点?创业板指涨跌幅?或类似大盘指数问题时,使用本技能。 Skill: Shanghai Stock Exchange Composite Index - 上证股票指数 Owner: jisuapi Summary: 查询上证、深证、创业板、沪深300、科创50 等主要指数分钟级行情。当用户说:上证指数现在多少点?创业板指涨跌幅?或类似大盘指数问题时,使用本技能。 Tags: latest:1.0.4 Version history: v1.0.4 | 2026-04-03T09:32:13.831Z | user - Updated skill name and description to clarify coverage of major indices and typical usage scenarios. - Enhanced description with example queries for improved user guidance. - No changes

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K 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:stockindex
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  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-stockindex/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

20,974 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: "Shanghai Stock Exchange Composite Index - 上证股票指数"
description: 查询上证、深证、创业板、沪深300、科创50 等主要指数分钟级行情。当用户说:上证指数现在多少点?创业板指涨跌幅?或类似大盘指数问题时,使用本技能。
metadata: { "openclaw": { "emoji": "📉", "requires": { "bins": ["python3"], "env": ["JISU_API_KEY"] }, "primaryEnv": "JISU_API_KEY" } }
---

# 极速数据上证股票指数(Jisu Stock Index)

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

- **股票指数**(`/stockindex/sh`):一次性获取上证指数、深证成指、创业板指、中小板指、沪深300、上证50、科创50、B股指数等品种的最新价、昨收盘价、数据量、更新时间及分钟级趋势(`trend` / `trend_standard`),数据粒度为分钟。

## 前置配置:获取 API Key

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


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

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

## 脚本路径

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

## 使用方式

### 股票指数(/stockindex/sh)

无需请求参数,直接调用即可获取各指数品种的实时行情及分钟趋势。

```bash
python3 skills/stockindex/stockindex.py sh
```

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

```json
[
  {
    "name": "上证指数",
    "code": "000001",
    "price": "3416.08",
    "lastclosingprice": 3410.18,
    "trendnum": "241",
    "updatetime": 1607509662,
    "openningprice": "3410.18",
    "trend": [
      "2020-12-09 09:30,3416.08,2081381,2544235056.00,3411.749",
      "2020-12-09 09:31,3417.53,4931922,5994410752.00,3411.554"
    ],
    "trend_standard": []
  }
]
```

| 字段名            | 类型   | 说明                                                                 |
|-------------------|--------|----------------------------------------------------------------------|
| name              | string | 品种名称(如上证指数、深证成指)                                       |
| code              | string | 品种代码                                                             |
| price             | string | 最新价                                                               |
| lastclosingprice  | string | 昨收盘价                                                             |
| trendnum          | string | 数据量                                                               |
| updatetime        | string | 更新时间                                                             |
| openningprice     | string | 开盘价                                                               |
| trend             | array  | 趋势:时间、价格、成交量、成交总额、平均价                             |
| trend_standard    | array  | 标准趋势:时间、开盘价、收盘价、最高价、最低价、成交量、成交总额、平均价 |

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

```json
{
  "error": "api_error",
  "code": 210,
  "message": "没有信息"
}
```

## 常见错误码

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

| 代号 | 说明     |
|------|----------|
| 210  | 没有信息 |

系统错误码:101~108(与其它极速数据接口一致)。

## 推荐用法

1. 用户提问:「今天大盘指数怎么样?上证、深证、创业板都多少?」  
2. 代理调用:`python3 skills/stockindex/stockindex.py sh`  
3. 从返回数组中按 `name` 筛选「上证指数」「深证成指」「创业板指」等,提取 `price`、`lastclosingprice`、`openningprice`,用自然语言

_meta.json

{
  "ownerId": "kn7ex9mabfb47dvpgkmeypwqj9825yyz",
  "slug": "stockindex",
  "version": "1.0.4",
  "publishedAt": 1775208733831
}

skill-card.md

## Description:

Queries minute-level market data for major Chinese stock indices including the Shanghai Composite, Shenzhen Component, ChiNext, CSI 300, and STAR 50.

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 answer current-market questions about major Chinese stock indices and to retrieve JSON data that an agent can summarize or use for trend analysis.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill requires a JisuAPI AppKey and sends requests to JisuAPI for its intended functionality.

Mitigation: Use a scoped or low-privilege JisuAPI key where available, avoid exposing logs that may include request details, and rotate the key if it may have been disclosed.

Risk: Market index data may be delayed, unavailable, or returned as API error responses.

Mitigation: Check the returned JSON for error fields and timestamps before using the data in trading, reporting, or user-facing summaries.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/jisuapi/skills/stockindex)
- [JisuAPI stock index API documentation](https://www.jisuapi.com/api/stockindex/)
- [JisuAPI provider website](https://www.jisuapi.com/)

## Skill Output:

**Output Type(s):** [API Calls, JSON, Shell commands, Guidance]

**Output Format:** [JSON returned by a Python command-line script, with agent-facing Markdown guidance in the skill instructions]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires python3 and a JISU_API_KEY environment variable; network calls are made to JisuAPI.]

## Skill Version(s):

1.0.4 (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 Shanghai Stock Exchange Composite Index - 上证股票指数 and adjacent AI workflows.