historyofmarket

Query 88 pre-generated JSON datasets of US stock market history since 1871.

Updated Aug 13, 2026
One-click install
npx skills add https://github.com/Martino17x/Sentinel-Invest --skill historyofmarket-martino17x
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: historyofmarket
Source: https://github.com/Martino17x/Sentinel-Invest/tree/main/.agents/skills/historyofmarket
Command: npx skills add https://github.com/Martino17x/Sentinel-Invest --skill historyofmarket-martino17x

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve? Accessing long-run historical US market data (S&P 500 since 1928, Shiller CAPE since 1871, drawdowns, constituents, sector ETFs) usually requires paid APIs, API keys, or fragmented sources. This Skill provides a single public API with 88 pre-generated static JSON datasets, no authentication, free CORS, and a CC BY 4.0 license. ## Core Features & Use Cases - Historical index data: Daily closes for S&P 500 (1928), Dow Jones (1914), Nasdaq Composite (1971), Nasdaq 100 (1985), SOX semiconductors (1994), plus XLK/XLF sector ETFs. - Valuation and risk analytics: Shiller CAPE since 1871, forward/trailing PE, EPS, ROE, driver decomposition (rerating vs revision), drawdowns with cause and recovery days, VIX/VXN, realized volatility. - Structure and macro: Current and historical S&P 500/Nasdaq 100 constituents, GICS 2018/2023 reclassifications, Magnificent 7 concentration and AI capex, NBER recessions, yield curve, AIAE. - Use Case: Reconstruct the S&P 500 membership as of 2020-01-01 by running the reconstitute_sp500.py script, which applies the changes.json history in reverse from today's constituents. ## Quick Start Ask the assistant to fetch the Shiller CAPE history from https://historyofmarket.com/api/sp500/pe.json and summarize the current valuation level versus historical ranges.

Frequently Asked Questions about historyofmarket

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get historical S&P 500 data without an API key?▼

Fetch pre-generated JSON directly from historyofmarket.com endpoints such as /api/sp500/century.json for daily closes since 1928. The API requires no key or authentication, allows free CORS, and is licensed CC BY 4.0.

How to reconstruct S&P 500 constituents at a past date?▼

Run scripts/reconstitute_sp500.py with a target date, for example py scripts/reconstitute_sp500.py 2020-01-01. It downloads current constituents and the changes history, then applies adds and removes in reverse to rebuild the membership list.

What is Shiller CAPE and where can I get its full history?▼

Shiller CAPE (PE10) divides real price by the 10-year average of real earnings to smooth the business cycle. The /api/sp500/pe.json dataset provides CAPE values back to 1871, one of the longest freely available series.

Does the historyofmarket API support custom query parameters?▼

No. All 88 datasets are static pre-generated JSON files without parameters like symbol or date range. You download the full dataset and filter locally; responses support ETag and cache headers for efficiency.

What data is available for the Magnificent 7 stocks?▼

Datasets cover an equal-weighted Mag 7 composite, S&P 500 concentration share since 2018, per-member drawdowns, 60-day rolling correlations, AI capex, AI valuation versus dot-com bands, and the Nifty Fifty to FANG to Mag 7 lineage.

What are the limitations of the historyofmarket datasets?▼

Coverage is limited to listed indices and ETFs: S&P 500, Nasdaq, Dow, SOX/SMH, XLK, XLF, and Mag 7. There is no Russell 2000, no parameterized queries, and S&P 500 change history only extends back to roughly 2022.