Fize/mmtickerlab / market
market
Verified获取经过日期、时效和完整性校验的 A 股/港美股原始行情与量化数据。支持查询实时报价、多周期 K 线、20+ 项确定性技术指标、涨跌停池、资金流向、大单异动、筹码分布、财务三大表及资讯新闻。当用户需要查询股票数据、获取实时行情、绘制 K 线图表、计算技术指标或检索财务数据时触发(包含触发词:查行情, 查K线, 查指标, 涨跌停池, 资金流向, 龙虎榜, 筹码分布, 财务报表, market data, stock quote, kline)。
| File | Kind | Size |
|---|---|---|
| .clawhubignore | other | 66 B |
| SKILL.md | skill md | 8.5 KB |
| references/scenarios.md | markdown | 2.5 KB |
| requirements.txt | manifest | 117 B |
| scripts/akshare_patch.py | script | 12.1 KB |
| scripts/cache_db.py | script | 7.3 KB |
| scripts/indicators.py | script | 4.1 KB |
| scripts/market_data.py | script | 105.3 KB |
| scripts/providers/__init__.py | script | 274 B |
| scripts/providers/yfinance_provider.py | script | 13.4 KB |
| scripts/raw_store.py | script | 9.4 KB |
| tests/test_report_data.py | script | 7.5 KB |
| tests/test_yfinance_provider.py | script | 4.6 KB |
references/scenarios.md
View on GitHub# Market Data Scenarios
Market 只返回数据。以下组合说明 Agent 在不同问题中应获取哪些数据,不预设分析结论。
| 场景 | 必需数据 | 可选补充 | 主要限制 |
|---|---|---|---|
| 快速市场状态 | `indices`、`snapshot` | `limits`、`flows` | 使用同一阶段快照 |
| 盘前研究 | `calendar`、前收 `indices/snapshot/limits/flows`、`overnight` | `watchlist`、个股新闻 | 不用实时值回填前收 |
| 午间复核 | 前收数据、午间 `indices/snapshot/limits/flows` | `big-deals`、自选股 `quote/kline` | 仅在 11:30-13:00 采集 |
| 盘后复盘 | 午间数据、收盘 `indices/snapshot/limits/flows`、独立 `lhb` | 自选股 `technical` | 15:05 采收盘,16:30 后单独采龙虎榜 |
| 涨跌异动 | `snapshot.data.rankings` | `big-deals`、`news` | 排行只说明极端表现 |
| 题材研究 | 1/3/5 日 `flows`、近五日 `limits` | 题材代表股数据 | 由 Agent 比较广度、强度和资金 |
| 个股趋势 | `kline`、`technical` | `chips`、`stock-flow` | 技术指标不等于交易信号 |
| 个股基本面 | 三类 `financials` | `news` | 区分报告期与获取日期 |
| 个股情绪 | `sentiment`、`stock-flow` | `news`、`big-deals` | 不推断未披露资金身份 |
| 自选股跟踪 | `watchlist` | 当日 `quote`、分钟 `kline` | 只处理配置中的标的 |
| 数据故障诊断 | 对应数据集 JSON、stderr | `akshare_patch` 重试日志 | 不把接口失败解释为零记录 |
| 原始明细查询 | `raw --kind`、标的和时间条件 | 对应供应商实时/历史接口 | 本地缺失时主动获取;不可回填时明确阻断 |
| 指定时点指标 | `technical --period --at` | `--indicator` 选择字段 | 只使用目标时点以前已完成的 K 线 |
## Data Interpretation Boundaries
- `snapshot` 提供全市场明细、分布和排行;市场定性由 Agent 完成。
- `limits` 提供连板梯队和行业计数;题材生命周期由 Agent 完成。
- `flows` 分别提供 1、3、5 日数据;持续性和背离由 Agent 比较。
- `technical` 提供确定性计算值;形态名称和观察条件由 Agent 生成。
- `news` 提供标题、正文、来源、时间和链接;催化剂解释由 Agent 完成。
- `financials` 提供报表原始字段;增长质量和估值判断由 Agent 完成。
- 大型快照的命令结果只携带紧凑视图;完整记录从 `data.raw.path` 按需读取。
- `market_raw.db` 保存跨命令可查询的标准化原始明细;报告快照文件仍是对应阶段的原子审计证据。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |