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

# List trade views (beta)

> Beta: the shape and filters of this read may still change. Lists trade views: a trader's long or short view on one asset, taken from one source message. A trade view opens no position and has no price or performance. Rows are ordered by writtenAt, the time the source message was posted, newest first, then by id. Without startTime and endTime the read covers the default history window; an explicit startTime reaches the full history. Requires views.read.



## OpenAPI

````yaml /openapi-v2.json get /views
openapi: 3.1.0
info:
  title: Centaur API
  version: 2.0.0
  description: >-
    Public API for reading Centaur's data over REST, with a companion MCP
    surface, and for partners to manage the webhook endpoints that receive
    Centaur events.
servers:
  - url: https://api.centaur.io/v2
    description: Centaur API v2
security: []
tags:
  - name: System
    description: Health and service metadata endpoints.
  - name: Discovery
    description: Read-only trader and asset directory discovery endpoints.
  - name: Events
    description: >-
      Historical trade-event reads with source, trader, asset, and position
      context.
  - name: Messages
    description: >-
      Read-only access to source messages by message timestamp or Source Message
      ID.
  - name: Channel Summaries
    description: Generated channel narrative summaries selected by Source Window overlap.
  - name: Aggregate Summaries
    description: >-
      Generated aggregate narrative summaries selected by Aggregate Window
      overlap.
  - name: Positions
    description: Read-only position history and open-position live state reads.
  - name: Stats
    description: Read-only aggregate trader and asset stats.
  - name: Webhooks
    description: >-
      Register HTTPS endpoints that receive signed event deliveries, manage
      their state and secrets, replay past deliveries and inspect delivery
      history. Requires the `webhooks.manage` permission on a partner account.
  - name: Widgets
    description: >-
      Hosted widget reads restricted to enabled registrations and approved
      origins.
externalDocs:
  description: Canonical Centaur API documentation
  url: https://docs.centaur.io
