> ## Documentation Index
> Fetch the complete documentation index at: https://docs.psxdata.org/llms.txt
> Use this file to discover all available pages before exploring further.

# List Sectors



## OpenAPI

````yaml /openapi.json get /sectors
openapi: 3.1.0
info:
  title: psxdata
  version: 0.8.0
servers:
  - url: https://psxdata-api.fastapicloud.dev
security: []
paths:
  /sectors:
    get:
      tags:
        - sectors
      summary: List Sectors
      operationId: list_sectors_sectors_get
      parameters:
        - name: X-PSX-Proxy
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Optional proxy for this request's PSX traffic: http://, socks5://
              or socks5h://, with an explicit port and optional user:pass@. Must
              resolve to a public address. Cached data is served without
              contacting the proxy; it is used only when PSX must be fetched,
              with stricter rate limits. Only honoured when the server enables
              proxy passthrough.
            title: X-Psx-Proxy
          description: >-
            Optional proxy for this request's PSX traffic: http://, socks5:// or
            socks5h://, with an explicit port and optional user:pass@. Must
            resolve to a public address. Cached data is served without
            contacting the proxy; it is used only when PSX must be fetched, with
            stricter rate limits. Only honoured when the server enables proxy
            passthrough.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SectorsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SectorsResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/SectorRow'
          type: array
          title: Data
        meta:
          $ref: '#/components/schemas/MetaList'
      type: object
      required:
        - data
        - meta
      title: SectorsResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SectorRow:
      properties:
        sector_code:
          type: string
          title: Sector Code
        sector_name:
          type: string
          title: Sector Name
        advance:
          type: integer
          title: Advance
        decline:
          type: integer
          title: Decline
        unchanged:
          type: integer
          title: Unchanged
        turnover:
          type: integer
          title: Turnover
        market_cap_b:
          type: number
          title: Market Cap B
      type: object
      required:
        - sector_code
        - sector_name
        - advance
        - decline
        - unchanged
        - turnover
        - market_cap_b
      title: SectorRow
    MetaList:
      properties:
        timestamp:
          type: string
          title: Timestamp
        cached:
          type: boolean
          title: Cached
        count:
          type: integer
          title: Count
      type: object
      required:
        - timestamp
        - cached
        - count
      title: MetaList
      description: Metadata block for list responses. Always includes count.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.