Xpersona
S

Stock-A

CLAWHUB · Unverified

Provides real-time and historical A-share stock data from multiple free sources including mootdx, Sina, Tencent, Eastmoney, and Tushare. Skill: Stock-A Owner: same1317 Summary: Provides real-time and historical A-share stock data from multiple free sources including mootdx, Sina, Tencent, Eastmoney, and Tushare. Tags: latest:1.0.0 Version history: v1.0.0 | 2026-03-26T05:33:26.973Z | user A股股票行情数据获取工具,支持 mootdx、新浪、腾讯、东方财富、Tushare 等多数据源 Archive index: Archive v1.0.0: 8 files, 8484 bytes Files: scripts/eastmoney_realtime.py (2167b), scripts/sina_history.

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/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 s174g951b1kmmbaydqmadnkpmn83mbd5:stock-a
  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-same1317-stock-a/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

4,750 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

# Stock-A Skill

💼 A股股票行情数据获取工具,支持多个免费数据源。

## 功能

- **实时行情** - 获取个股实时价格、涨跌幅、成交量等
- **历史K线** - 获取日线/周线/月线历史数据
- **多数据源** - mootdx、新浪财经、腾讯财经、东方财富、Tushare

---

## 📊 数据源汇总

### 1. mootdx(通达信/同花顺)⭐ 推荐

| 功能 | 状态 | 说明 |
|------|------|------|
| 实时行情 | ✅ 可用 | 默认数据源,需本地安装 |
| 历史K线 | ✅ 可用 | 支持日线/周线/月线 |
| F分钟线 | ✅ 可用 | 1/5/15/30/60分钟 |
| 财务数据 | ✅ 可用 | 财务指标、利润表等 |

```bash
# mootdx 实时行情
python -c "
from mootdx import quotes
q = quotes.StdQuotes()
result = q.daily(symbol='600519')
print(result)
"

# mootdx 历史K线
python -c "
from mootdx import reader
r = reader.Reader()
df = r.daily(symbol='600519', adjust='qfq')
print(df.tail())
"
```

---

### 2. 新浪财经

| 功能 | 状态 | 说明 |
|------|------|------|
| 实时行情 | ✅ 可用 | 推荐使用 |
| 历史K线 | ✅ 可用 | |

```bash
# 新浪财经 - 实时行情 (推荐)
python scripts/sina_realtime.py sh600519

# 新浪财经 - 历史K线
python scripts/sina_history.py sh600519 2024-03-01 2024-03-25
```

---

### 3. 腾讯财经

| 功能 | 状态 | 说明 |
|------|------|------|
| 实时行情 | ✅ 可用 | |

```bash
# 腾讯财经 - 实时行情
python scripts/tengxun_realtime.py sh600519
```

---

### 4. 东方财富

| 功能 | 状态 | 说明 |
|------|------|------|
| 实时行情 | ⚠️ 不稳定 | 需网络稳定环境 |

```bash
# 东方财富 - 实时行情
python scripts/eastmoney_realtime.py sh600519
```

---

### 5. Tushare

| 功能 | 状态 | 说明 |
|------|------|------|
| 实时行情 | ⚠️ 备用 | 即将停用,免费Token |

```bash
# Tushare - 实时行情
python scripts/tushare_realtime.py 600519
```

---

## 📋 数据源测试结果汇总

| 数据源 | 实时行情 | 历史K线 | 财务数据 | 状态 |
|--------|----------|---------|----------|------|
| **mootdx** | ✅ | ✅ | ✅ | ⭐ 推荐 |
| 新浪财经 | ✅ | ✅ | ❌ | ✅ 可用 |
| 腾讯财经 | ✅ | ❌ | ❌ | ✅ 可用 |
| 东方财富 | ⚠️ | ❌ | ❌ | ⚠️ 不稳定 |
| Tushare | ⚠️ | ❌ | ❌ | ⚠️ 备用 |
| 网易财经 | ❌ | ❌ | ❌ | ❌ 502错误 |
| Tushare Pro | ❌ | ❌ | ❌ | ❌ 需Token |

---

## 🔧 代码说明

- `sh600519` - 上海市场 (60xxxx)
- `sz000001` - 深圳市场 (00xxxx)
- `sz300750` - 创业板 (30xxxx)
- `bjxxxx` - 北交所 (8xxxx/4xxxx)

---

## 📖 使用示例

### 实时行情输出示例

```
贵州茅台 (SH600519)
==============================
最新价: 1408.81
涨跌: +1.48
涨跌幅: +0.11%
开盘: 1410.11
最高: 1417.87
最低: 1401.01
成交量: 1,409手
成交额: 157.35亿
```

---

## 安装新数据源

```bash
# 安装 mootdx (如未安装)
pip install mootdx

# 安装 Tushare (备用)
pip install tushare
```

_meta.json

{
  "ownerId": "kn76tv0mmtdhgavrq7m0jbavmx83mdw6",
  "slug": "stock-a",
  "version": "1.0.0",
  "publishedAt": 1774503206973
}

skill-card.md

## Description:

Provides real-time and historical A-share stock data from multiple free sources including mootdx, Sina, Tencent, Eastmoney, and Tushare.

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

## Publisher:

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

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agents use this skill to retrieve A-share real-time quotes, historical K-line data, and related market fields from supported free finance-data providers.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The helper scripts contact external finance-data providers and send the requested stock codes when run.

Mitigation: Run the scripts only for stock codes that are appropriate to share with those providers and review provider availability before relying on returned market data.

Risk: Optional Python packages such as mootdx and tushare may be installed to enable additional data sources.

Mitigation: Install optional packages in a virtual environment and pin reviewed versions for repeatable releases.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/same1317/skills/stock-a)

## Skill Output:

**Output Type(s):** [Text, Markdown, Code, Shell commands, Guidance]

**Output Format:** [Markdown with inline shell commands and Python examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Produces quote and K-line examples; helper scripts print human-readable text and JSON snippets.]

## Skill Version(s):

1.0.0 (source: server release metadata)

## 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-A and adjacent AI workflows.