Stock Historical Index

Retrieve full historical end-of-day price data for market indices using Octagon MCP. Use when analyzing index performance over time, tracking market trends, calculating returns, and understanding market context for individual stock analysis.

132 stars 14 forksFinance & Crypto

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add OctagonAI/skills --skill stock-historical-index
Manual install
git clone --depth 1 https://github.com/OctagonAI/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/skills/stock-historical-index ~/.claude/skills/stock-historical-index

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Stock Historical Index

Retrieve full historical end-of-day price data for market indices 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](references/mcp-setup.md) for installation instructions.

## Workflow

### 1. Identify Parameters

Determine your query parameters:
- **Index Symbol**: ^GSPC (S&P 500), ^DJI (Dow), ^IXIC (NASDAQ), etc.
- **Start Date**: Beginning of date range
- **End Date**: End of date range

### 2. Execute Query via Octagon MCP

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

```
Retrieve full historical end-of-day price data for the <INDEX> index from <START_DATE> to <END_DATE>.
```

**MCP Call Format:**

```json
{
  "server": "octagon-mcp",
  "toolName": "octagon-agent",
  "arguments": {
    "prompt": "Retrieve full historical end-of-day price data for the ^GSPC index from 2025-01-01 to 2025-04-30."
  }
}
```

### 3. Expected Output

The agent returns comprehensive daily index data:

| Date | Open | High | Low | Close | Volume | Change | Change % | VWAP |
|------|------|------|-----|-------|--------|--------|----------|------|
| 2025-04-30 | 5,499.44 | 5,581.84 | 5,433.24 | 5,569.07 | 5.45B | +69.63 | +1.27% | 5,520.90 |
| 2025-04-29 | 5,508.87 | 5,571.95 | 5,505.70 | 5,560.82 | 4.75B | +51.95 | +0.94% | 5,536.84 |
| ... | ... | ... | ... | ... | ... | ... | ... | ... |

**Key Statistics**:
Read the full skill on GitHub

Details

Skill name
stock-historical-index
Path
skills/stock-historical-index/SKILL.md
License
MIT
Repo updated
5 June 2026

FAQ

What does the Stock Historical Index skill do?

Retrieve full historical end-of-day price data for market indices using Octagon MCP. Use when analyzing index performance over time, tracking market trends, calculating returns, and understanding market context for individual stock analysis.

How do I install the Stock Historical Index skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add OctagonAI/skills --skill stock-historical-index. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Stock Historical Index popular?

It lives in OctagonAI/skills, which has 132 GitHub stars and 14 forks.

Related skills

Analyst Estimates

132

OctagonAI/skills

Retrieve analyst financial estimates including Revenue and EPS projections with low/high ranges and analyst coverage. Use when analyzing forward expectations, consensus estimates, valuation inputs, or comparing projections to historical performance.

Finance & Crypto14

Balance Sheet

132

OctagonAI/skills

Retrieve detailed balance sheet statement data including Total Assets, Current Assets, Non-Current Assets, Liabilities, Equity, and Net Debt for public companies. Use when analyzing financial position, capital structure, or leverage metrics.

Finance & Crypto14

Balance Sheet Growth

132

OctagonAI/skills

Retrieve year-over-year growth in balance sheet items including Total Assets, Total Liabilities, Shareholders Equity, Cash, and Inventories. Use when analyzing company financial position trends, capital structure changes, or liquidity management.

Marketing, Sales & Business14

Stock Performance

132

OctagonAI/skills

Retrieve stock price data and performance metrics using Octagon MCP. Use when analyzing daily closing prices, trading volume, price trends, historical performance, and comparing stock movements over specific time periods.

Finance & Crypto14

Stock Grades

132

OctagonAI/skills

Retrieve the latest stock grades and ratings from top analysts and financial institutions using Octagon MCP. Use when tracking analyst upgrades, downgrades, rating changes, and institutional sentiment over time.

Finance & Crypto14

Stock Price Change

132

OctagonAI/skills

Retrieve stock price change statistics across multiple time periods using Octagon MCP. Use when analyzing short-term and long-term returns, comparing performance across timeframes, and evaluating momentum and historical growth.

Finance & Crypto14

Browse the most popular Claude skills, all finance & crypto skills, or write your own with the skills generator.