> ## Documentation Index
> Fetch the complete documentation index at: https://octo-98895abd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Panel

> A clean (id, date, metric, value) table across families.

Example: `/v2/panel?id=PETR4,VALE3&metric=close_return`

With no `from`, a dated kind reads the last 36 months to `to`.

panel has one kind, so it takes no kind parameter. id is a comma-separated list of tickers, fund CNPJs, option or termo tickers and futures codes. The gateway's tier ceiling (config.ts: 1 id anonymous, 3 signed in) is refused above it (forbidden_for_tier), and the SQL's own (3 anonymous, 50 signed in) is refused verbatim (over_limit); never trimmed.

Missing months stay absent: no fill, no return across a gap. Metric names are catalog().metrics (coverage?kind=catalog); an unknown name is unknown_parameter.

With no id and a family, panel walks the family (universe mode, monthly); min_nav and min_months narrow it. The gateway serves universe mode to the pro tier only (config.ts): a user the owner lists in api_user_tier (#1064).

`GET /v2/panel?help` describes the main parameters, `?help=all` adds the hidden ones.



## OpenAPI

````yaml /api-docs/v2/openapi.json get /panel
openapi: 3.1.0
info:
  title: SILO API v2
  version: v2
  description: >-
    The v2 gateway over SILO's schema `api`: 14 resources, five shared
    parameters, one envelope and one error object. Generated from
    supabase/functions/silo-api/registry.ts by scripts/gen_openapi_v2.py; do not
    edit by hand. The original v1 API stays available until it is retired.
servers:
  - url: https://zcjbtpxuhdekpwcxmepn.supabase.co/functions/v1/silo-api/v2
    description: The silo-api Edge Function.
security:
  - {}
  - bearerAuth: []
tags:
  - name: Discovery
  - name: Markets and macro
  - name: Companies and funds
  - name: Research
paths:
  /panel:
    get:
      tags:
        - Research
      summary: Panel
      description: >-
        A clean (id, date, metric, value) table across families.


        Example: `/v2/panel?id=PETR4,VALE3&metric=close_return`


        With no `from`, a dated kind reads the last 36 months to `to`.


        panel has one kind, so it takes no kind parameter. id is a
        comma-separated list of tickers, fund CNPJs, option or termo tickers and
        futures codes. The gateway's tier ceiling (config.ts: 1 id anonymous, 3
        signed in) is refused above it (forbidden_for_tier), and the SQL's own
        (3 anonymous, 50 signed in) is refused verbatim (over_limit); never
        trimmed.


        Missing months stay absent: no fill, no return across a gap. Metric
        names are catalog().metrics (coverage?kind=catalog); an unknown name is
        unknown_parameter.


        With no id and a family, panel walks the family (universe mode,
        monthly); min_nav and min_months narrow it. The gateway serves universe
        mode to the pro tier only (config.ts): a user the owner lists in
        api_user_tier (#1064).


        `GET /v2/panel?help` describes the main parameters, `?help=all` adds the
        hidden ones.
      operationId: v2_panel
      parameters:
        - name: metric
          in: query
          required: false
          description: >-
            Comma-separated catalog metric names (close, close_adj,
            close_return, volume, nav, delinquency, ...). auto: each id's family
            default, as api.panel with no p_metrics (close_adj for shares and
            units, close for other tickers, settlement_rate for futures, nav for
            funds). Comma-separated list. Default: auto.
          schema:
            type: string
            default: auto
          example: close_return
        - name: freq
          in: query
          required: false
          description: >-
            month: the last session of each month for tickers, the filed month
            for funds. day: tickers and futures only (funds file monthly).
            Default: month.
          schema:
            type: string
            enum:
              - month
              - day
            default: month
        - name: family
          in: query
          required: false
          description: >-
            auto: every family a CNPJ files under (a CNPJ filing as fi and fidc
            yields one row per family). One family narrows the fund rows to it;
            with no id it walks that family (universe mode). Default: auto.
          schema:
            type: string
            enum:
              - auto
              - fi
              - fidc
              - fii
              - fip
              - fiagro
            default: auto
        - name: id
          in: query
          required: false
          description: >-
            The id is a comma-separated list of tickers, fund CNPJs, option or
            termo tickers and futures codes, up to the tier's id ceiling.
            Default: none.
          schema:
            type: string
          example: PETR4,VALE3
        - name: from
          in: query
          required: false
          description: >-
            First date of the window, YYYY-MM-DD. Default: the resource's
            default window, counted back from to.
          schema:
            type: string
            format: date
        - name: to
          in: query
          required: false
          description: >-
            Last date of the window, YYYY-MM-DD. Default: the latest complete
            period, from coverage.
          schema:
            type: string
            format: date
        - name: limit
          in: query
          required: false
          description: >-
            The page size. More rows than one page come through next_page_url,
            never cut silently; a call stops at the tier's rows-per-call cap
            with meta.tier_cap_reached. Default: the tier's page maximum (10
            anonymous, 100 signed in); a larger value is coerced to it.
          schema:
            type: integer
            minimum: 1
        - name: cursor
          in: query
          required: false
          description: >-
            The opaque cursor from a previous next_page_url. It carries every
            other parameter: send it alone (another parameter with a different
            value is bad_request). Default: none: the first page.
          schema:
            type: string
        - name: min_nav
          in: query
          required: false
          description: >-
            Hidden parameter (`?help=all` lists it). Universe mode only: keep
            funds whose latest NAV in the window is at least this, BRL. Default:
            none: no floor.
          schema:
            type: number
            minimum: 0
        - name: min_months
          in: query
          required: false
          description: >-
            Hidden parameter (`?help=all` lists it). Universe mode only: keep
            funds with at least this many observations of the first metric.
            Default: none: no floor.
          schema:
            type: integer
            minimum: 0
      responses:
        '200':
          description: The v2 envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        default:
          description: >-
            The v2 error object. A SILO refusal (over_limit) keeps its message,
            hint and details verbatim.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Envelope:
      type: object
      required:
        - data
        - meta
      properties:
        data:
          type: array
          items: {}
          description: Always a list. Rows as the endpoint returned them; null stays null.
        meta:
          type: object
          required:
            - resource
            - kind
            - request
            - id_known
          properties:
            resource:
              type: string
            kind:
              type:
                - string
                - 'null'
            request:
              type: object
              description: Every parameter the resource takes, with the default applied.
            id_known:
              type:
                - boolean
                - 'null'
              description: Whether SILO holds the id; null when the call names none.
            endpoint:
              type: string
              description: The data endpoint that answered.
            source:
              type: string
              description: >-
                The canonical request to cite: /v2/<resource>? with every
                applied parameter, defaults included, so it replays the same
                rows. POST says so; its lists are in meta.body.
            data_through:
              type:
                - string
                - 'null'
              format: date
              description: >-
                The newest elapsed period SILO holds for the dataset this
                endpoint reads (the coverage resource's data_through for
                coverage_dataset). Null when no coverage row applies or the
                coverage read failed; never a guess.
            coverage_dataset:
              type:
                - string
                - 'null'
              description: >-
                The coverage dataset data_through comes from; null when none
                applies.
            data_through_error:
              type: string
              description: >-
                Present only when the coverage read failed: why data_through is
                null. The rows are unaffected.
            tier:
              type: string
              enum:
                - anonymous
                - signed_in
                - pro
            tier_cap_reached:
              type: boolean
              description: True when the result is partial because of the tier cap.
          additionalProperties: true
        next_page_url:
          type: string
          description: Present only when more rows remain. It carries one opaque cursor.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - reason
            - message
            - target
            - innererror
          properties:
            code:
              type: string
              enum:
                - bad_request
                - unknown_parameter
                - unknown_id
                - unauthorized
                - payment_required
                - forbidden_for_tier
                - over_limit
                - rate_limited
                - timeout
                - unavailable
                - internal
            reason:
              type:
                - string
                - 'null'
              enum:
                - row_cap
                - tier_cap
                - null
              description: >-
                over_limit only: row_cap (over one 1,000-row page: narrow or
                page) or tier_cap (over the tier ceiling: narrow or sign in).
                Null otherwise.
            message:
              type: string
            target:
              type:
                - string
                - 'null'
            innererror:
              type: object
              properties:
                sqlstate:
                  type:
                    - string
                    - 'null'
                hint:
                  type:
                    - string
                    - 'null'
                details:
                  type:
                    - string
                    - 'null'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: SILO user access token for authenticated data requests.

````

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