Last active
August 30, 2025 09:00
-
-
Save scubamut/36cf1da3d7bf0a017712736ca8613391 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://www.ssga.com/us/en/individual/etfs/capabilities/sector-investing/sector-and-industry-etfs | |
| #SECTORS | |
| etfs = [ | |
| # ----------------------------------------- # | |
| # SPDRS/State Street Global Advisors (SSGA) | |
| 'XLY', # Select SPDR U.S. Consumer Discretionary | |
| 'XLP', # Select SPDR U.S. Consumer Staples | |
| 'XLE', # Select SPDR U.S. Energy | |
| 'XLF', # Select SPDR U.S. Financials | |
| 'XLV', # Select SPDR U.S. Healthcare | |
| 'XLI', # Select SPDR U.S. Industrials | |
| 'XLB', # Select SPDR U.S. Materials | |
| 'XLK', # Select SPDR U.S. Technology | |
| 'XLU', # Select SPDR U.S. Utilities | |
| 'XLRE', # Real Estate | |
| 'XLC', # Communication Services | |
| 'XLSR', # US Sector Rotation | |
| ] | |
| # INDUSTRIES | |
| etfs = [ | |
| 'RWR', # SPDR® Dow Jones® REIT ETF | |
| 'XNTK', # SPDR® NYSE Technology ETF | |
| 'XAR', # SPDR® S&P® Aerospace & Defense ETF | |
| 'KBE', # SPDR® S&P® Bank ETF | |
| 'XBI', # SPDR® S&P® Biotech ETF | |
| 'KCE', # SPDR® S&P® Capital Markets ETF | |
| 'XHE', # SPDR® S&P® Health Care Equipment ETF | |
| 'XHS', # SPDR® S&P® Health Care Services ETF | |
| 'XHB', # SPDR® S&P® Homebuilders ETF | |
| 'KIE', # SPDR® S&P® Insurance ETF | |
| 'XME', # SPDR® S&P® Metals & Mining ETF | |
| 'XES', # SPDR® S&P® Oil & Gas Equipment & Services ETF | |
| 'XOP', # SPDR® S&P® Oil & Gas Exploration & Production ETF | |
| 'XPH', # SPDR® S&P® Pharmaceuticals ETF | |
| 'KRE', # SPDR® S&P® Regional Banking ETF | |
| 'XRT', # SPDR® S&P® Retail ETF | |
| 'XSD', # SPDR® S&P® Semiconductor ETF | |
| 'XSW', # SPDR® S&P® Software & Services ETF | |
| 'XTL', # SPDR® S&P® Telecom ETF | |
| 'XTN', # SPDR® S&P® Transportation ETF | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| items = ['DBC', 'GLD', 'VTI', 'IEV', 'EWJ', 'EEM', 'ICF', 'RWX', 'IEF', 'TLT'] | |
| #11 asset universes | |
| universes= [items] | |
| for i in range(10): | |
| tmp = list(items) | |
| # print(tmp[i]) | |
| del tmp[i] | |
| # print(tmp) | |
| universes = universes+[tmp] | |
| universes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ETF_UNIVERSE = { | |
| 'Technology': ['XLK', 'VGT', 'FTEC', 'IYW', 'SOXX'], | |
| 'Healthcare': ['XLV', 'VHT', 'IYH', 'FHLC', 'IBB'], | |
| 'Financials': ['XLF', 'VFH', 'IYF', 'FNCL', 'KRE'], | |
| 'Energy': ['XLE', 'VDE', 'IYE', 'FENY', 'OIH'], | |
| 'Consumer Discretionary': ['XLY', 'VCR', 'IYC', 'FDIS', 'RTH'], | |
| 'Consumer Staples': ['XLP', 'VDC', 'IYK', 'FSTA', 'KXI'], | |
| 'Industrials': ['XLI', 'VIS', 'IYJ', 'FIDU', 'ITA'], | |
| 'Real Estate': ['XLRE', 'VNQ', 'IYR', 'FREL', 'RWR'], | |
| 'Utilities': ['XLU', 'VPU', 'IDU', 'FUTY', 'PUI'], | |
| 'Materials': ['XLB', 'VAW', 'IYM', 'FMAT', 'RTM'], | |
| 'Communication': ['XLC', 'VOX', 'IYZ', 'FCOM'], | |
| 'Broad Market': ['SPY', 'QQQ', 'IWM', 'VTI', 'VOO'] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment