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.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "sector-pe-ratios" with this command: npx skills add octagonai/skills/octagonai-skills-sector-pe-ratios

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:

MetricValue
SectorTechnology
ExchangeNASDAQ
P/E Ratio58.77
Date2025-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

TypeDescription
Trailing P/EBased on past 12 months earnings
Forward P/EBased on estimated future earnings
GAAP P/EUsing GAAP earnings
Non-GAAP P/EUsing adjusted earnings

Sector Categories

Major Sectors

SectorTypical P/E Range
Technology25-60
Healthcare18-35
Financials10-18
Consumer Discretionary15-30
Consumer Staples18-25
Industrials15-25
Energy8-20
Utilities15-22
Real Estate30-50
Materials12-20
Communications15-25

P/E Characteristics by Sector

SectorP/E TendencyReason
TechnologyHigherGrowth expectations
FinancialsLowerMature, regulated
UtilitiesModerateStable, dividend-focused
HealthcareVariableMix of growth/value

Major Exchanges

Exchange Characteristics

ExchangeFocus
NYSELarge-cap, established
NASDAQTech-heavy, growth
AMEXSmaller companies, ETFs

Exchange P/E Differences

FactorNYSENASDAQ
Tech WeightLowerHigher
Average P/EGenerally lowerGenerally higher
Growth vs. ValueMore balancedGrowth-tilted

Using Sector P/E for Analysis

Company Valuation Context

ComparisonInterpretation
Company P/E < Sector P/EPotentially undervalued or issues
Company P/E = Sector P/EFairly valued relative to sector
Company P/E > Sector P/EPremium 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. HistoryInterpretation
Above 10-year averagePotentially elevated
At 10-year averageNormal valuation
Below 10-year averagePotentially attractive

Cycle Considerations

PhaseTypical Sector P/E Behavior
Early RecoveryRising from lows
Mid-CycleModerate, stable
Late CycleOften elevated
RecessionCompressed or distorted

Cross-Sector Analysis

Relative Value

ComparisonUse
Tech vs. FinancialsGrowth vs. value
Cyclical vs. DefensiveRisk appetite
High vs. Low P/EMarket expectations

Rotation Signals

SignalMeaning
Tech P/E rising fasterGrowth favored
Value sectors risingRisk-off rotation
ConvergenceNormalization
DivergenceTheme-driven market

Data Considerations

Timing

FactorConsideration
Earnings seasonP/E updates with new earnings
Price movementsDaily fluctuation
Index rebalancingComposition changes

Calculation Differences

SourceMay Differ On
WeightingMarket-cap vs. equal
EarningsTrailing vs. forward
ConstituentsIndex composition

Common Use Cases

Stock Valuation

Is AAPL's P/E reasonable compared to the Technology sector?

Sector Selection

Which sectors have the lowest P/E ratios currently?

Market Timing

Are Technology sector valuations elevated compared to history?

Portfolio Analysis

How do my holdings' P/E ratios compare to their sectors?

Analysis Tips

  1. Compare apples to apples: Same sector, similar companies.

  2. Consider growth: High P/E may be justified by high growth.

  3. Check historical range: Current vs. typical levels.

  4. Look at earnings quality: P/E only as good as earnings.

  5. Cross-reference exchanges: Same sector, different exchanges.

  6. Watch for outliers: Negative earnings distort averages.

Integration with Other Skills

SkillCombined Use
financial-metrics-analysisCompany P/E vs. sector
income-statementEarnings driving P/E
stock-quoteCurrent price context
analyst-estimatesForward P/E calculation

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

commodities-quote

No summary provided by upstream source.

Repository SourceNeeds Review
General

stock-quote

No summary provided by upstream source.

Repository SourceNeeds Review
General

forex-list

No summary provided by upstream source.

Repository SourceNeeds Review
General

market-analyst-master

No summary provided by upstream source.

Repository SourceNeeds Review