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.
Sample request
Section titled “Sample request”No key, the newest 100 daily bars of the S&P 500 and of Toyota:
curl https://getmarkethistory.com/api/v1/bars/indices/global/USA500.IDX/1dcurl https://getmarkethistory.com/api/v1/bars/stocks/global/7203.JP/1dWith a key, one month of the Nikkei 225 at one minute, as CSV:
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_KEYdax = 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.
Which stock indices are there?
Section titled “Which stock indices are there?”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.
Which international stocks are there?
Section titled “Which international stocks are there?”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.
Are these exchange prints?
Section titled “Are these exchange prints?”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.
What about Russian stocks?
Section titled “What about Russian stocks?”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.
How fresh is it?
Section titled “How fresh is it?”Daily: the previous UTC day is published by about 07:00 UTC.
How much does it cost?
Section titled “How much does it cost?”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.