> ## 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.

# Trade Counts

> How many trades (fills) each wallet made in the market over its whole life, and when it was last active there. Every wallet you ask for is answered, 0 when it never traded.



## OpenAPI

````yaml /openapi.json get /v1/markets/{conditionId}/trade-counts
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/markets/{conditionId}/trade-counts:
    get:
      tags:
        - Markets
      summary: Trade Counts
      description: >-
        How many trades (fills) each wallet made in the market over its whole
        life, and when it was last active there. Every wallet you ask for is
        answered, 0 when it never traded.
      operationId: trade-counts
      parameters:
        - name: conditionId
          in: path
          required: true
          description: 'The market: 0x and 64 hex.'
          schema:
            type: string
            pattern: ^0x[0-9a-fA-F]{64}$
          example: '0x8db33416a2d1ebde7438c80129e898f89a5deb3852ca64b37c4bf46513204409'
        - name: wallets
          in: query
          required: true
          description: Up to 200 wallets, comma separated. Malformed entries are skipped.
          schema:
            type: string
          example: >-
            0x56687bf447db6ffa42ffe2204a05edaa20f55839,0x885783760858e1bd5dd09a3c3f916cfa251ac270
      responses:
        '200':
          description: OK
          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:
                  conditionId:
                    type: string
                    description: 'Condition id: 0x and 64 hex, lowercase.'
                  block:
                    type: integer
                    description: The finalized block the answer reflects.
                  complete:
                    type: boolean
                    description: Codex holds the market's whole history.
                  counts:
                    type: object
                    additionalProperties:
                      type: integer
                    description: >-
                      Fills by wallet: one per order the wallet owned in a
                      match. Splits, merges and redemptions are not trades.
                  lastTs:
                    type: object
                    additionalProperties:
                      type: integer
                    description: Latest activity by wallet, unix seconds; 0 when none.
              example:
                conditionId: >-
                  0x8db33416a2d1ebde7438c80129e898f89a5deb3852ca64b37c4bf46513204409
                block: 94812402
                complete: true
                counts:
                  '0x56687bf447db6ffa42ffe2204a05edaa20f55839': 37
                  '0x885783760858e1bd5dd09a3c3f916cfa251ac270': 3
                lastTs:
                  '0x56687bf447db6ffa42ffe2204a05edaa20f55839': 1790862117
                  '0x885783760858e1bd5dd09a3c3f916cfa251ac270': 1790411022
        '400':
          description: A parameter is malformed or out of range
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                e0:
                  summary: 'wallets: give 0x addresses, comma separated'
                  value:
                    error: 'wallets: give 0x addresses, comma separated'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                e0:
                  summary: market not indexed
                  value:
                    error: market not indexed
        '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.