
Stock Analyzer
This is a Chinese stock market analysis tool that wraps three main functions: analyzing single stocks, batch analyzing multiple stocks, and generating market review reports. Each analysis returns structured data with technical indicators (trend, volume, price position), news sentiment, and actionable trading plans with specific entry/exit points. The dashboard output is pretty comprehensive, covering everything from one-line conclusions to risk checklists. It pulls from analyzer_service.py and uses a config system that defaults to environment variables if you don't pass one in. Realistically useful if you're building a trading assistant or market monitoring system for Chinese equities and want the analysis logic already packaged up.
- skills.sh installs
- 122
- GitHub stars
- 60.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add zhulinsen/daily_stock_analysis --skill stock_analyzer --agent claude-codeInstalls into .claude/skills of the current project.
Files
股票分析器
本技能基于 src/services/analyzer_service.py 的逻辑,提供分析股票和整体市场的功能。
输出结构 (AnalysisResult)
分析函数返回一个 AnalysisResult 对象(或其列表),该对象具有丰富的结构。以下是其关键组件的简要概述,并附有真实的输出示例:
dashboard 属性包含核心分析,分为四个主要部分:
core_conclusion: 一句话总结、信号类型和仓位建议。data_perspective: 技术数据,包括趋势状态、价格位置、量能分析和筹码结构。intelligence: 定性信息,如新闻、风险警报和积极催化剂。battle_plan: 可操作的策略,包括狙击点(买/卖目标)、仓位策略和风险控制清单。
配置 (Config)
所有分析函数都可以接受一个可选的 config 对象。该对象包含应用程序的所有配置,例如 API 密钥、通知设置和分析参数。
如果未提供 config 对象,函数将自动使用从 .env 文件加载的全局单例实例。
参考: Config
函数
1. 分析单只股票
描述: 分析单只股票并返回分析结果。
何时使用: 当用户要求分析特定股票时。
输入:
stock_code(str): 要分析的股票代码。config(Config, 可选): 配置对象。默认为None。full_report(bool, 可选): 是否生成完整报告。默认为False。notifier(NotificationService, 可选): 通知服务对象。默认为None。
输出: Optional[AnalysisResult]
一个包含分析结果的 AnalysisResult 对象,如果分析失败则为 None。
示例:
from src.services.analyzer_service import analyze_stock
# 分析单只股票
result = analyze_stock("600989")
if result:
print(f"股票: {result.name} ({result.code})")
print(f"情绪得分: {result.sentiment_score}")
print(f"操作建议: {result.operation_advice}")
Sponsors
Details
- Repository
- github.com/zhulinsen/daily_stock_analysis
- Category
- Finance & Trading
- First seen
- Jun 3, 2026