> ## 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.

# Get Index



## OpenAPI

````yaml /openapi.json get /indices/{name}
openapi: 3.1.0
info:
  title: psxdata
  version: 0.8.0
servers:
  - url: https://psxdata-api.fastapicloud.dev
security: []
paths:
  /indices/{name}:
    get:
      tags:
        - indices
      summary: Get Index
      operationId: get_index_indices__name__get
      parameters:
        - name: name
          in: path
          required: true
          schema:
            type: string
            title: Name
        - 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/IndexConstituentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    IndexConstituentResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/IndexConstituentRow'
          type: array
          title: Data
        meta:
          $ref: '#/components/schemas/MetaList'
      type: object
      required:
        - data
        - meta
      title: IndexConstituentResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    IndexConstituentRow:
      properties:
        symbol:
          type: string
          title: Symbol
        current_index:
          type: number
          title: Current Index
        idx_weight:
          type: number
          title: Idx Weight
        idx_point:
          type: number
          title: Idx Point
        market_cap_m:
          type: number
          title: Market Cap M
        freefloat_m:
          anyOf:
            - type: number
            - type: 'null'
          title: Freefloat M
        shares_m:
          anyOf:
            - type: number
            - type: 'null'
          title: Shares M
        badge:
          anyOf:
            - type: string
            - type: 'null'
          title: Badge
          description: >-
            Badge PSX shows next to the ticker (XD, XB, XR, NC, ...; several
            joined with +); null if none.
        ex_flag:
          anyOf:
            - type: string
            - type: 'null'
          title: Ex Flag
          description: >-
            Corporate-action badge only: XD ex-dividend, XB ex-bonus, XR
            ex-rights; null otherwise. A stock that goes ex drops by about the
            dividend or entitlement without a real loss.
      type: object
      required:
        - symbol
        - current_index
        - idx_weight
        - idx_point
        - market_cap_m
      title: IndexConstituentRow
    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.