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

# Raw latency records

> Raw latency records



## OpenAPI

````yaml openapi.oms.en.json GET /api/v1/util/latency/raw
openapi: 3.0.3
info:
  title: VOS OMS Public API
  version: 1.0.0
  description: >-
    Public REST API surface for Vero OMS. Authentication requests use
    platform.verolabs.co. REST API requests use api-oms.verolabs.co.
servers:
  - url: https://platform.verolabs.co
    description: Authentication host
  - url: https://api-oms.verolabs.co
    description: REST API host
security: []
tags:
  - name: Authentication
    description: Account authentication and password recovery.
  - name: Trading
    description: Order entry, quote, IOI, and trading activity APIs.
  - name: Portfolio & Risk
    description: Accounts, holdings, mappings, and risk-rule read APIs.
  - name: Administration
    description: Permissions, groups, workflow, reference data, and audit APIs.
  - name: System & Diagnostics
    description: Health and latency endpoints.
paths:
  /api/v1/util/latency/raw:
    get:
      tags:
        - System & Diagnostics
      summary: Raw latency records
      description: |-
        Most-recent latency records with paging.

        Requires `Authorization: Bearer <jwt>` from `POST /api/auth/login`.

        Required JWT role: `admin`.
      operationId: get_api_v1_util_latency_raw
      parameters:
        - $ref: '#/components/parameters/FromNs'
        - $ref: '#/components/parameters/ToNs'
        - $ref: '#/components/parameters/MessageType'
        - $ref: '#/components/parameters/TimeField'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Offset'
      responses:
        '200':
          description: Raw records result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RawResult'
        '400':
          $ref: '#/components/responses/BadRequest'
        '500':
          $ref: '#/components/responses/ServerError'
      security:
        - bearerAuth: []
      servers:
        - url: https://api-oms.verolabs.co
components:
  parameters:
    FromNs:
      name: from_ns
      in: query
      description: Start of the time window as epoch nanoseconds.
      schema:
        type: integer
        format: int64
    ToNs:
      name: to_ns
      in: query
      description: End of the time window as epoch nanoseconds.
      schema:
        type: integer
        format: int64
    MessageType:
      name: message_type
      in: query
      schema:
        type: string
      description: Optional message type filter.
    TimeField:
      name: time_field
      in: query
      description: Which timestamp to filter/aggregate on.
      schema:
        type: string
        enum:
          - complete_time
          - create_time
        default: complete_time
    Limit:
      name: limit
      in: query
      description: Page size. Defaults to 200; capped by the per-API max limit.
      schema:
        type: integer
        minimum: 1
    Offset:
      name: offset
      in: query
      schema:
        type: integer
        minimum: 0
      description: Zero-based number of records to skip.
  schemas:
    RawResult:
      type: object
      properties:
        from_time:
          type: integer
          format: int64
          description: Start of the response time window in epoch nanoseconds.
        to_time:
          type: integer
          format: int64
          description: End of the response time window in epoch nanoseconds.
        message_type:
          type: string
          description: Message type filter or message type reported by the record.
        time_field:
          type: string
          description: Timestamp field used for filtering or aggregation.
        limit:
          type: integer
          description: Maximum number of records returned.
        offset:
          type: integer
          description: Zero-based number of records skipped before returning results.
        count:
          type: integer
          description: Number of records in the response page or aggregation.
        records:
          type: array
          items:
            $ref: '#/components/schemas/RawRecord'
          description: Records returned for the current page.
      description: Raw latency records response.
    RawRecord:
      type: object
      properties:
        message_type:
          type: string
          description: Message type filter or message type reported by the record.
        message_body_json:
          type: object
          description: Original message body as JSON.
        create_time:
          type: integer
          format: int64
          description: Message creation timestamp in epoch nanoseconds.
        complete_time:
          type: integer
          format: int64
          description: Message completion timestamp in epoch nanoseconds.
        latency_ns:
          type: integer
          format: int64
          description: Latency duration in nanoseconds.
      description: Raw latency record.
    Error:
      type: object
      properties:
        error:
          type: string
          description: Machine-readable error code or error category.
        status:
          type: integer
          description: Status value returned by the API.
      description: Standard error response envelope.
  responses:
    BadRequest:
      description: Invalid parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServerError:
      description: Server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````