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

# All Fills

> Every order-book fill of every market in a window of up to an hour, oldest first, rows whose market is still unknown included: `[ts, block, logIndex, tx, wallet, side, asset, conditionId, outcome, shares, usd]`. Rows without a market always come after `completeThroughTs`: read them again later.



## OpenAPI

````yaml /openapi.json get /v1/fills/all
openapi: 3.1.0
info:
  title: Codex API
  version: 1.0.0
  description: >-
    Nomos's Polymarket index, rebuilt from Polygon: holders, positions, PnL,
    trades, leaderboards and live fills.
servers:
  - url: https://codex-api.nomos.trade
security:
  - bearerAuth: []
tags:
  - name: Markets
  - name: Wallets
  - name: Leaderboard
  - name: Events
  - name: Fills
  - name: Crypto Strikes
  - name: Health
paths:
  /v1/fills/all:
    get:
      tags:
        - Fills
      summary: All Fills
      description: >-
        Every order-book fill of every market in a window of up to an hour,
        oldest first, rows whose market is still unknown included: `[ts, block,
        logIndex, tx, wallet, side, asset, conditionId, outcome, shares, usd]`.
        Rows without a market always come after `completeThroughTs`: read them
        again later.
      operationId: fills-all
      parameters:
        - name: from
          in: query
          required: true
          description: Unix seconds, inclusive.
          schema:
            type: integer
          example: 1790856000
        - name: to
          in: query
          required: true
          description: Unix seconds, exclusive; at most 3,600 after from.
          schema:
            type: integer
          example: 1790856060
        - name: limit
          in: query
          required: false
          description: ''
          schema:
            type: integer
            minimum: 1
            maximum: 20000
            default: 10000
          example: 5
        - name: after
          in: query
          required: false
          description: The previous page's `next`.
          schema:
            type: string
      responses:
        '200':
          description: 'OK. Gzipped when you send `Accept-Encoding: gzip`.'
          headers:
            x-ratelimit-limit:
              description: Your rate, requests a minute.
              schema:
                type: integer
            x-ratelimit-remaining:
              description: Requests left in your bucket.
              schema:
                type: integer
          content:
            application/json:
              schema:
                type: object
                properties:
                  block:
                    type: integer
                    description: >-
                      The trades table's cursor (can run a batch ahead of
                      positions).
                  completeThroughTs:
                    type: integer
                    description: >-
                      Every fill at or before it is in the answer; 0: nothing
                      claimable yet. Unix seconds.
                  next:
                    type:
                      - string
                      - 'null'
                    description: Send it as `after`, with the same window.
                  fills:
                    type: array
                    items:
                      type: array
                      items: {}
                    description: 'Mixed rows: tx, wallet, asset and conditionId are strings.'
              example:
                block: 94812405
                completeThroughTs: 1790862115
                fills:
                  - - 1790856012
                    - 94808210
                    - 33
                    - >-
                      0x3f6a0c0d1d7f4b0a9e2c6b8f51a2e94d7c03b6a1e8f5d2c47a9b0e1f3c5d7e9a
                    - '0x56687bf447db6ffa42ffe2204a05edaa20f55839'
                    - 0
                    - >-
                      85254962656314962064648492774584063365849461315753521676016468731069088672
                    - >-
                      0x8db33416a2d1ebde7438c80129e898f89a5deb3852ca64b37c4bf46513204409
                    - 0
                    - 2000000000
                    - 462000000
                next: 1790856012,94808210,33
        '400':
          description: A parameter is malformed or out of range
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                e0:
                  summary: the window is at most 3600 seconds (1 hour)
                  value:
                    error: the window is at most 3600 seconds (1 hour)
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: What went wrong, for a person to read.
      description: Every error answer.
  responses:
    Unauthorized:
      description: No key, or an unknown or revoked one.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: unknown or revoked API key
    RateLimited:
      description: >-
        Over your rate, or more than 4 requests (2 streams) at once. Wait
        `Retry-After` seconds.
      headers:
        retry-after:
          description: Seconds to wait.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: 'rate limit: 600 requests a minute; retry in 1 s'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key: `codex_` and 48 hex characters.'

````

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