Skip to content
Market History

Global stock market historical data API

Two datasets hold global stock market historical data: the major indices of each region, and large stocks listed outside the US.

Dataset What Stored First bar
indices/global 21 indices: US, European and Asian stocks 1m, 1h 2011-09-18
stocks/global Large stocks listed outside the US: 90 today 1m, 1h 2015-06-16

First bar and counts are as served on 2026-11-10; /api/v1/stats gives the live ones. For US-listed stocks see US stock market data.

No key, the newest 100 daily bars of the S&P 500 and of Toyota:

Terminal window
curl https://getmarkethistory.com/api/v1/bars/indices/global/USA500.IDX/1d
curl https://getmarkethistory.com/api/v1/bars/stocks/global/7203.JP/1d

With a key, one month of the Nikkei 225 at one minute, as CSV:

Terminal window
curl "https://getmarkethistory.com/query/v1/bars/indices/global/JPN.IDX/1m?start=2024-01-01&end=2024-01-31&format=csv" \
-H "Authorization: Bearer $MARKET_HISTORY_KEY"

From Python, with the client:

from markethistory import Client
mh = Client() # reads MARKET_HISTORY_KEY
dax = mh.frame("indices/global", "DEU.IDX", "1h", start="2020-01-01")

Columns: timestamp (bar open, UTC), open, high, low, close, volume, vwap, trade_count. A minute with no quote has no bar.

The S&P 500 (USA500.IDX), Nasdaq 100 (USATECH.IDX), Dow (USA30.IDX), Russell 2000 (USSC2000.IDX), the dollar index (DOLLAR.IDX), DAX (DEU.IDX), CAC 40 (FRA.IDX), FTSE 100 (GBR.IDX), Euro Stoxx 50 (EUS.IDX), Nikkei 225 (JPN.IDX), Hang Seng (HKG.IDX), ASX 200 (AUS.IDX), SMI (CHE.IDX) and more, each in its own currency. The S&P 500, Nasdaq 100, Nikkei, FTSE, CAC and SMI start in September 2011; the others later.

Large stocks listed in Tokyo (.JP), Hong Kong (.HK), London (.GB, priced in pence), Zurich (.CH), Paris (.FR), Madrid (.ES), Milan (.IT) and Brussels (.BE), each priced in its listing currency. Tickers are the local code plus the market: 7203.JP is Toyota, 0700.HK Tencent. The dataset is still being backfilled one stock at a time, so the list grows by a few a night; /api/v1/symbols?dataset=stocks/global&timeframe=1m lists those served today with their first and last bar, and Client().instrument("stocks/global", "7203.JP") gives one stock’s name, currency and range.

No. Both datasets are SWFX CFD quotes, on contracts that track the underlying, not the underlying exchanges’ prices: one-minute bid OHLC. volume is quoted volume, not exchange volume; trade_count is 0 and vwap is null. Index quotes run around the clock, not only in exchange hours, and a 1d bar is a day of the underlying’s exchange, from its local midnight (tz=venue for the quoting venue’s 17:00 New York day, tz=UTC for UTC days; Bars). Datasets has the details.

stocks/ru holds every share traded on Russia’s main stock board since December 2011, delisted ones included, plus the IMOEX index, as one-minute bars in roubles. See Datasets.

Daily: the previous UTC day is published by about 07:00 UTC.

One bar is one bar. The keyless sample serves the newest 100 daily bars, and a free account’s monthly bars pay for 1h and longer over the full history. Toyota’s whole hourly history is 11,781 bars; at one minute it is 542,074, inside the smallest purchase (1M bars, $5). See Limits & billing.