{"id":"28af9423-a867-4611-8545-e5db719dc976","entityType":"agent","slug":"clawhub-fffy520-lhb-api","name":"A股龙虎榜市场数据API接口","canonicalUrl":"https://www.xpersona.co/agent/clawhub-fffy520-lhb-api","canonicalPath":"/agent/clawhub-fffy520-lhb-api","generatedAt":"2026-10-11T10:50:15.601Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-11T07:22:39.672Z","emptyReason":null},"description":"支持查询当日及历史龙虎榜、营业部明细，每天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:","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.","installCommand":"clawhub skill install s17c42zfp8acngws7s3yc1kjts86ebkg:lhb-api","sourceUrl":"https://clawhub.ai/fffy520/lhb-api","homepage":"https://clawhub.ai/fffy520/skills/lhb-api","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/fffy520/lhb-api","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/fffy520/skills/lhb-api","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":61,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"支持查询当日及历史龙虎榜、营业部明细，每天18:00更新当日数据。 Skill: A股龙虎榜市场数据API接口 Owner: fffy520 Summary: 支持查询当日及历史龙虎榜、营业部明细，每天18:00更新当日数据。 Tags: latest:1.0.3 Version history: v1.0.3 | 2"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-11T07:22:39.672Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-11T07:22:39.672Z","emptyReason":null},"stars":null,"forks":null,"downloads":1125,"packageName":null,"latestVersion":"1.0.3","tractionLabel":"1.1K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-11T07:22:39.613Z","emptyReason":null},"lastUpdatedAt":"2026-10-11T07:22:39.672Z","lastCrawledAt":"2026-10-11T07:22:39.613Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-12T07:22:39.613Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.3","createdAt":"2026-05-13T15:16:37.550Z","changelog":"Version 1.0.3 brings major API扩展与文档重构： - 新增资金流向/涨跌股池等多类API，涵盖主力/超大单/涨停/连板等多维数据 - 龙虎榜数据历史提升至2016年至今，数据量增加至9万+ - 用户单日配额提升至100次 - 文档结构全面优化，接口示例、参数及返回字段展示更清晰 - 提供Python客户端调用示例 - 明确接口限频、错误码和配额等规则","fileCount":4,"zipByteSize":5056},{"version":"1.0.2","createdAt":"2026-05-11T08:04:04.055Z","changelog":"- Major documentation overhaul: SKILL.md fully rewritten with detailed API conventions, data field explanations, usage limits, error codes, and application scenarios. - Enhanced feature descriptions, including precise data coverage, quotas, and example queries. - Dropped outdated Python code sample; now focuses on cURL usage and API concepts. - Restructured and clarified endpoint guides for daily and historical data, broker details, and account info. - File changes: added scripts/client.py, removed __init__.py and client.py.","fileCount":3,"zipByteSize":5103},{"version":"1.0.1","createdAt":"2026-05-10T15:49:07.444Z","changelog":"- Documentation updated for clarity and brevity. - Simplified API usage instructions and Python code examples. - Adjusted data example for \"remaining\" field. - Removed detailed device ID and automatic trial registration instructions. - General information rewritten for easier understanding.","fileCount":4,"zipByteSize":4108},{"version":"1.0.0","createdAt":"2026-05-10T02:19:36.294Z","changelog":"A股龙虎榜API接口 稳定更新","fileCount":4,"zipByteSize":3241}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17c42zfp8acngws7s3yc1kjts86ebkg:lhb-api","setupComplexity":"low","setupSteps":["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":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-fffy520-lhb-api/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-fffy520-lhb-api/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-fffy520-lhb-api/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-fffy520-lhb-api/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-fffy520-lhb-api/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-fffy520-lhb-api/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-11T10:50:15.601Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-fffy520-lhb-api/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-fffy520-lhb-api/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-fffy520-lhb-api/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-fffy520-lhb-api/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-11T07:22:39.672Z","emptyReason":null},"readme":"Skill: A股龙虎榜市场数据API接口\n\nOwner: fffy520\n\nSummary: 支持查询当日及历史龙虎榜、营业部明细，每天18:00更新当日数据。\n\nTags: latest:1.0.3\n\nVersion history:\n\nv1.0.3 | 2026-05-13T15:16:37.550Z | user\n\nVersion 1.0.3 brings major API扩展与文档重构：\n\n- 新增资金流向/涨跌股池等多类API，涵盖主力/超大单/涨停/连板等多维数据\n- 龙虎榜数据历史提升至2016年至今，数据量增加至9万+\n- 用户单日配额提升至100次\n- 文档结构全面优化，接口示例、参数及返回字段展示更清晰\n- 提供Python客户端调用示例\n- 明确接口限频、错误码和配额等规则\n\nv1.0.2 | 2026-05-11T08:04:04.055Z | user\n\n- Major documentation overhaul: SKILL.md fully rewritten with detailed API conventions, data field explanations, usage limits, error codes, and application scenarios.\n- Enhanced feature descriptions, including precise data coverage, quotas, and example queries.\n- Dropped outdated Python code sample; now focuses on cURL usage and API concepts.\n- Restructured and clarified endpoint guides for daily and historical data, broker details, and account info.\n- File changes: added scripts/client.py, removed __init__.py and client.py.\n\nv1.0.1 | 2026-05-10T15:49:07.444Z | user\n\n- Documentation updated for clarity and brevity.\n- Simplified API usage instructions and Python code examples.\n- Adjusted data example for \"remaining\" field.\n- Removed detailed device ID and automatic trial registration instructions.\n- General information rewritten for easier understanding.\n\nv1.0.0 | 2026-05-10T02:19:36.294Z | user\n\nA股龙虎榜API接口 稳定更新\n\nArchive index:\n\nArchive v1.0.3: 4 files, 5056 bytes\n\nFiles: scripts/client.py (4012b), skill-card.md (1883b), SKILL.md (4092b), _meta.json (126b)\n\nFile v1.0.3:SKILL.md\n\n# A股市场数据 API接口\n\n> 龙虎榜 · 资金流向 · 涨跌股池 · 全量行情数据 · 持续更新更多接口\r\n> http://fffy520.gicp.net:8003最新接口和使用方法详见\n\n---\n\n## 数据能力\n\n| 维度 | 覆盖 |\n|------|------|\n| 龙虎榜 | 2016年至今 · 90,000+ 条，含买5卖5营业部明细 |\n| 资金流向 | 个股主力/超大单/大单/中单/小单净流入 |\n| 涨跌股池 | 涨停/跌停/炸板/连板/一字板/翘板/地天/天地板 |\n| 更新频率 | 每个交易日 17:00 后更新 |\n\n---\n\n## 接口文档\n\n### 1️⃣ 当日龙虎榜\n\n```\nGET /api/lhb/daily?date=2026-05-13\n```\n\n返回指定交易日完整龙虎榜，每只上榜股票含买入/卖出前5席位明细。\n\n```\ncurl \"http://fffy520.gicp.net:8003/api/lhb/daily?date=2026-05-13\"\n```\n\n**核心字段：**\n- `code` / `name` — 股票代码/名称\n- `close` / `change` — 收盘价/涨跌幅\n- `net_buy` — 净买入额（万元）\n- `brokers.buy[5]` / `brokers.sell[5]` — 买入/卖出前5席位（排名、名称、金额、净额）\n- `entry_type` — `daily` 日榜 / `3day` 三日榜\n- `reason` — 上榜原因\n\n---\n\n### 2️⃣ 个股历史龙虎榜\n\n```\nGET /api/lhb/history?code=002031\n```\n\n查询单只股票全部龙虎榜上榜记录，追踪主力资金轨迹。\n\n```\ncurl \"http://fffy520.gicp.net:8003/api/lhb/history?code=002031\"\n```\n\n---\n\n### 3️⃣ 涨跌股池\n\n```\nGET /api/stock-pools?date=2026-05-13&data_type=limit_up\n```\n\n8 大股池每日更新，可按类型筛选。\n\n**data_type 参数：**\n\n| 参数 | 说明 |\n|------|------|\n| `limit_up` | 涨停（含题材/连板天数/涨停时间） |\n| `limit_continuous` | 连板 |\n| `limit_broken` | 炸板 |\n| `limit_down` | 跌停 |\n| `one_line_limit` | 一字板 |\n| `rebound` | 翘板 |\n| `earth_to_heaven` | 地天板 |\n| `heaven_to_earth` | 天地板 |\n\n不传 `data_type` 返回全部 8 类。\n\n---\n\n### 4️⃣ 个股资金流向\n\n```\nGET /api/moneyflow?code=600519&trade_date=20260513\n```\n\n获取个股主力/超大单/大单/中单/小单净流入数据。\n\n**参数：**\n\n| 参数 | 必填 | 说明 |\n|------|------|------|\n| code | ✅ | 6位股票代码 |\n| trade_date | ❌ | YYYYMMDD，默认最新 |\n\n**返回字段：**\n\n| 字段 | 单位 | 说明 |\n|------|------|------|\n| main_net_inflow | 元 | 主力净流入（超大单+大单） |\n| main_net_pct | % | 主力流入占比 |\n| super_large_inflow | 元 | 超大单净流入 |\n| large_inflow | 元 | 大单净流入 |\n| medium_inflow | 元 | 中单净流入 |\n| small_inflow | 元 | 小单净流入 |\n| close_price | 元 | 收盘价 |\n| change_pct | % | 涨跌幅 |\n\n```\ncurl \"http://fffy520.gicp.net:8003/api/moneyflow?code=600519&trade_date=20260513\"\n```\n\n---\n\n### 5️⃣ 账户信息\n\n```\nGET /api/account\n```\n\n查询当前的套餐类型、剩余配额和有效期。\n\n```\ncurl \"http://fffy520.gicp.net:8003/api/account\"\n```\n\n---\n\n## Python 客户端\n\n```python\nfrom client import LHBClient\n\nclient = LHBClient()\n\n# 龙虎榜\ndaily = client.daily(\"2026-05-13\")\nhistory = client.history(\"002031\")\n\n# 资金流向\nflow = client.moneyflow(\"600519\", \"20260513\")\nprint(flow[\"data\"][\"main_net_inflow\"])\n```\n\n> （日配额 100 次）。\n\n---\n\n## 限制说明\n\n| 项目 | 规则 |\n|------|------|\n| 日配额 | 100次/天 · 长期不限量 |\n| 历史条数 | 非长期套餐 ≤30条 · 长期不限 |\n| 频率 | 30次/秒/Key |\n| 缓存 | 同参数不重复扣配额 |\n\n| HTTP状态 | 说明 |\n|----------|------|\n| 200 | 请求成功 |\n| 401 | 无效凭证 |\n| 403 | 凭证已禁用或当日配额用完 |\n| 429 | 请求过于频繁 |\n\n---\n\n## 应用场景\n\n- **跟庄选股** — 每日监控机构/游资净买入排行，锁定主力介入标的\n- **游资追踪** — 通过营业部席位分析游资操作风格和偏好\n- **个股诊断** — 查看个股历史上榜频率和资金流向变化\n- **量化因子** — 将龙虎榜/资金流向作为选股因子构建策略\n- **风控参考** — 观察主力出货信号，辅助持仓决策\n\n---\n\n*数据更新：交易所完整披露后更新 | 数据范围：2022-01-04 至今*\n\nFile v1.0.3:_meta.json\n\n{\n  \"ownerId\": \"kn70matfe65a34vevfsrac1psh82m2zw\",\n  \"slug\": \"lhb-api\",\n  \"version\": \"1.0.3\",\n  \"publishedAt\": 1778685397550\n}\n\nFile v1.0.3:skill-card.md\n\n## Description:\n\nProvides Chinese A-share Dragon-Tiger List, broker detail, money-flow, stock-pool, and quote API guidance with a small Python client.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[fffy520](https://clawhub.ai/user/fffy520)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nDevelopers, 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.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: 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.\n\nMitigation: 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.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/fffy520/skills/lhb-api)\n- [A-share Market Data API Endpoint](http://fffy520.gicp.net:8003)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown with API examples, Python code, and shell commands]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Outputs may include HTTP request examples and JSON response field descriptions for market data queries.]\n\n## Skill Version(s):\n\n1.0.3 (source: server release metadata, created 2026-05-13)\n\n## Ethical Considerations:\n\nUsers 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.\n\nArchive v1.0.2: 3 files, 5103 bytes\n\nFiles: scripts/client.py (6394b), SKILL.md (5767b), _meta.json (126b)\n\nFile v1.0.2:SKILL.md\n\n# A股龙虎榜数据 API接口 — 专业版\n\n> 精准捕捉主力资金动向 · 完整历史数据 · 开盘日18点更新· 营业部+游资席位 买5卖5席位资金全揭示\r\n> 更多数据接口开发中\n\n---\n\n## 📌 数据能力\n\n| 数据维度 | 覆盖范围 |\n|---------|---------|\n| 时间跨度 | **2022年至今**  |\n| 数据总量 | **70,000+ 条** |\n| 榜单类型 | 日榜 + 三日榜 |\n| 营业部明细 | **买入前5席位 + 卖出前5席位**（排名、名称、金额、净额） |\n| 内容字段 | 股票代码、名称、收盘价、涨跌幅、成交额、净买入、买入前5合计、卖出前5合计、上榜原因 |\n\n**数据来源**：交易所公开披露 · 同源数据\n\n---\n\n## 🚀 接口速览\n\n### 1️⃣ 当日龙虎榜 — `GET /api/lhb/daily`\n\n获取指定交易日的完整龙虎榜数据，含买5卖5营业部明细。\n\n```bash\n# 查最新交易日\ncurl \"http://fffy520.gicp.net:8003/api/lhb/daily\" \\\n  -H \"Authorization: Bearer 你的Key\"\n\n# 查指定日期\ncurl \"http://fffy520.gicp.net:8003/api/lhb/daily?date=2026-05-08\" \\\n  -H \"Authorization: Bearer 你的Key\"\n```\n\n**返回示例：**\n\n```json\n{\n  \"code\": 200,\n  \"remaining\": 48,\n  \"data\": [\n    {\n      \"date\": \"2026-05-08\",\n      \"code\": \"002031\",\n      \"name\": \"巨轮智能\",\n      \"close\": 7.06,\n      \"change\": 9.97,\n      \"amount\": 87200.0,\n      \"entry_type\": \"daily\",\n      \"net_buy\": 28000.0,\n      \"buy_total\": 57600.0,\n      \"sell_total\": 29600.0,\n      \"reason\": \"连续三个交易日内,涨幅偏离值累计达20%的证券\",\n      \"brokers\": {\n        \"buy\": [\n          {\"rank\": 1, \"name\": \"国泰海通证券武汉紫阳东路证券...\", \"buy\": 22495.0, \"sell\": 1189.91, \"net\": 21305.09},\n          {\"rank\": 2, \"name\": \"深股通专用\", \"buy\": 12082.6, \"sell\": 15152.3, \"net\": -3069.7},\n          {\"rank\": 3, \"name\": \"国新证券北京分公司\", \"buy\": 5544.62, \"sell\": 0, \"net\": 5544.62},\n          {\"rank\": 4, \"name\": \"东方证券拉萨金珠西路\", \"buy\": 5094.85, \"sell\": 4761.84, \"net\": 333.01},\n          {\"rank\": 5, \"name\": \"华鑫证券上海茅台路\", \"buy\": 4995.71, \"sell\": 25.59, \"net\": 4970.12}\n        ],\n        \"sell\": [\n          {\"rank\": 1, \"name\": \"深股通专用\", \"buy\": 12082.6, \"sell\": 15152.3, \"net\": -3069.7},\n          {\"rank\": 2, \"name\": \"东方证券拉萨金珠西路\", \"buy\": 5094.85, \"sell\": 4761.84, \"net\": 333.01},\n          {\"rank\": 3, \"name\": \"机构专用\", \"buy\": 2867.9, \"sell\": 2933.4, \"net\": -65.48},\n          {\"rank\": 4, \"name\": \"机构专用\", \"buy\": 3124.73, \"sell\": 2785.58, \"net\": 339.15},\n          {\"rank\": 5, \"name\": \"机构专用\", \"buy\": 1400.33, \"sell\": 2714.3, \"net\": -1313.97}\n        ]\n      }\n    }\n  ]\n}\n```\n\n---\n\n### 2️⃣ 个股历史龙虎榜 — `GET /api/lhb/history`\n\n查询某只股票的全部龙虎榜上榜记录，追踪主力轨迹。\n\n```bash\ncurl \"http://fffy520.gicp.net:8003/api/lhb/history?code=002031\" \\\n  -H \"Authorization: Bearer 你的Key\"\n```\n\n**返回示例：**\n\n```json\n{\n  \"code\": 200,\n  \"remaining\": 47,\n  \"data\": [\n    {\n      \"date\": \"2026-05-08\",\n      \"code\": \"002031\",\n      \"name\": \"巨轮智能\",\n      \"close\": 7.06,\n      \"change\": 9.97,\n      \"amount\": 87200.0,\n      \"entry_type\": \"daily\",\n      \"net_buy\": 28000.0,\n      \"reason\": \"连续三个交易日内,涨幅偏离值累计达20%的证券\"\n    }\n  ]\n}\n```\n\n---\n\n### 3️⃣ 查询账户 — `GET /api/lhb/account`\n\n查看当前套餐、剩余配额和到期时间。\n\n```bash\ncurl \"http://fffy520.gicp.net:8003/api/lhb/account\" \\\n  -H \"Authorization: Bearer 你的Key\"\n```\n\n**返回：** 套餐名称、日配额、剩余次数、到期时间\n\n---\n\n## 📊 字段说明\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| `date` | string | 上榜日期 YYYY-MM-DD |\n| `code` | string | 股票代码 |\n| `name` | string | 股票名称 |\n| `close` | float | 当日收盘价 |\n| `change` | float | 涨跌幅（%） |\n| `amount` | float | 成交额（万元） |\n| `net_buy` | float | 净买入额（万元） |\n| `buy_total` | float | 买入前5合计（万元） |\n| `sell_total` | float | 卖出前5合计（万元） |\n| `entry_type` | string | 榜单类型：`daily` 日榜 / `3day` 三日榜 |\n| `reason` | string | 上榜原因 |\n| `brokers.buy` | array | 买入前5席位（排名、名称、买入、卖出、净额） |\n| `brokers.sell` | array | 卖出前5席位（排名、名称、买入、卖出、净额） |\n\n---\n\n## 🔐 鉴权方式\n\n所有接口使用 **Bearer Token** 鉴权：\n\n```bash\n-H \"Authorization: Bearer 你的Key\"\n```\n\n>首次自动激活。赠送 **7天免费试用**（10次/天）。\n\n---\n\n## 🎯 套餐使用\n\n# 详情见\n# http://fffy520.gicp.net:8003/renew\n\n---\n\n## ⚠️ 限制说明\n\n| 限制项 | 规则 |\n|--------|------|\n| 日配额 | 月/季/年卡：**50次/天**；长期：不限量 |\n| 历史条数 | 非长期套餐：**≤30条**；长期：不限 |\n| 频率限制 | **30次/秒/Key** |\n| 配额重置 | 每天 **00:00** 自动恢复 |\n| 缓存策略 | daily接口 **60分钟缓存**，不重复扣配额 |\n\n---\n\n## 🔧 常见错误\n\n| HTTP状态 | 说明 |\n|----------|------|\n| 200 | ✅ 请求成功 |\n| 401 | ❌ 无效Key |\n| 403 | ❌ Key已禁用或当日配额用完 |\n| 429 | ❌ 请求过于频繁，请稍后重试 |\n\n---\n\n## 💡 应用场景\n\n- **跟庄选股**：每日监控机构/游资净买入排名，锁定主力介入标的\n- **游资追踪**：通过营业部席位分析游资操作风格和偏好\n- **个股诊断**：查看个股历史上榜频率和资金流向变化\n- **量化因子**：将龙虎榜数据作为选股因子，构建交易策略\n- **风控参考**：观察主力出货信号，辅助持仓决策\n\n---\n\n*数据更新：交易所完整披露后即可更新 | 数据范围：2022-01-04 至今*\n\nFile v1.0.2:_meta.json\n\n{\n  \"ownerId\": \"kn70matfe65a34vevfsrac1psh82m2zw\",\n  \"slug\": \"lhb-api\",\n  \"version\": \"1.0.2\",\n  \"publishedAt\": 1778486644055\n}\n\nArchive v1.0.1: 4 files, 4108 bytes\n\nFiles: __init__.py (82b), client.py (8613b), SKILL.md (1844b), _meta.json (126b)\n\nFile v1.0.1:SKILL.md\n\n# lhb-api-skill\n\n## 功能\n龙虎榜数据API-同花顺接口\n\n## 调用方式\n```\nhttp://fffy520.gicp.net:8003\n```\n\n### 获取账户信息\n```bash\nGET /api/lhb/account\n```\n\n### 获取当日龙虎榜\n```bash\nGET /api/lhb/daily\nGET /api/lhb/daily?date=2026-05-08\n```\n\n### 获取历史龙虎榜\n```bash\nGET /api/lhb/history?start_date=2026-05-01&end_date=2026-05-08\nGET /api/lhb/history?code=000534\n```\n\n### 获取营业部明细\n```bash\nGET /api/lhb/broker?date=2026-05-08&code=000534\n```\n\n### 查询游资操作记录\n```bash\nGET /api/lhb/broker-trades?broker_name=中信证券\nGET /api/lhb/broker-trades?broker_name=华鑫证券&start_date=2026-05-01\n```\n\n## 数据示例\n```json\n{\n  \"code\": 200,\n  \"data\": [{\n    \"date\": \"2026-05-08\",\n    \"rank\": 1,\n    \"code\": \"000534\",\n    \"name\": \"万泽股份\",\n    \"close\": 39.4,\n    \"change\": -7.98,\n    \"amount\": 59600,\n    \"entry_type\": \"daily\",\n    \"net_buy\": -21000,\n    \"reason\": \"日跌幅偏离\"\n  }],\n  \"remaining\": 49\n}\n```\n\n## Python调用（直接复制）\n```python\nimport os\nimport requests\n\nBASE_URL = \"http://fffy520.gicp.net:8003\"\nAPI_KEY = \"\"  # ← 买Key后填在这里\n\n\ndef _headers():\n    return {\"Authorization\": f\"Bearer {API_KEY}\"} if API_KEY else {}\n\n\ndef get_daily(date=None):\n    \"\"\"获取当日龙虎榜\"\"\"\n    params = {\"date\": date} if date else {}\n    resp = requests.get(f\"{BASE_URL}/api/lhb/daily\", params=params, headers=_headers())\n    return resp.json()\n\n\ndef get_history(start_date, end_date=None, code=None):\n    \"\"\"获取历史龙虎榜\"\"\"\n    params = {\"start_date\": start_date}\n    if end_date: params[\"end_date\"] = end_date\n    if code: params[\"code\"] = code\n    resp = requests.get(f\"{BASE_URL}/api/lhb/history\", params=params, headers=_headers())\n    return resp.json()\n\n\n# 使用示例\nif __name__ == \"__main__\":\n    data = get_daily()\n    print(data)\n```\n\nFile v1.0.1:_meta.json\n\n{\n  \"ownerId\": \"kn70matfe65a34vevfsrac1psh82m2zw\",\n  \"slug\": \"lhb-api\",\n  \"version\": \"1.0.1\",\n  \"publishedAt\": 1778428147444\n}\n\nArchive v1.0.0: 4 files, 3241 bytes\n\nFiles: __init__.py (153b), client.py (2861b), SKILL.md (3189b), _meta.json (126b)\n\nFile v1.0.0:SKILL.md\n\n# lhb-api-skill\n\n## 功能\nA股龙虎榜数据API，7天免费试用。\n\n## 调用方式\n- 服务地址：`http://fffy520.gicp.net:8003`\n- 自动注册7天试用，无需配置\n\n## API接口\n\n### 1. 获取账户信息\n```bash\nGET /api/lhb/account\n```\n\n### 2. 获取当日龙虎榜\n```bash\nGET /api/lhb/daily?date=2026-05-08\n```\n\n### 3. 获取历史龙虎榜\n```bash\nGET /api/lhb/history?start_date=2026-05-01&end_date=2026-05-08\nGET /api/lhb/history?code=000534\n```\n\n### 4. 获取营业部明细\n```bash\nGET /api/lhb/broker?date=2026-05-08&code=000534\n```\n\n### 5. 查询游资操作记录\n```bash\nGET /api/lhb/broker-trades?broker_name=中信证券\nGET /api/lhb/broker-trades?broker_name=华鑫证券&start_date=2026-05-01\n```\n\n## Header参数\n| 参数 | 说明 |\n|------|------|\n| Authorization | 手动Key（可选） |\n| X-Device-ID | 设备ID（自动生成） |\n\n## 数据返回示例\n```json\n{\n  \"code\": 200,\n  \"data\": [\n    {\n      \"date\": \"2026-05-08\",\n      \"rank\": 1,\n      \"code\": \"000534\",\n      \"name\": \"万泽股份\",\n      \"close\": 39.4,\n      \"change\": -7.98,\n      \"amount\": 59600,\n      \"entry_type\": \"daily\",\n      \"net_buy\": -21000,\n      \"reason\": \"日跌幅偏离\"\n    }\n  ],\n  \"remaining\": 10\n}\n```\n\n## Python使用（直接复制此代码）\n```python\nimport os\nimport uuid\nimport requests\nfrom pathlib import Path\n\nBASE_URL = \"http://fffy520.gicp.net:8003\"\nDEVICE_FILE = Path.home() / \".lhb_api_device_id\"\n\n\ndef get_device_id():\n    \"\"\"获取或生成设备ID\"\"\"\n    if DEVICE_FILE.exists():\n        return DEVICE_FILE.read_text().strip()\n    device_id = f\"dev_{uuid.uuid4().hex[:12]}\"\n    DEVICE_FILE.write_text(device_id)\n    return device_id\n\n\nclass LHBClient:\n    \"\"\"龙虎榜API客户端\"\"\"\n    \n    def __init__(self, api_key=None):\n        self.base_url = BASE_URL\n        self.device_id = get_device_id()\n        self.headers = {\"X-Device-ID\": self.device_id}\n        if api_key:\n            self.headers[\"Authorization\"] = f\"Bearer {api_key}\"\n\n\n# 便捷函数\ndef get_daily(date=None):\n    \"\"\"获取当日龙虎榜\"\"\"\n    client = LHBClient()\n    url = f\"{client.base_url}/api/lhb/daily\"\n    params = {\"date\": date} if date else {}\n    resp = requests.get(url, params=params, headers=client.headers)\n    return resp.json()\n\n\ndef get_history(start_date, end_date=None, code=None):\n    \"\"\"获取历史龙虎榜\"\"\"\n    client = LHBClient()\n    url = f\"{client.base_url}/api/lhb/history\"\n    params = {\"start_date\": start_date}\n    if end_date:\n        params[\"end_date\"] = end_date\n    if code:\n        params[\"code\"] = code\n    resp = requests.get(url, params=params, headers=client.headers)\n    return resp.json()\n\n\nif __name__ == \"__main__\":\n    print(get_daily())\n```\n\n## 使用示例\n```python\nfrom lhb_api import get_daily, get_history\n\n# 获取今日龙虎榜\ndata = get_daily()\n\n# 获取历史\ndata = get_history(\"2026-05-01\", \"2026-05-08\")\n\n# 查询个股\ndata = get_history(code=\"000534\")\n```\n## 套餐\n- 试用：7天        0元\n- 月卡：30天    9.9元\n- 季卡：90天   19.9元\n- 年卡：365天 59.9元\n- 长期：无限   99.9元\n\n## 注意事项\n- 首次调用自动注册7天试用\n- 到期后需续费使用QQ165696237 微信18623023623\n\nFile v1.0.0:_meta.json\n\n{\n  \"ownerId\": \"kn70matfe65a34vevfsrac1psh82m2zw\",\n  \"slug\": \"lhb-api\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1778379576294\n}","readmeExcerpt":"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:","codeSnippets":[],"executableExamples":[{"language":"text","snippet":"GET /api/lhb/daily?date=2026-05-13"},{"language":"text","snippet":"curl \"http://fffy520.gicp.net:8003/api/lhb/daily?date=2026-05-13\""},{"language":"text","snippet":"GET /api/lhb/history?code=002031"},{"language":"text","snippet":"curl \"http://fffy520.gicp.net:8003/api/lhb/history?code=002031\""},{"language":"text","snippet":"GET /api/stock-pools?date=2026-05-13&data_type=limit_up"},{"language":"text","snippet":"GET /api/moneyflow?code=600519&trade_date=20260513"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"# A股市场数据 API接口\n\n> 龙虎榜 · 资金流向 · 涨跌股池 · 全量行情数据 · 持续更新更多接口\r\n> http://fffy520.gicp.net:8003最新接口和使用方法详见\n\n---\n\n## 数据能力\n\n| 维度 | 覆盖 |\n|------|------|\n| 龙虎榜 | 2016年至今 · 90,000+ 条，含买5卖5营业部明细 |\n| 资金流向 | 个股主力/超大单/大单/中单/小单净流入 |\n| 涨跌股池 | 涨停/跌停/炸板/连板/一字板/翘板/地天/天地板 |\n| 更新频率 | 每个交易日 17:00 后更新 |\n\n---\n\n## 接口文档\n\n### 1️⃣ 当日龙虎榜\n\n```\nGET /api/lhb/daily?date=2026-05-13\n```\n\n返回指定交易日完整龙虎榜，每只上榜股票含买入/卖出前5席位明细。\n\n```\ncurl \"http://fffy520.gicp.net:8003/api/lhb/daily?date=2026-05-13\"\n```\n\n**核心字段：**\n- `code` / `name` — 股票代码/名称\n- `close` / `change` — 收盘价/涨跌幅\n- `net_buy` — 净买入额（万元）\n- `brokers.buy[5]` / `brokers.sell[5]` — 买入/卖出前5席位（排名、名称、金额、净额）\n- `entry_type` — `daily` 日榜 / `3day` 三日榜\n- `reason` — 上榜原因\n\n---\n\n### 2️⃣ 个股历史龙虎榜\n\n```\nGET /api/lhb/history?code=002031\n```\n\n查询单只股票全部龙虎榜上榜记录，追踪主力资金轨迹。\n\n```\ncurl \"http://fffy520.gicp.net:8003/api/lhb/history?code=002031\"\n```\n\n---\n\n### 3️⃣ 涨跌股池\n\n```\nGET /api/stock-pools?date=2026-05-13&data_type=limit_up\n```\n\n8 大股池每日更新，可按类型筛选。\n\n**data_type 参数：**\n\n| 参数 | 说明 |\n|------|------|\n| `limit_up` | 涨停（含题材/连板天数/涨停时间） |\n| `limit_continuous` | 连板 |\n| `limit_broken` | 炸板 |\n| `limit_down` | 跌停 |\n| `one_line_limit` | 一字板 |\n| `rebound` | 翘板 |\n| `earth_to_heaven` | 地天板 |\n| `heaven_to_earth` | 天地板 |\n\n不传 `data_type` 返回全部 8 类。\n\n---\n\n### 4️⃣ 个股资金流向\n\n```\nGET /api/moneyflow?code=600519&trade_date=20260513\n```\n\n获取个股主力/超大单/大单/中单/小单净流入数据。\n\n**参数：**\n\n| 参数 | 必填 | 说明 |\n|------|------|------|\n| code | ✅ | 6位股票代码 |\n| trade_date | ❌ | YYYYMMDD，默认最新 |\n\n**返回字段：**\n\n| 字段 | 单位 | 说明 |\n|------|------|------|\n| main_net_inflow | 元 | 主力净流入（超大单+大单） |\n| main_net_pct | % | 主力流入占比 |\n| super_large_inflow | 元 | 超大单净流入 |\n| large_inflow | 元 | 大单净流入 |\n| medium_inflow | 元 | 中单净流入 |\n| small_inflow | 元 | 小单净流入 |\n| close_price | 元 | 收盘价 |\n| change_pct | % | 涨跌幅 |\n\n```\ncurl \"http://fffy520.gicp.net:8003/api/moneyflow?code=600519&trade_date=20260513\"\n```\n\n---\n\n### 5️⃣ 账户信息\n\n```\nGET /api/account\n```\n\n查询当前的套餐类型、剩余配额和有效期。\n\n```\ncurl \"http://fffy520.gicp.net:8003/api/account\"\n```\n\n---\n\n## Python 客户端\n\n```python\nfrom client import LHBClient\n\nclient = LHBClient()\n\n# 龙虎榜\ndaily = client.daily(\"2026-05-13\")\nhistory = client.history(\"002031\")\n\n# 资金流向\nflow = client.moneyflow(\"600519\", \"20260513\")\nprint(flow[\"data\"][\"main_net_inflow\"])\n```\n\n> （日配额 100 次）。\n\n---\n\n## 限制说明\n\n| 项目 | 规则 |\n|------|------|\n| 日配额 | 100次/天 · 长期不限量 |\n| 历史条数 | 非长期套餐 ≤30条 · 长期不限 |\n| 频率 | 30次/秒/Key |\n| 缓存 | 同参数不重复扣配额 |\n\n| HTTP状态 | 说明 |\n|----------|------|\n| 200 | 请求成功 |\n| 401 | 无效凭证 |\n| 403 | 凭证已禁用或当日配额用完 |\n| 429 | 请求过于频繁 |\n\n---\n\n## 应用场景\n\n- **跟庄选股** — 每日监控机构/游资净买入排行，锁定主力介入标的\n- **游资追踪** — 通过营业部席位分析游资操作风格和偏好\n- **个股诊断** — 查看个股历史上榜频率和资金流向变化\n- **量化因子** — 将龙虎榜/资金流向作为选股因子构建策略\n- **风控参考** — 观察主力出货信号，辅助持仓决策\n\n---\n\n*数据更新：交易所完整披露后更新 | 数据范围：2022-01-04 至今*"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn70matfe65a34vevfsrac1psh82m2zw\",\n  \"slug\": \"lhb-api\",\n  \"version\": \"1.0.3\",\n  \"publishedAt\": 1778685397550\n}"},{"path":"skill-card.md","content":"## Description:\n\nProvides Chinese A-share Dragon-Tiger List, broker detail, money-flow, stock-pool, and quote API guidance with a small Python client.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[fffy520](https://clawhub.ai/user/fffy520)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nDevelopers, 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.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: 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.\n\nMitigation: 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.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/fffy520/skills/lhb-api)\n- [A-share Market Data API Endpoint](http://fffy520.gicp.net:8003)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown with API examples, Python code, and shell commands]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Outputs may include HTTP request examples and JSON response field descriptions for market data queries.]\n\n## Skill Version(s):\n\n1.0.3 (source: server release metadata, created 2026-05-13)\n\n## Ethical Considerations:\n\nUsers 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."}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"支持查询当日及历史龙虎榜、营业部明细，每天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:","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":785,"uniquenessScore":64,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-11T07:22:39.672Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-11T07:22:39.672Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-11T10:50:15.601Z","emptyReason":null},"items":[{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"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!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-10-09T19:11:12.944Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"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","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}