Dashboard

Industry group allocation chart

GET/api/fund/chart/industry-groups

ETF Pro

Chart-ready industry group allocation over time. Returns one series per top industry group (by latest quarter weight), with portfolio weight values for each quarter. Industry groups are StockFit's 8 high-value classifications (Semiconductors, Software & SaaS, Pharma & Biotech, Aerospace & Defense, Automotive, Airlines, Oil & Gas, Fintech & Payments) derived from SIC codes of underlying holdings. Holdings that don't map to an industry group are excluded. Periods sorted ascending. Historical depth depends on subscription tier.

Get API key Try it live in the API explorer

Query parameters

Example request

curl 'https://api.stockfit.io/v1/api/fund/chart/industry-groups?symbol=SPY&cik=884394&composite_figi=BBG000BDTBL9' \
  -H 'Authorization: Bearer YOUR_API_TOKEN'

Responses

200 OK

Industry group allocation chart data with periods sorted ascending

Response schema

  • periods array of string

    Quarter-end dates sorted ascending

  • series array of object

    One series per industry group. Each entry has a `name` and `data` array parallel to `periods`.

    array of:
    • name string

      Industry group label

    • data array of number | null

      Portfolio weight percentage per period

Example response

{
  "periods": [
    "2025-03-31",
    "2025-06-30",
    "2025-09-30",
    "2025-12-31"
  ],
  "series": [
    {
      "name": "Semiconductors",
      "data": [
        18.5,
        19.2,
        20.1,
        19.8
      ]
    }
  ]
}

400 Bad Request

Symbol not found or not a fund (ETF or mutual fund)

Response schema

  • error string

    Human-readable error message

Example response

{}

403 Forbidden

Feature not available on current plan

Response schema

  • error string

    Human-readable error message

Example response

{}