Skip to main content

This skill may not reflect the latest upstream change

Next.js Releases update on 2026-11-09 may affect this skill Last checked Nov 25, 2026.

BuildAI reviewed Jul 21, 2026

historical-market-cap

Retrieve historical market capitalization data for any stock using Octagon MCP. Use when tracking market cap changes over time, analyzing valuation trends, identifying peak and trough valuations, and comparing historical size classifications.

v1.0.01 install

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install octagon-finance-historical-market-cap
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/octagon-finance-historical-market-cap/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

Historical Market Cap

Retrieve historical market capitalization data over a specified date range 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:

  • Ticker: Stock symbol (e.g., AAPL, MSFT)
  • Start Date: Beginning of date range
  • End Date: End of date range
  • Limit (optional): Maximum records to return

2. Execute Query via Octagon MCP

Use the octagon-agent tool with a natural language prompt:

Retrieve historical market capitalization data for <TICKER> from <START_DATE> to <END_DATE>, limited to <LIMIT> records.

MCP Call Format:

{
  "server": "octagon-mcp",
  "toolName": "octagon-agent",
  "arguments": {
    "prompt": "Retrieve historical market capitalization data for AAPL from 2025-01-01 to 2025-04-30, limited to 1000 records."
  }
}

3. Expected Output

The agent returns daily market cap values:

DateMarket Cap (USD)
2025-04-30$3.17 trillion
2025-02-25$3.70 trillion (High)
2025-04-08$2.57 trillion (Low)
......

Summary Statistics:

  • Highest: $3.70 trillion on 2025-02-25
  • Lowest: $2.57 trillion on 2025-04-08
  • Most Recent: $3.17 trillion on 2025-04-30

Data Sources: octagon-stock-data-agent

4. Interpret Results

See references/interpreting-results.md for guidance on:

  • Analyzing market cap trends
  • Calculating growth rates
  • Identifying peaks and troughs
  • Understanding volatility

Example Queries

Standard Date Range:

Retrieve historical market capitalization data for AAPL from 2025-01-01 to 2025-04-30, limited to 1000 records.

Full Year:

Get historical market cap for MSFT for the entire year 2024.

Quarterly Analysis:

Show TSLA's market cap history for Q1 2025.

Multi-Year Trend:

Retrieve market cap history for NVDA from 2020 to 2025.

Peak Analysis:

When did AAPL reach its highest market cap in 2024?

Understanding Market Cap History

What the Data Shows

MetricDescription
Daily Market CapEnd-of-day value
Date SeriesTrading days only
CalculationPrice × Shares Outstanding
AdjustmentsSplit-adjusted shares

Key Statistics

StatisticPurpose
MaximumPeak valuation
MinimumTrough valuation
AverageTypical valuation
RangeVolatility indicator

Trend Analysis

Calculating Changes

MetricFormula
Absolute ChangeEnd Cap - Start Cap
Percentage Change(End - Start) / Start × 100%
CAGR(End/Start)^(1/years) - 1

Example Calculation

From the AAPL data:

  • High: $3.70T (Feb 25)
  • Low: $2.57T (Apr 8)
  • Range: $1.13T
  • Peak-to-Trough: -30.5%

Trend Patterns

PatternCharacteristics
UptrendHigher highs, higher lows
DowntrendLower highs, lower lows
ConsolidationRange-bound
V-RecoverySharp decline, sharp recovery
Rounded TopGradual peak formation

Period Analysis

Daily Analysis

Use CaseFocus
TradingShort-term moves
VolatilityDay-to-day changes
EventsCatalyst impact

Weekly/Monthly Analysis

Use CaseFocus
TrendsDirection over time
ComparisonsPeriod-over-period
SmoothingReduce noise

Annual Analysis

Use CaseFocus
GrowthLong-term trajectory
MilestonesMajor achievements
CAGRCompound growth

Volatility Assessment

Measuring Volatility

MetricCalculation
RangeHigh - Low
Range %(High - Low) / Average
Daily MovesAverage daily change
Standard DeviationPrice dispersion

Volatility Interpretation

Range %Volatility
<20%Low
20-40%Moderate
40-60%High
>60%Very High

Example

From AAPL data:

  • High: $3.70T
  • Low: $2.57T
  • Range: $1.13T
  • Range %: ~35%
  • Interpretation: Moderate-high volatility

Peak and Trough Analysis

Identifying Peaks

SignalDescription
All-time HighHighest ever
Period HighHighest in range
Local PeakTemporary high

Identifying Troughs

SignalDescription
All-time LowLowest ever
Period LowLowest in range
Local TroughTemporary low

Peak-to-Trough Metrics

MetricPurpose
Drawdown %Decline from peak
Recovery TimeDays to recover
Drawdown DurationPeak to trough time

Size Classification Over Time

Tracking Category Changes

If Market Cap...Classification
>$200BMega-cap
$10B-$200BLarge-cap
$2B-$10BMid-cap
$300M-$2BSmall-cap

Milestone Analysis

MilestoneSignificance
First $1THistoric achievement
Crossed $2TElite status
Crossed $3TWorld's most valuable

Comparative Analysis

Same Company Over Time

ComparisonPurpose
YoYYear-over-year growth
QoQQuarterly momentum
MoMMonthly trends

Multiple Companies

ComparisonPurpose
Relative SizeMarket position
Relative GrowthPerformance comparison
CorrelationMovement similarity

Common Use Cases

Trend Analysis

How has AAPL's market cap changed over the past year?

Peak Finding

When did TSLA reach its highest market cap?

Drawdown Analysis

What was NVDA's biggest decline from peak in 2024?

Milestone Tracking

When did MSFT first cross $3 trillion market cap?

Comparison

Compare the market cap growth of AAPL and MSFT over 5 years.

Analysis Tips

  1. Use appropriate timeframes: Match analysis to investment horizon.

  2. Identify catalysts: Major moves often have drivers.

  3. Consider splits: Ensure data is split-adjusted.

  4. Watch for milestones: Round numbers are psychologically important.

  5. Calculate drawdowns: Understand downside risk.

  6. Compare to benchmarks: Market cap vs. index performance.

Integration with Other Skills

SkillCombined Use
company-market-capCurrent vs. historical
stock-performancePrice driving cap changes
income-statementEarnings supporting cap
financial-metrics-analysisValuation evolution
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →

More from Octagon Finance

View source →

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.638 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.539 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.349 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.249 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.177 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions146 installs

Frequently asked questions about historical-market-cap

What does the historical-market-cap skill do?

Retrieve historical market capitalization data for any stock using Octagon MCP. Use when tracking market cap changes over time, analyzing valuation trends, identifying peak and trough valuations, and comparing historical size classifications. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the historical-market-cap skill?

Run `npx @skills-hub-ai/cli install octagon-finance-historical-market-cap` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/octagon-finance-historical-market-cap/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does historical-market-cap work with?

historical-market-cap runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the historical-market-cap skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use historical-market-cap after installing it?

In Claude Code, type `/octagon-finance-historical-market-cap` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the historical-market-cap skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.