For AI agents: complete Markdown index · compact index. Follow the explicit .md links for the Markdown version of each page.

Equities

Equity Metric Names

GET/v2/equities/metrics/names

Returns registered equity metric names with their unit, description and -- per name -- which reporting bases GET /equities/metrics/history can actually serve. Every name here is available as a latest value on GET /equities/metrics; bases is narrower, because history is materialized per basis. Filter with hasHistory or basis to get only the names a history integration can rely on. No security identifier required.

Free in every plan, including the trial.

Authentication

Send your API key in the x-api-key header on every request to https://api.bavest.co. The samples read it from the BAVEST_API_KEY environment variable. Get an API key (free trial) · Authentication guide.

Parameters

  • booleanquery · no

    When true, return only names with at least one materialized basis; when false, only names without one. Omit for all names.

  • stringquery · no

    Return only names materialized on this reporting basis. A basis that is valid but not yet materialized returns an empty list with count 0 rather than an error, mirroring how the history endpoint answers with a warning instead of a 404.

    One of FY, Q1, Q2, Q3, Q4, H1, H2, TTM.

Response 200

Successful response · application/json

  • data
    object
    2 fields in data
    • count
      integer

      Number of metric names in this response, after any hasHistory/basis filter.

      Example: 103

    • metrics
      array of object
      5 fields in metrics
      • name
        string

        Canonical metric name (snake_case)

        Example: pe_ratio

      • unit
        string

        Unit type for the metric

        Example: ratio

      • description
        string

        Human-readable description of the metric

        Example: Price-to-Earnings Ratio (P/E)

      • bases
        array of string

        Reporting bases GET /equities/metrics/history can serve for this name. Empty means the name has a latest value but no history yet. A *_ttm name carries TTM and nothing else, since no other basis exists for it.

        Each item is one of FY, Q1, Q2, Q3, Q4, H1, H2, TTM.

      • hasHistory
        boolean

        Convenience flag, true exactly when bases is non-empty.

        Example: true

  • meta
    ResponseMeta

    Response metadata, including server-side processing time and resolved request parameters. Successful and error responses use the same metadata shape.

    2 fields in meta
    • time
      integer

      Server-side processing time in milliseconds

      Example: 17

    • parameters
      object

      Echo of the request parameters the endpoint resolved

Errors

  • 400 Invalid request parameters. Returned when required query parameters are missing, have invalid types, or violate constraints (e.g., providing both symbol and isin when they are mutually exclusive).
  • 401 Missing or invalid API key.
  • 404 Resource not found.
  • 429 Rate limit exceeded. Retry after the `Retry-After` header interval.
  • 500 An unexpected error occurred on the server. If the issue persists, contact support with the X-Request-Id header value.
  • 502 Upstream data provider returned an error or is temporarily unavailable. Retry after a short delay.
  • 504 The request timed out waiting for a response from the upstream data provider. This may occur for complex queries or during peak load.
  • default An unexpected error occurred on the server. If the issue persists, contact support with the X-Request-Id header value.
  • 403 from the gateway: the API key is invalid or switched off.

  • 429 with message Limit Exceeded: the monthly quota of the key is used up. With Too Many Requests: the key is throttled, or this route is not in the key's plan. Wait for Retry-After when it is sent.

For AI agents: this page as Markdown at /docs/v2_equities_metrics_names.md, every route in /llms.txt, the OpenAPI spec at /openapi.json.