About stock-data
A skill that uses the stock-data CLI to retrieve market data and guide analyses of stocks, crypto, portfolios, sectors, and market conditions. It returns CSV data for analysis and directs workflows to topic-specific reference documents.
Key features
- 01Market data via stock-data CLI
- 02CSV output with metadata comments
- 03Stock and crypto analysis workflows
- 04Portfolio and sector analysis guidance
- 05Market and data-source health checks
Use cases
- 01Reviewing a listed stock or crypto asset
- 02Summarizing market conditions
- 03Analyzing a multi-stock portfolio
- 04Checking data-source status
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ openstockdata/ stock-data-skill --skill stock-dataAfter installing, type/stock-datain Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
.env.examplepyproject.tomlREADME.md.gitignore.clawhubignoreLICENSE.github/workflows/pypi.yamlreferences/portfolio-analyze.mdcrypto-analyze.mdmarket-overview.mdsector-analyze.mdstock-health-check.mdtools.mdstock-analyze.mdstock_data_skill/__init__.py__main__.pycli.pyDetails
From the project README工具调用方式
所有数据工具通过 stock-data CLI 直接调用:
stock-data <tool_name> key=value key2=value2
输出为 CSV 格式文本(# 开头为元数据注释行),直接解析即可。可并行调用多个独立命令。
常用示例
stock-data stock_realtime symbol=600519 market=sh
stock-data stock_prices symbol=300058 market=sz limit=60
stock-data search keyword=茅台
stock-data stock_indicators symbol=600519 market=sh
stock-data stock_chip symbol=300058
stock-data stock_fund_flow symbol=300058
stock-data trading_signals symbol=300058 days=60
stock-data okx_prices instId=BTC-USDT bar=1D limit=60
stock-data stock_news_global
stock-data stock_batch_realtime symbols=600519,000858,601318
stock-data --list # 查看全部可用工具
分析流程
根据用户意图,读取对应参考文档获取详细分析流程:
| 用户意图 | 参考文档 | 典型触发词 |
|---|---|---|
| 分析单只股票 | references/stock-analyze.md | "分析茅台"、"看看600519"、"AAPL怎么样" |
| 分析加密货币 | references/crypto-analyze.md | "分析BTC"、"比特币走势"、"ETH行情" |
| 市场全景概览 | references/market-overview.md | "市场概览"、"今日大盘"、"A股行情" |
| 持仓组合分析 | references/portfolio-analyze.md | "分析持仓"、"我的股票"、多个股票代码 |
| 板块轮动分析 | references/sector-analyze.md | "分析人工智能板块"、"银行板块" |
| 数据源健康检查 | references/stock-health-check.md | "健康检查"、"数据源状态" |
市场识别规则
- 6位纯数字 → A股(0/3开头=sz,6开头=sh)
- 5位数字 → 港股 (hk)
- 纯英文字母 → 美股 (us)
- 加密货币符号(BTC、ETH等) → 自动补全为 BTC-USDT 格式
输出格式约定
- 工具返回数据:CSV 格式,
#开头行为元数据 - 分析报告(面向用户):Markdown 格式,含表格、标题、强调
完整工具列表
参见 references/tools.md 获取全部 47 个工具的参数说明。
Comments
Markdown supported