
Stock Analyzer
Python-based stock and market analysis skill that returns structured results for single stocks, batches, and market reviews.
- skills.sh installs
- 122
- GitHub stars
- 73.7K
- last updated
- Aug 21, 2026
What it does
- Covers single-stock analysis, multi-stock batch analysis, and full market review reports via
analyze_stock,analyze_stocks, andperform_market_review - Returns an
AnalysisResultwith four sections: core conclusion, technical data, news and risk intelligence, and an action plan with entry and exit targets - Accepts an optional
Configobject and falls back to a global singleton loaded from.envwhen none is given - Integrates with xAI Grok via LiteLLM (
XAI_API_KEY,LITELLM_MODEL=xai/...) and with the Grok Bot through its HTTP API
Install
$ npx -y skills add zhulinsen/daily_stock_analysis --skill stock_analyzer -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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}")
Details
- Repository
- github.com/zhulinsen/daily_stock_analysis
- Categories
- Finance & Trading, Python, AI Agents & LLM Apps
- First seen
- Jun 3, 2026
Similar to Stock Analyzer
More Finance & Trading
daily-stock-analysisreason-machines/trending-skills1.9K installsLLM-powered analyzer for A-share, Hong Kong, and US stocks that pushes daily decision dashboards on a schedule.
stock-daily-analysischjm-ai/stock-daily-analysis-skill1.4K installsStock analysis skill that runs LLM-driven technical reviews of A-share, Hong Kong, and US watchlists.
stock-analystchengzuopeng/stock-sdk-mcp735 installsChinese-language skill that analyzes stock technical patterns, indicators, fund flows, and northbound holdings for technical reports.
stock-analysisalphamoemoe/foci982 installsStructured sentiment report that compiles bull and bear views on one ticker from tracked bloggers.
stock-info-explorersundial-org/awesome-openclaw-skills509 installsYahoo Finance analysis skill that pulls quotes, fundamentals, and locally computed indicator charts with a one-shot report.
a-stock-datasimonlin1212/a-stock-data1.2K installsA-share market data toolkit spanning fifteen layers, 87 endpoints, and 34 sources, with zero external files.