Last active
June 20, 2018 20:29
-
-
Save MichaelJMath/6b61ef3f2dc99a34e99efc8412469598 to your computer and use it in GitHub Desktop.
Quantopian Morningstar Sector Codes
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
MORNINGSTAR_SECTOR_CODES = { | |
-1: 'Misc', | |
101: 'Basic Materials', | |
102: 'Consumer Cyclical', | |
103: 'Financial Services', | |
104: 'Real Estate', | |
205: 'Consumer Defensive', | |
206: 'Healthcare', | |
207: 'Utilities', | |
308: 'Communication Services', | |
309: 'Energy', | |
310: 'Industrials', | |
311: 'Technology' , | |
} | |
MORNINGSTAR_INDUSTRY_GROUP_CODES = {31169: 'Semiconductors', 31168: 'Online Media', 31167: 'Computer Hardware', 31166: 'Communication Equipment', 31165: 'Application Software', 31064: 'Waste Management', 31063: 'Truck Manufacturing', 31062: 'Transportation & Logistics', 31061: 'Industrial Products', 31060: 'Industrial Distribution', 31059: 'Farm & Construction Machinery', 31058: 'Engineering & Construction', 31057: 'Employment Services', 31056: 'Consulting & Outsourcing', 31055: 'Conglomerates', 31054: 'Business Services', 31053: 'Airlines', 31052: 'Aerospace & Defense', 30951: 'Oil & Gas - Services', 30950: 'Oil & Gas - Refining & Marketing', 30949: 'Oil & Gas - Midstream', 30948: 'Oil & Gas - Integrated', 30947: 'Oil & Gas - E&P', 30946: 'Oil & Gas - Drilling', 30845: 'Communication Services', 20744: 'Utilities - Regulated', 20743: 'Utilities - Independent Power Producers', 20642: 'Medical Instruments & Equipment', 20641: 'Medical Distribution', 20640: 'Medical Diagnostics & Research', 20639: 'Medical Devices', 20638: 'Health Care Providers', 20637: 'Health Care Plans', 20636: 'Drug Manufacturers', 20635: 'Biotechnology', 20534: 'Tobacco Products', 20533: 'Retail - Defensive', 20532: 'Education', 20531: 'Consumer Packaged Goods', 20530: 'Beverages - Non-Alcoholic', 20529: 'Beverages - Alcoholic', 10428: 'REITs', 10427: 'Real Estate Services', 10326: 'Insurance - Specialty', 10325: 'Insurance - Property & Casualty', 10324: 'Insurance - Life', 10323: 'Insurance', 10322: 'Credit Services', 10321: 'Brokers & Exchanges', 10320: 'Banks', 10319: 'Asset Management', 10218: 'Travel & Leisure', 10217: 'Retail - Apparel & Specialty', 10216: 'Restaurants', 10215: 'Publishing', 10214: 'Personal Services', 10213: 'Packaging & Containers', 10212: 'Manufacturing - Apparel & Furniture', 10211: 'Homebuilding & Construction', 10210: 'Entertainment', 10209: 'Autos', 10208: 'Advertising & Marketing Services', 10107: 'Steel', 10106: 'Metals & Mining', 10105: 'Forest Products', 10104: 'Coal', 10103: 'Chemicals', 10102: 'Building Materials', 10101: 'Agriculture', | |
} | |
MORNINGSTAR_INDUSTRY_CODES = {31064129: 'Waste Management', 20744098: 'Utilities - Regulated Water', 20744097: 'Utilities - Regulated Gas', 20744096: 'Utilities - Regulated Electric', 20743094: 'Utilities - Independent Power Producers', 20744095: 'Utilities - Diversified', 31062127: 'Trucking', 31063128: 'Truck Manufacturing', 31061122: 'Tools & Accessories', 20534083: 'Tobacco', 10211025: 'Textile Manufacturing', 30845100: 'Telecom Services', 10107013: 'Steel', 31057113: 'Staffing & Outsourcing Services', 10217037: 'Specialty Retail', 10320052: 'Specialty Finance', 10103004: 'Specialty Chemicals', 31169148: 'Solar', 31165134: 'Software - Infrastructure', 31165133: 'Software - Application', 10106012: 'Silver', 31062126: 'Shipping & Ports', 31169147: 'Semiconductors', 31169146: 'Semiconductor Memory', 31169145: 'Semiconductor Equipment & Materials', 31056112: 'Security & Protection Services', 31167143: 'Scientific & Technical Instruments', 10320051: 'Savings & Cooperative Banks', 10209020: 'Rubber & Plastics', 10216032: 'Restaurants', 10218041: 'Resorts & Casinos', 10211024: 'Residential Construction', 31056111: 'Rental & Leasing Services', 10428070: 'REIT - Retail', 10428069: 'REIT - Residential', 10428068: 'REIT - Office', 10428067: 'REIT - Industrial', 10428066: 'REIT - Hotel & Motel', 10428065: 'REIT - Healthcare Facilities', 10428064: 'REIT - Diversified', 10209019: 'Recreational Vehicles', 10427063: 'Real Estate Services', 10427062: 'Real Estate - General', 31062125: 'Railroads', 10215031: 'Publishing', 31061121: 'Pollution & Treatment Controls', 20533080: 'Pharmaceutical Retailers', 10214030: 'Personal Services', 30845099: 'Pay TV', 10105007: 'Paper & Paper Products', 10213029: 'Packaging & Containers', 20531077: 'Packaged Foods', 30950105: 'Oil & Gas Refining & Marketing', 30949104: 'Oil & Gas Midstream', 30948103: 'Oil & Gas Integrated', 30951106: 'Oil & Gas Equipment & Services', 30947102: 'Oil & Gas E&P', 30946101: 'Oil & Gas Drilling', 31061120: 'Metal Fabrication', 20642093: 'Medical Instruments & Supplies', 20641092: 'Medical Distribution', 20639090: 'Medical Devices', 20638089: 'Medical Care', 10210023: 'Media - Diversified', 10208015: 'Marketing Services', 10217036: 'Luxury Goods', 10105006: 'Lumber & Wood Production', 20638088: 'Long-Term Care Facilities', 10218040: 'Lodging', 10218039: 'Leisure', 31168144: 'Internet Content & Information', 31062124: 'Integrated Shipping & Logistics', 10321055: 'Insurance Brokers', 10326061: 'Insurance - Specialty', 10326060: 'Insurance - Reinsurance', 10325059: 'Insurance - Property & Casualty', 10324058: 'Insurance - Life', 10323057: 'Insurance - Diversified', 31058115: 'Infrastructure Operations', 31165132: 'Information Technology Services', 10106011: 'Industrial Metals & Minerals', 31060117: 'Industrial Distribution', 20531076: 'Household & Personal Products', 10217035: 'Home Improvement Stores', 10212028: 'Home Furnishings & Fixtures', 31165131: 'Health Information Services', 20637087: 'Health Care Plans', 20533082: 'Grocery Stores', 10106010: 'Gold', 10218038: 'Gambling', 10212027: 'Footwear & Accessories', 20533081: 'Food Distribution', 10321054: 'Financial Exchanges', 20531075: 'Farm Products', 31059116: 'Farm & Construction Equipment', 31058114: 'Engineering & Construction', 31167142: 'Electronics Distribution', 31165130: 'Electronic Gaming & Multimedia', 31167141: 'Electronic Components', 20532078: 'Education & Training Services', 20636086: 'Drug Manufacturers - Specialty & Generic', 20636085: 'Drug Manufacturers - Major', 31061119: 'Diversified Industrials', 20533079: 'Discount Stores', 20640091: 'Diagnostics & Research', 10217034: 'Department Stores', 31167140: 'Data Storage', 10322056: 'Credit Services', 10106009: 'Copper', 31167139: 'Contract Manufacturers', 31167138: 'Consumer Electronics', 31055110: 'Conglomerates', 20531074: 'Confectioners', 31167137: 'Computer Systems', 31167136: 'Computer Distribution', 31166135: 'Communication Equipment', 10104005: 'Coal', 10103003: 'Chemicals', 10321053: 'Capital Markets', 31054109: 'Business Services', 31061118: 'Business Equipment', 10102002: 'Building Materials', 10210022: 'Broadcasting - TV', 10210021: 'Broadcasting - Radio', 20635084: 'Biotechnology', 20529072: 'Beverages - Wineries & Distilleries', 20530073: 'Beverages - Soft Drinks', 20529071: 'Beverages - Brewers', 10320050: 'Banks - Regional - US', 10320049: 'Banks - Regional - Latin America', 10320048: 'Banks - Regional - Europe', 10320047: 'Banks - Regional - Canada', 10320046: 'Banks - Regional - Australia', 10320045: 'Banks - Regional - Asia', 10320044: 'Banks - Regional - Africa', 10320043: 'Banks - Global', 10209018: 'Auto Parts', 10209017: 'Auto Manufacturers', 10209016: 'Auto & Truck Dealerships', 10319042: 'Asset Management', 10217033: 'Apparel Stores', 10212026: 'Apparel Manufacturing', 10106008: 'Aluminum', 31062123: 'Airports & Air Services', 31053108: 'Airlines', 10101001: 'Agricultural Inputs', 31052107: 'Aerospace & Defense', 10208014: 'Advertising Agencies', | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment