A股龙虎榜市场数据API接口
支持查询当日及历史龙虎榜、营业部明细,每天18:00更新当日数据。 Skill: A股龙虎榜市场数据API接口 Owner: fffy520 Summary: 支持查询当日及历史龙虎榜、营业部明细,每天18:00更新当日数据。 Tags: latest:1.0.3 Version history: v1.0.3 | 2026-05-13T15:16:37.550Z | user Version 1.0.3 brings major API扩展与文档重构: - 新增资金流向/涨跌股池等多类API,涵盖主力/超大单/涨停/连板等多维数据 - 龙虎榜数据历史提升至2016年至今,数据量增加至9万+ - 用户单日配额提升至100次 - 文档结构全面优化,接口示例、参数及返回字段展示更清晰 - 提供Python客户端调用示例 - 明确接口限频、错误码和配额等规则 v1.0.2 | 2026-05-11T08:04:04.055Z | user - Major documentation overhaul:
Rank
62
Safety
84
Downloads
1.1k
Updated
Oct 11, 2026
Version
1.0.3
Source
CLAWHUB
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.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
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · observed Oct 11, 2026
- Protocol compatibility
- OpenClawcompatibility · observed Oct 11, 2026
- Adoption signal
- 1.1K downloadsadoption · observed Oct 11, 2026
- Latest release
- 1.0.3release · observed May 13, 2026
- Handshake status
- UNKNOWNsecurity
Install and run
Setup complexity: low.
clawhub skill install s17c42zfp8acngws7s3yc1kjts86ebkg:lhb-api- Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
- 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-fffy520-lhb-api/snapshot"
Documentation
CLAWHUB
15,491 characters of source documentation, loaded on request.
Extracted files
3 files captured from the source.
SKILL.md
# A股市场数据 API接口
> 龙虎榜 · 资金流向 · 涨跌股池 · 全量行情数据 · 持续更新更多接口
> http://fffy520.gicp.net:8003最新接口和使用方法详见
---
## 数据能力
| 维度 | 覆盖 |
|------|------|
| 龙虎榜 | 2016年至今 · 90,000+ 条,含买5卖5营业部明细 |
| 资金流向 | 个股主力/超大单/大单/中单/小单净流入 |
| 涨跌股池 | 涨停/跌停/炸板/连板/一字板/翘板/地天/天地板 |
| 更新频率 | 每个交易日 17:00 后更新 |
---
## 接口文档
### 1️⃣ 当日龙虎榜
```
GET /api/lhb/daily?date=2026-05-13
```
返回指定交易日完整龙虎榜,每只上榜股票含买入/卖出前5席位明细。
```
curl "http://fffy520.gicp.net:8003/api/lhb/daily?date=2026-05-13"
```
**核心字段:**
- `code` / `name` — 股票代码/名称
- `close` / `change` — 收盘价/涨跌幅
- `net_buy` — 净买入额(万元)
- `brokers.buy[5]` / `brokers.sell[5]` — 买入/卖出前5席位(排名、名称、金额、净额)
- `entry_type` — `daily` 日榜 / `3day` 三日榜
- `reason` — 上榜原因
---
### 2️⃣ 个股历史龙虎榜
```
GET /api/lhb/history?code=002031
```
查询单只股票全部龙虎榜上榜记录,追踪主力资金轨迹。
```
curl "http://fffy520.gicp.net:8003/api/lhb/history?code=002031"
```
---
### 3️⃣ 涨跌股池
```
GET /api/stock-pools?date=2026-05-13&data_type=limit_up
```
8 大股池每日更新,可按类型筛选。
**data_type 参数:**
| 参数 | 说明 |
|------|------|
| `limit_up` | 涨停(含题材/连板天数/涨停时间) |
| `limit_continuous` | 连板 |
| `limit_broken` | 炸板 |
| `limit_down` | 跌停 |
| `one_line_limit` | 一字板 |
| `rebound` | 翘板 |
| `earth_to_heaven` | 地天板 |
| `heaven_to_earth` | 天地板 |
不传 `data_type` 返回全部 8 类。
---
### 4️⃣ 个股资金流向
```
GET /api/moneyflow?code=600519&trade_date=20260513
```
获取个股主力/超大单/大单/中单/小单净流入数据。
**参数:**
| 参数 | 必填 | 说明 |
|------|------|------|
| code | ✅ | 6位股票代码 |
| trade_date | ❌ | YYYYMMDD,默认最新 |
**返回字段:**
| 字段 | 单位 | 说明 |
|------|------|------|
| main_net_inflow | 元 | 主力净流入(超大单+大单) |
| main_net_pct | % | 主力流入占比 |
| super_large_inflow | 元 | 超大单净流入 |
| large_inflow | 元 | 大单净流入 |
| medium_inflow | 元 | 中单净流入 |
| small_inflow | 元 | 小单净流入 |
| close_price | 元 | 收盘价 |
| change_pct | % | 涨跌幅 |
```
curl "http://fffy520.gicp.net:8003/api/moneyflow?code=600519&trade_date=20260513"
```
---
### 5️⃣ 账户信息
```
GET /api/account
```
查询当前的套餐类型、剩余配额和有效期。
```
curl "http://fffy520.gicp.net:8003/api/account"
```
---
## Python 客户端
```python
from client import LHBClient
client = LHBClient()
# 龙虎榜
daily = client.daily("2026-05-13")
history = client.history("002031")
# 资金流向
flow = client.moneyflow("600519", "20260513")
print(flow["data"]["main_net_inflow"])
```
> (日配额 100 次)。
---
## 限制说明
| 项目 | 规则 |
|------|------|
| 日配额 | 100次/天 · 长期不限量 |
| 历史条数 | 非长期套餐 ≤30条 · 长期不限 |
| 频率 | 30次/秒/Key |
| 缓存 | 同参数不重复扣配额 |
| HTTP状态 | 说明 |
|----------|------|
| 200 | 请求成功 |
| 401 | 无效凭证 |
| 403 | 凭证已禁用或当日配额用完 |
| 429 | 请求过于频繁 |
---
## 应用场景
- **跟庄选股** — 每日监控机构/游资净买入排行,锁定主力介入标的
- **游资追踪** — 通过营业部席位分析游资操作风格和偏好
- **个股诊断** — 查看个股历史上榜频率和资金流向变化
- **量化因子** — 将龙虎榜/资金流向作为选股因子构建策略
- **风控参考** — 观察主力出货信号,辅助持仓决策
---
*数据更新:交易所完整披露后更新 | 数据范围:2022-01-04 至今*_meta.json
{
"ownerId": "kn70matfe65a34vevfsrac1psh82m2zw",
"slug": "lhb-api",
"version": "1.0.3",
"publishedAt": 1778685397550
}skill-card.md
## Description: Provides Chinese A-share Dragon-Tiger List, broker detail, money-flow, stock-pool, and quote API guidance with a small Python client. This skill is ready for commercial/non-commercial use. ## Publisher: [fffy520](https://clawhub.ai/user/fffy520) ### License/Terms of Use: MIT-0 ## Use Case: Developers, analysts, and agent builders use this skill to query A-share Dragon-Tiger List records, broker seat details, stock-pool data, and money-flow data through documented HTTP endpoints or the included Python client. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: The included client sends stock codes and dates to a third-party API over unencrypted HTTP, so requests and returned market data could be observed or modified on the network. Mitigation: Avoid sending API keys or sensitive credentials through the current endpoint, and do not rely on it for high-integrity trading automation unless the provider offers HTTPS or another integrity-protected channel. ## Reference(s): - [ClawHub Skill Page](https://clawhub.ai/fffy520/skills/lhb-api) - [A-share Market Data API Endpoint](http://fffy520.gicp.net:8003) ## Skill Output: **Output Type(s):** [text, markdown, code, shell commands, configuration, guidance] **Output Format:** [Markdown with API examples, Python code, and shell commands] **Output Parameters:** [1D] **Other Properties Related to Output:** [Outputs may include HTTP request examples and JSON response field descriptions for market data queries.] ## Skill Version(s): 1.0.3 (source: server release metadata, created 2026-05-13) ## 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.
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/fffy520/skills/lhb-api",
"sourceUrl": "https://clawhub.ai/fffy520/skills/lhb-api",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T07:22:39.672Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-fffy520-lhb-api/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-fffy520-lhb-api/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-11T07:22:39.672Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.1K downloads",
"href": "https://clawhub.ai/fffy520/lhb-api",
"sourceUrl": "https://clawhub.ai/fffy520/lhb-api",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T07:22:39.672Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.0.3",
"href": "https://clawhub.ai/fffy520/lhb-api",
"sourceUrl": "https://clawhub.ai/fffy520/lhb-api",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-05-13T15:16:37.550Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-fffy520-lhb-api/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-fffy520-lhb-api/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.0.3",
"description": "Version 1.0.3 brings major API扩展与文档重构: - 新增资金流向/涨跌股池等多类API,涵盖主力/超大单/涨停/连板等多维数据 - 龙虎榜数据历史提升至2016年至今,数据量增加至9万+ - 用户单日配额提升至100次 - 文档结构全面优化,接口示例、参数及返回字段展示更清晰 - 提供Python客户端调用示例 - 明确接口限频、错误码和配额等规则",
"href": "https://clawhub.ai/fffy520/lhb-api",
"sourceUrl": "https://clawhub.ai/fffy520/lhb-api",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-05-13T15:16:37.550Z",
"isPublic": true
}
]
}Record generated Oct 11, 2026.
