Free Index Historical Data API
Query cash and CFD index history for US and European benchmarks. Build session models, backtest index systems and compare volatility across markets.
Updated 2026-11-02 ? Data refreshed from the AlgoSpecial catalog.
Index symbols and timeframes
The index group contains 63 datasets across seven symbols: US500, USTEC, US30, UK100, STOXX50, JP225 and AUS200. Coverage starts in 2019 for most symbols and runs through 2026.
| Symbol | Index | API value |
|---|---|---|
| US500 | S&P 500 CFD | US500 |
| USTEC | Nasdaq 100 CFD | USTEC |
| US30 | Dow Jones CFD | US30 |
| UK100 | FTSE 100 CFD | UK100 |
| STOXX50 | Euro Stoxx 50 CFD | STOXX50 |
| JP225 | Nikkei 225 CFD | JP225 |
| AUS200 | ASX 200 CFD | AUS200 |
Index datasets support M1, M5, M15, M30, H1, H4, D1, W1 and MN1. Cash indices have exchange sessions, so overnight and weekend gaps are expected.
Index OHLC request
Use the same OHLC endpoint and pass the index symbol. The example below requests USTEC M15. Index prices are CFD values from the source broker, not official exchange settlement prices.
Index data quality
Index feeds can differ from official index values because they are CFD quotes from a broker. Use them for trading-system research, not as a replacement for licensed exchange data. The quality report checks duplicates, OHLC violations, gaps, outliers, flat bars and weekend bars.
Index API use cases
US session models
Test opening-range and momentum rules on US500 or USTEC.
Cross-index comparison
Compare volatility and correlation across US, UK, EU and Asia.
MT5 backtests
Export index bars for MT5 or a Python research pipeline.
Index API limits
The API is free with 60 requests per minute, 1,000 requests per day, 50,000 rows and 366 days per request. For a multi-year M1 index history, split the request by year.
Request examples
cURL - USTEC M15 JSON
curl "https://www.algospecial.com/api/ohlc.php?symbol=USTEC&tf=M15&from=2026-01-01&to=2026-03-31&format=json"
Python - US500 daily bars
import pandas as pd
import requests
params = {
"symbol": "US500",
"tf": "D1",
"from": "2024-01-01",
"to": "2025-12-31",
}
r = requests.get("https://www.algospecial.com/api/ohlc.php", params=params, timeout=30)
r.raise_for_status()
df = pd.DataFrame(r.json()["data"])
df["Timestamp"] = pd.to_datetime(df["Timestamp"])
print(df.head())
All timestamps are broker server time. Some legacy forex exports return 0 for TickVolume and Spread because those fields were not present in the source feed.
Indices API FAQ
Which indices are available?
US500, USTEC, US30, UK100, STOXX50, JP225 and AUS200.
Are these official exchange prices?
No. They are broker CFD quotes from the source feed. Use them for trading research, not as licensed exchange settlement data.
Why are there overnight gaps?
Cash index markets have exchange sessions. Overnight and weekend gaps are expected and are reported separately from unexpected data gaps.
Can I request multiple indices at once?
One request returns one symbol and timeframe. Make separate requests for each index and cache the results.
Is the index API free?
Yes, with the public limits of 60 requests per minute and 1,000 requests per day.
Choose the next useful step
Most visitors arrive with one question: build, test, price, or trust. These shortcuts keep the path practical.
Go deeper before you build, download or automate
Hand-picked engineering articles, indicator breakdowns and trading-system tools so visitors keep exploring instead of leaving after one page.
Pine Script to MT4/MT5 Conversion Planner
Analyze Pine strategies, repainting risk, TradingView alert bridges, MTF synchronization and the correct MQL4/MQL5 build path before paying for conversion.
Open planner
3-in-1 MT5 Indicator Bundle
12H Bias Engine, Smart Money Institutional Flow Dashboard and D1/H1 pending-signal logic with MQ5 + EX5 source included via Etsy.
MT5 Bank Orders Institutional Flow Dashboard
Supply/demand zones, BOS/CHoCH, liquidity levels, FVG, equal highs/lows and confirmed trade-plan logic explained with EX5 download.
MT5 Asia London NY Liquidity Engine
Asia range, London raid and New York continuation/reversal planning with internal session backtest stats and entry/SL/TP dashboard.
Interactive Brokers RSI Pair Trader
Tkinter desktop trading workflow, TWS API connection handling, RSI pair logic, risk controls and custom IBKR development positioning.
XAUUSD M30 CSV Data For Backtesting
Use clean MT5 historical data for Python backtests, strategy validation, spread checks and realistic gold EA research workflows.