stock-pe-pb-analyzer
分析股票PE/PB历史水位的专业工具。使用BaoStock API获取真实股票数据,计算股票在过去十年中的PE、PB历史百分位水位。适用于:1)查询单个股票的PE/PB历史估值水平;2)评估当前估值相对于历史的高低位置;3)为投资决策提供估值参考数据。支持通过股票名称(如贵州茅台)或代码(如600519)查询A股所有股票。
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/caoyachao/stock-pe-pb-analyzer-skillWhat This Skill Does
The stock-pe-pb-analyzer is a specialized financial data tool designed to help investors and analysts evaluate A-share stocks through historical valuation metrics. By leveraging the BaoStock API, this skill extracts time-series financial data to calculate Price-to-Earnings (PE-TTM) and Price-to-Book (PB-MRQ) ratios over the last decade. It automatically computes historical percentiles, transforming raw market data into actionable intelligence. Users can instantly determine if a stock is currently trading at a premium or a discount relative to its own historical range, supporting more data-driven investment decisions.
Installation
To integrate this skill into your OpenClaw agent, execute the following command in your terminal:
clawhub install openclaw/skills/skills/caoyachao/stock-pe-pb-analyzer-skill
Ensure that you have the required Python environment installed with pandas, numpy, and baostock dependencies to ensure data processing and statistical calculations function correctly.
Use Cases
- Individual Stock Analysis: Quickly assess whether a specific stock, such as '贵州茅台' or '600519', is overvalued or undervalued.
- Portfolio Monitoring: Evaluate your current holdings to identify which assets have reached 'low' valuation percentiles, potentially signaling buying opportunities.
- Historical Trend Benchmarking: Compare the current valuation against 1, 3, 5, and 10-year benchmarks to understand long-term cyclical patterns.
- Risk Management: Avoid entering positions during periods of extreme overvaluation by identifying high-percentile 'hot' stocks.
Example Prompts
- "分析一下贵州茅台目前的PE和PB水位,看看现在是不是买入的好时机。"
- "查询代码600519的过去十年估值水平,并输出一份详细的统计报告。"
- "对比一下当前市场中各周期PE百分位情况,评估这只股票的估值是否处于历史低位区间。"
Tips & Limitations
- Data Precision: The skill filters out extreme anomalies (PE > 1000) to ensure statistical relevance, but always verify market conditions during volatile periods.
- Dependency Management: Ensure your environment has stable internet access, as the skill fetches real-time historical data from the BaoStock API.
- Investment Disclaimer: This tool provides quantitative analysis based on historical data; it does not constitute financial advice. Always perform your own due diligence and consider qualitative factors such as company management, macroeconomic environment, and industry growth prospects alongside these metrics.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-caoyachao-stock-pe-pb-analyzer-skill": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: external-api, code-execution
Related Skills
chill-beijing
北京下班及周末放松推荐助手 v1.4.0。工作日推荐电影、脱口秀、演出;周末推荐City Walk、京郊游、社交活动、演出。实时抓取猫眼/大麦/美团/小红书数据。
worldline-choice
AI驱动的互动叙事游戏引擎 v4.4.1 - 强制自动保存版。作为主持人(agent),你与玩家共同创造一个开放式的故事世界。 核心职责:初始化游戏→生成场景和ABCD+E选项→接收玩家选择→调用引擎执行d20检定→根据骰子结果讲述剧情→更新状态。 本skill强制透明暴露d20结果,禁止LLM脑补骰子结果;引擎层强制执行每回合自动保存,禁止LLM幻觉保存行为。
think-plan
深度思考与规划 Skill。用于复杂任务的需求挖掘、方案设计和执行规划。 触发场景: 1. 用户说"帮我规划一下..."、"我想做一个..."、"分析一下这个方案" 2. 用户明确说"使用 think-plan"或"用思考规划 Skill" 3. 用户提出的任务需求不清晰、需要梳理 4. 用户需要多个可选方案对比 核心能力: - 批判性需求挖掘:客观指出用户想法的逻辑问题和认知偏差 - 自适应方案设计:根据复杂度决定单/多智能体架构 - 可落地执行规划:产出可直接执行的详细方案 工作流程:需求探讨 → 方案生成 → 执行实施
ashareskill
使用BaoStock获取股票K线数据及完整技术指标的专业工具。支持单只股票或股票池查询,支持自定义时间段和K线级别(日线/周线/月线),获取的数据包含均线、MACD、KDJ、RSI、BOLL、CCI等完整技术指标。适用于:1)获取股票历史K线数据用于策略回测;2)导出完整技术指标数据用于量化分析;3)批量获取多只股票数据。支持通过股票名称(如贵州茅台)或代码(如600519)查询A股所有股票。
daily-briefing
Generate daily morning briefings with weather, traffic limits, and news. Provides structured data collection scripts for stable, reproducible briefing generation.