{"repo":"yfiua/index-constituents","free":true,"listed":false,"github":"https://github.com/yfiua/index-constituents","clone":"git clone https://github.com/yfiua/index-constituents.git","description":"Get the current and historical constituents of popular stock indices.","language":"Python","stars":63,"topics":["quant","stock-indexes","stock-indices","stock-market","stock-data"],"license":"Apache-2.0","category":"trading","readme_excerpt":"index-constituents Get the current and historical constituents of popular stock indices. All symbols are consistent with those in Yahoo Finance. Supported indices Code Name Start Download :---------- :-------------------- :--------- :-------------------------------------------------------------------------------------------------------------------------------------------------------------- csi300 CSI 300 (沪深300) 2023/07 json / csv csi500 CSI 500 (中证500) 2024/02 json / csv csi1000 CSI 1000 (中证1000) 2025/04 json / csv sse SSE (上证综指) 2023/07 json / csv szse SZSE (深证成指) 2023/07 json / csv nasdaq100 NASDAQ 100 2023/07 json / csv sp500 S&P 500 2023/07 json / csv dowjones Dow Jones 2023/07 json / csv dax DAX 2023/07 json / csv hsi HSI (恒生指数) 2023/07 json / csv ftse100 FTSE 100 2023/07 json / csv ftsemib FTSE MIB 2024/03 json / csv Usage Direct download To get the current index constituents, use the links above. You probably have noticed the URLs have some pattern: Use in your program Using Python as an example: Build yourself Check requirements.txt . Run: Historical Tools A new script get-constituents-historical.py is included for \"time-traveling\" and backfilling data that was not previously archived in this repository. It uses the MediaWiki Revision API (for Wikipedia) and the Wayback Machine (for external sites). Example: Backfill NIFTY 50 data starting from 2008: Historical data To get the historical index constituents, use the following URL: By default we automatically update th","default_branch":null,"files":null,"tree":[],"storefront":"/r/yfiua","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yfiua/index-constituents/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}