paths:
  /views:
    get:
      tags:
        - Events
      summary: List trade views (beta)
      description: >-
        Beta: the shape and filters of this read may still change. Lists trade
        views: a trader's long or short view on one asset, taken from one source
        message. A trade view opens no position and has no price or performance.
        Rows are ordered by writtenAt, the time the source message was posted,
        newest first, then by id. Without startTime and endTime the read covers
        the default history window; an explicit startTime reaches the full
        history. Requires views.read.
      operationId: listViews
      parameters:
        - schema:
            anyOf:
              - type: string
              - type: array
                items:
                  type: string
              - type: array
                items:
                  type: number
            example: 7,12
            description: >-
              Positive integer trader IDs only. REST accepts comma-separated
              values or repeated parameters. MCP accepts an array. Numeric
              strings become IDs. Maximum 200 non-empty supplied entries per
              field, including duplicates. Use traderRefs for slugs. Do not
              supply traderIds and traderRefs together, even if one is empty.
          required: false
          description: >-
            Positive integer trader IDs only. REST accepts comma-separated
            values or repeated parameters. MCP accepts an array. Numeric strings
            become IDs. Maximum 200 non-empty supplied entries per field,
            including duplicates. Use traderRefs for slugs. Do not supply
            traderIds and traderRefs together, even if one is empty.
          name: traderIds
          in: query
        - schema:
            anyOf:
              - type: string
              - type: array
                items:
                  type: string
            example: alpha-trades
            description: >-
              Trader slugs as strings only. REST accepts comma-separated values
              or repeated parameters. MCP accepts a string array, e.g.
              ["alpha-trades", "700"]. Values are trimmed and matched
              case-insensitively. Numeric text such as "700" is a literal slug,
              never an ID. Maximum 200 non-empty supplied entries per field,
              including duplicates. Do not supply traderIds and traderRefs
              together, even if one is empty. Unknown references match nothing.
              Retry ambiguous references with a returned numeric ID in
              traderIds, omitting traderRefs. Find names or handles with trader
              directory search.
          required: false
          description: >-
            Trader slugs as strings only. REST accepts comma-separated values or
            repeated parameters. MCP accepts a string array, e.g.
            ["alpha-trades", "700"]. Values are trimmed and matched
            case-insensitively. Numeric text such as "700" is a literal slug,
            never an ID. Maximum 200 non-empty supplied entries per field,
            including duplicates. Do not supply traderIds and traderRefs
            together, even if one is empty. Unknown references match nothing.
            Retry ambiguous references with a returned numeric ID in traderIds,
            omitting traderRefs. Find names or handles with trader directory
            search.
          name: traderRefs
          in: query
        - schema:
            anyOf:
              - type: string
              - type: array
                items:
                  type: string
              - type: array
                items:
                  type: number
            example: 1,34
            description: >-
              Positive integer asset IDs only. REST accepts comma-separated
              values or repeated parameters. MCP accepts an array. Numeric
              strings become IDs. Maximum 200 non-empty supplied entries per
              field, including duplicates. Use assetRefs for slugs, tickers,
              legacy symbols, or instrument identifiers. Do not supply assetIds
              and assetRefs together, even if one is empty.
          required: false
          description: >-
            Positive integer asset IDs only. REST accepts comma-separated values
            or repeated parameters. MCP accepts an array. Numeric strings become
            IDs. Maximum 200 non-empty supplied entries per field, including
            duplicates. Use assetRefs for slugs, tickers, legacy symbols, or
            instrument identifiers. Do not supply assetIds and assetRefs
            together, even if one is empty.
          name: assetIds
          in: query
        - schema:
            anyOf:
              - type: string
              - type: array
                items:
                  type: string
            example: AAPL,crypto-btc,700
            description: >-
              Asset slugs, tickers, or legacy symbols as strings only, or the
              ticker, alias or FIGI of any instrument that belongs to the asset,
              which selects that asset. REST accepts comma-separated values or
              repeated parameters. MCP accepts a string array, e.g. ["AAPL",
              "crypto-btc", "700"]. Values are trimmed and matched
              case-insensitively, in order: slug, ticker, legacy symbol, then
              instrument ticker, alias or FIGI. Numeric text such as "700" is a
              literal reference, never an ID. Maximum 200 non-empty supplied
              entries per field, including duplicates. Do not supply assetIds
              and assetRefs together, even if one is empty. Unknown references
              match nothing. Retry ambiguous references with a returned numeric
              ID in assetIds, omitting assetRefs. Find names with asset
              discovery search.
          required: false
          description: >-
            Asset slugs, tickers, or legacy symbols as strings only, or the
            ticker, alias or FIGI of any instrument that belongs to the asset,
            which selects that asset. REST accepts comma-separated values or
            repeated parameters. MCP accepts a string array, e.g. ["AAPL",
            "crypto-btc", "700"]. Values are trimmed and matched
            case-insensitively, in order: slug, ticker, legacy symbol, then
            instrument ticker, alias or FIGI. Numeric text such as "700" is a
            literal reference, never an ID. Maximum 200 non-empty supplied
            entries per field, including duplicates. Do not supply assetIds and
            assetRefs together, even if one is empty. Unknown references match
            nothing. Retry ambiguous references with a returned numeric ID in
            assetIds, omitting assetRefs. Find names with asset discovery
            search.
          name: assetRefs
          in: query
        - schema:
            anyOf:
              - anyOf:
                  - type: string
                  - type: array
                    items:
                      type: string
                  - type: array
                    items:
                      type: number
              - type: array
                items:
                  $ref: '#/components/schemas/TraderDirection'
            description: Filter to `long` and/or `short` trade views.
          required: false
          description: Filter to `long` and/or `short` trade views.
          name: directions
          in: query
        - schema:
            type: string
            format: date-time
            description: >-
              Inclusive ISO-8601 lower bound on `writtenAt`. Earlier values are
              not clamped: the full history is available.
          required: false
          description: >-
            Inclusive ISO-8601 lower bound on `writtenAt`. Earlier values are
            not clamped: the full history is available.
          name: startTime
          in: query
        - schema:
            type: string
            format: date-time
            description: Inclusive ISO-8601 upper bound on `writtenAt`.
          required: false
          description: Inclusive ISO-8601 upper bound on `writtenAt`.
          name: endTime
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 200
            description: Maximum number of rows to return.
          required: false
          description: Maximum number of rows to return.
          name: limit
          in: query
        - schema:
            type: string
            minLength: 1
            description: Forward pagination cursor from `meta.nextCursor`.
          required: false
          description: Forward pagination cursor from `meta.nextCursor`.
          name: cursor
          in: query
      responses:
        '200':
          description: Paginated list of trade views with compact entity references
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    $ref: '#/components/schemas/ViewsResponseData'
                  requestId:
                    type: string
                    example: c8e2c6e4-80dd-4ffc-9d66-4e31bf64c6b8
                required:
                  - success
                  - data
                  - requestId
        '400':
          description: Invalid cursor
          content:
            application/json:
              example:
                success: false
                error:
                  code: INVALID_CURSOR
                  message: Malformed cursor
                requestId: c8e2c6e4-80dd-4ffc-9d66-4e31bf64c6b8
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '403':
          description: Missing views.read
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '422':
          description: Validation error or ambiguous reference
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: API key request quota exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '503':
          description: Authentication service temporarily unavailable
          headers:
            Retry-After:
              description: Seconds to wait before retrying authentication
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              example:
                success: false
                error:
                  code: AUTHENTICATION_UNAVAILABLE
                  message: Authentication is temporarily unavailable
                requestId: c8e2c6e4-80dd-4ffc-9d66-4e31bf64c6b8
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    TraderDirection:
      type: string
      enum:
        - long
        - short
      description: Direction of the related position.
    ViewsResponseData:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/TradeView'
        meta:
          type: object
          properties:
            hasMore:
              type: boolean
            nextCursor:
              type:
                - string
                - 'null'
            serverTime:
              type: string
              format: date-time
              description: >-
                Server UTC time when this response was produced (ISO-8601).
                Anchor relative-time phrases such as "today" or "this week" on
                this value rather than on a cached one.
            appliedTimeRange:
              $ref: '#/components/schemas/AppliedTimeRange'
          required:
            - hasMore
            - nextCursor
            - serverTime
            - appliedTimeRange
      required:
        - results
        - meta
    ErrorEnvelope:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          $ref: '#/components/schemas/Error'
        requestId:
          type: string
          example: c8e2c6e4-80dd-4ffc-9d66-4e31bf64c6b8
      required:
        - success
        - error
        - requestId
    TradeView:
      type: object
      properties:
        id:
          type: integer
          exclusiveMinimum: 0
          maximum: 9007199254740991
          description: >-
            Trade view ID. Trade view IDs and trade event IDs are separate
            number spaces.
        direction:
          allOf:
            - $ref: '#/components/schemas/TraderDirection'
            - description: 'The trader''s view on the asset: `long` or `short`.'
        traderId:
          type: integer
          description: Related trader ID. Use trader discovery for display metadata.
        assetId:
          type: integer
          description: Related asset ID. Use asset discovery for display metadata.
        messageId:
          type: string
          description: Source Message ID of the message the trade view was taken from.
        writtenAt:
          type: string
          format: date-time
          description: >-
            When the source message was posted. A trade view has no time of its
            own; ordering and time filters use this value.
      required:
        - id
        - direction
        - traderId
        - assetId
        - messageId
        - writtenAt
      example:
        id: 81234
        direction: long
        traderId: 7
        assetId: 1
        messageId: tg:1001:42
        writtenAt: '2026-11-12T09:30:00.000Z'
    AppliedTimeRange:
      type: object
      properties:
        startTime:
          type:
            - string
            - 'null'
          format: date-time
        endTime:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - startTime
        - endTime
    Error:
      type: object
      properties:
        code:
          type: string
          description: Stable machine-readable error code.
          example: UNAUTHORIZED
        message:
          type: string
          description: Human-readable explanation for the failure.
          example: Unauthorized
        details:
          description: Optional structured details for validation or input failures.
      required:
        - code
        - message
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key issued by Centaur.
      x-default: <api-key>

````

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