Dashboard

Sector allocation chart

GET/api/fund/chart/sectors

ETF Pro

Chart-ready sector allocation over time. Returns one series per top sector (by latest quarter weight), with portfolio weight values for each quarter. Sectors are derived from SIC codes of underlying holdings. 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/sectors?symbol=SPY&cik=884394&composite_figi=BBG000BDTBL9' \
  -H 'Authorization: Bearer YOUR_API_TOKEN'

Responses

200 OK

Sector 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 top sector, with portfolio weight values (%)

    array of:
    • name string
    • data array of number | null

Example response

{
  "periods": [
    "2025-03-31",
    "2025-06-30",
    "2025-09-30",
    "2025-12-31"
  ],
  "series": [
    {
      "name": "Technology",
      "data": [
        31.2,
        32.5,
        33.1,
        32.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

{}