Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

US Stocks Dataset

Last updated: 2026-06-25.

A comprehensive, ready-to-use dataset of 5,000+ US-listed stocks with company profiles, industry classifications, custom industry icons, and company logos.

This kind of all-in-one, immediately usable stock dataset is surprisingly hard to find online — so here it is.

What's Included

Resource Count Description
Stock Profiles 5,000 Symbol, name, market cap, price, sector, industry, exchange, beta, description
Industry Icons 63 Custom PNG icons for visual industry categorization
Company Logos 3,061 Ticker-named PNGs (e.g., AAPL.png, TSLA.png)
Icon Mappings 2,873 CSV mapping stocks to their industry icon
Full CSV ~2,800 Extended data with PE ratio, analyst recs, 52-week range, float, volume

Quick Start

import json

with open("data/stocks_enriched.json") as f:
    data = json.load(f)

for stock in data["stocks"][:5]:
    print(f"{stock['symbol']:6} {stock['name']:40} ${stock['marketCap']:>15,}")

Data Files

data/stocks_enriched.json

The main dataset — 5,000 stocks enriched with icon/logo availability flags.

{
  "symbol": "NVDA",
  "name": "NVIDIA Corporation",
  "marketCap": 4306603081728,
  "price": 177.19,
  "sector": "Technology",
  "industry": "Semiconductors",
  "aiRevGroup": "semiconductor",
  "exchange": "NMS",
  "beta": 2.314,
  "description": "NVIDIA Corporation provides graphics...",
  "industry_icon": "semiconductor.png",
  "has_logo": true
}

data/stocks_compact.json

Lightweight version (422 KB) — symbol, name, market cap, price, sector group.

data/stocks_full.csv

Extended CSV with PE ratio, average volume, float shares, analyst recommendations, 52-week high/low, address, phone, homepage URL.

data/stock_icon_mapping.csv

Maps 2,873 stock symbols to their industry icon filename.

symbol,icon_filename
AAPL,computers.png
NVDA,semiconductor.png
JPM,bank.png

Icons

Industry Icons (industry-icons/)

63 custom PNG icons covering all major sectors:

aerospace agriculture apparel automotive bank beverage biotech chemicals cloud communication computers construction consumer dna ecommerce education energy entertainment ev finance food gaming healthcare hospitality industrial insurance internet logistics manufacturing maritime-shipping media military mining movies oil pharma rawmaterials realestate renewableenergy research restaurant retail semiconductor shipping-land-air-and-sea software solar sports telecom transportation trucking tv utilities and more.

Company Logos (company-logos/)

3,061 company logos as PNGs, named by ticker symbol (e.g., AAPL.png, MSFT.png, GOOGL.png).

Data Sources

  • SEC EDGAR — Company filings, SIC codes, addresses
  • Yahoo Finance — Market data, beta, PE ratios, analyst recommendations
  • Polygon.io — Ticker details, descriptions, market cap

Scripts

The scripts/ folder contains Python scripts used for data collection and processing, including:

  • categstox.py — Industry categorization logic
  • getstocksinfoYAHOO.py — Yahoo Finance data enrichment
  • matchiconsandstocks.py — Icon-to-stock matching algorithm
  • extract-symbols.py — Symbol extraction from SEC data
  • fixmissingslugs.py — Data cleanup utilities

Use Cases

  • Financial dashboards — Drop-in stock data with icons and logos
  • Portfolio trackers — Complete company profiles
  • Market analysis — Sector/industry breakdowns
  • Trading apps — Visual stock representations
  • AI/ML training data — Structured financial company data
  • Educational tools — Stock market exploration

Related

License

Data sourced from public SEC filings and financial APIs. Icons and logos are provided for informational/educational use.

About

5,000+ US stocks with profiles, 63 industry icons, 3,000+ company logos, and sector mappings

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages