sector-pe-ratios
БесплатноБез исполняемых скриптовНе проверенRetrieve sector P/E ratios using Octagon MCP. Use when comparing company valuations to sector benchmarks, analyzing sector valuations across exchanges, and…
от OctagonAI★ 131 звезда на GitHubОб этом скилле
Sector P/E Ratios
Retrieve price-to-earnings ratios by sector and exchange using the Octagon MCP server.
Prerequisites
Ensure Octagon MCP is configured in your AI agent (Cursor, Claude Desktop, Windsurf, etc.). See references/mcp-setup.md for installation instructions.
Workflow
1. Identify Parameters
Determine your query parameters:
- Date: Specific date for the data
- Exchange: NYSE, NASDAQ, etc.
- Sector: Technology, Healthcare, Financials, etc.
2. Execute Query via Octagon MCP
Use the octagon-agent tool with a natural language prompt:
Retrieve the latest sector P/E ratios for <DATE>, filtered by exchange <EXCHANGE> and sector <SECTOR>.
MCP Call Format:
{
"server": "octagon-mcp",
"toolName": "octagon-agent",
"arguments": {
"prompt": "Retrieve the latest sector P/E ratios for 2025-02-03, filtered by exchange NASDAQ and sector Technology."
}
}
3. Expected Output
The agent returns sector P/E data:
| Metric | Value |
|---|---|
| Sector | Technology |
| Exchange | NASDAQ |
| P/E Ratio | 58.77 |
| Date | 2025-02-03 |
Data Sources: octagon-stock-data-agent
4. Interpret Results
See references/interpreting-results.md for guidance on:
- Comparing company P/E to sector P/E
- Historical sector valuation context
- Cross-sector comparisons
- Exchange-specific analysis
Example Queries
Specific Sector and Exchange:
Retrieve the latest sector P/E ratios for 2025-02-03, filtered by exchange NASDAQ and sector Technology.
All Sectors on Exchange:
Get P/E ratios for all sectors on the NYSE.
Sector Comparison:
Compare P/E ratios for Technology, Healthcare, and Financials sectors.
Historical Trend:
What is the historical P/E trend for the Technology sector on NASDAQ?
Cross-Exchange:
Compare Technology sector P/E ratios on NYSE vs. NASDAQ.
Understanding P/E Ratios
Definition
P/E Ratio = Stock Price / Earnings Per Share
For sectors:
Sector P/E = Weighted Average P/E of all stocks in the sector
Types of P/E
| Type | Description |
|---|---|
| Trailing P/E | Based on past 12 months earnings |
| Forward P/E | Based on estimated future earnings |
| GAAP P/E | Using GAAP earnings |
| Non-GAAP P/E | Using adjusted earnings |
Sector Categories
Major Sectors
| Sector | Typical P/E Range |
|---|---|
| Technology | 25-60 |
| Healthcare | 18-35 |
| Financials | 10-18 |
| Consumer Discretionary | 15-30 |
| Consumer Staples | 18-25 |
| Industrials | 15-25 |
| Energy | 8-20 |
| Utilities | 15-22 |
| Real Estate | 30-50 |
| Materials | 12-20 |
| Communications | 15-25 |
P/E Characteristics by Sector
| Sector | P/E Tendency | Reason |
|---|---|---|
| Technology | Higher | Growth expectations |
| Financials | Lower | Mature, regulated |
| Utilities | Moderate | Stable, dividend-focused |
| Healthcare | Variable | Mix of growth/value |
Major Exchanges
Exchange Characteristics
| Exchange | Focus |
|---|---|
| NYSE | Large-cap, established |
| NASDAQ | Tech-heavy, growth |
| AMEX | Smaller companies, ETFs |
Exchange P/E Differences
| Factor | NYSE | NASDAQ |
|---|---|---|
| Tech Weight | Lower | Higher |
| Average P/E | Generally lower | Generally higher |
| Growth vs. Value | More balanced | Growth-tilted |
Using Sector P/E for Analysis
Company Valuation Context
| Comparison | Interpretation |
|---|---|
| Company P/E < Sector P/E | Potentially undervalued or issues |
| Company P/E = Sector P/E | Fairly valued relative to sector |
| Company P/E > Sector P/E | Premium valuation or overvalued |
Premium/Discount Calculation
Premium/Discount = (Company P/E - Sector P/E) / Sector P/E × 100%
Example
- Company P/E: 45
- Sector P/E: 58.77
- Discount: (45 - 58.77) / 58.77 = -23.4% (trading at discount)
Historical Context
Valuation Levels
| Sector P/E vs. History | Interpretation |
|---|---|
| Above 10-year average | Potentially elevated |
| At 10-year average | Normal valuation |
| Below 10-year average | Potentially attractive |
Cycle Considerations
| Phase | Typical Sector P/E Behavior |
|---|---|
| Early Recovery | Rising from lows |
| Mid-Cycle | Moderate, stable |
| Late Cycle | Often elevated |
| Recession | Compressed or distorted |
Cross-Sector Analysis
Relative Value
| Comparison | Use |
|---|---|
| Tech vs. Financials | Growth vs. value |
| Cyclical vs. Defensive | Risk appetite |
| High vs. Low P/E | Market expectations |
Rotation Signals
| Signal | Meaning |
|---|---|
| Tech P/E rising faster | Growth favored |
| Value sectors rising | Risk-off rotation |
| Convergence | Normalization |
| Divergence | Theme |
Установить sector-pe-ratios в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл sector-pe-ratios?
Retrieve sector P/E ratios using Octagon MCP. Use when comparing company valuations to sector benchmarks, analyzing sector valuations across exchanges, and understanding market-wide valuation trends.
Как установить скилл sector-pe-ratios?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sector-pe-ratios запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic