Get Major World Stock Index Data
I manually listed Yahoo Finance symbols of all major world stock exchange indexes. Here's the list:
Symbol Name
0 ^GSPC S&P 500
1 ^DJI Dow 30
2 ^IXIC Nasdaq
3 ^NYA NYSE COMPOSITE (DJ)
4 ^XAX NYSE AMEX COMPOSITE INDEX
5 ^BUK100P Cboe UK 100
6 ^RUT Russell 2000
7 ^VIX CBOE Volatility Index
8 ^FTSE FTSE 100
9 ^GDAXI DAX PERFORMANCE-INDEX
10 ^FCHI CAC 40
11 ^STOXX50E ESTX 50 PR.EUR
12 ^N100 Euronext 100 Index
13 ^BFX BEL 20
14 IMOEX.ME MOEX Russia Index
15 ^N225 Nikkei 225
16 ^HSI HANG SENG INDEX
17 000001.SS SSE Composite Index
18 399001.SZ Shenzhen Component
19 ^STI STI Index
20 ^AXJO S&P/ASX 200
21 ^AORD ALL ORDINARIES
22 ^BSESN S&P BSE SENSEX
23 ^JKSE Jakarta Composite Index
24 ^KLSE FTSE Bursa Malaysia KLCI
25 ^NZ50 S&P/NZX 50 INDEX GROSS
26 ^KS11 KOSPI Composite Index
27 ^TWII TSEC weighted index
28 ^GSPTSE S&P/TSX Composite index
29 ^BVSP IBOVESPA
30 ^MXX IPC MEXICO
31 ^IPSA S&P/CLX IPSA
32 ^MERV MERVAL
Download data from Yahoo:
from yahoo_fin.stock_info import get_data
symbols = ['^GSPC', '^DJI', '^IXIC', '^NYA', '^XAX', '^BUK100P', '^RUT',
'^VIX', '^FTSE', '^GDAXI', '^FCHI', '^STOXX50E', '^N100', '^BFX',
'IMOEX.ME', '^N225', '^HSI', '000001.SS', '399001.SZ', '^STI',
'^AXJO', '^AORD', '^BSESN', '^JKSE', '^KLSE', '^NZ50', '^KS11',
'^TWII', '^GSPTSE', '^BVSP', '^MXX', '^IPSA', '^MERV']
names = ['S&P 500', 'Dow 30', 'Nasdaq', 'NYSE COMPOSITE (DJ)',
'NYSE AMEX COMPOSITE INDEX', 'Cboe UK 100', 'Russell 2000',
'CBOE Volatility Index', 'FTSE 100', 'DAX PERFORMANCE-INDEX',
'CAC 40', 'ESTX 50 PR.EUR', 'Euronext 100 Index', 'BEL 20',
'MOEX Russia Index', 'Nikkei 225', 'HANG SENG INDEX',
'SSE Composite Index', 'Shenzhen Component', 'STI Index',
'S&P/ASX 200', 'ALL ORDINARIES', 'S&P BSE SENSEX',
'Jakarta Composite Index', 'FTSE Bursa Malaysia KLCI',
'S&P/NZX 50 INDEX GROSS', 'KOSPI Composite Index',
'TSEC weighted index', 'S&P/TSX Composite index', 'IBOVESPA',
'IPC MEXICO', 'S&P/CLX IPSA', 'MERVAL']
end_date = "30/06/2020"
start_date = "'01/01/2000'"
qqq = get_data(
symbols[2],
start_date,
end_date,
index_as_date = True,
interval = "1d"
)