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

# Holder Lines

> For each outcome, two groups to draw on a price chart: the top holders among wallets that bought on the book (split-only market makers left out) and the top traders, each with their share-weighted average entry, buy and sell.



## OpenAPI

````yaml /openapi.json get /v1/markets/{conditionId}/holder-lines
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}/holder-lines:
    get:
      tags:
        - Markets
      summary: Holder Lines
      description: >-
        For each outcome, two groups to draw on a price chart: the top holders
        among wallets that bought on the book (split-only market makers left
        out) and the top traders, each with their share-weighted average entry,
        buy and sell.
      operationId: holder-lines
      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: top
          in: query
          required: false
          description: Wallets per group, 1 to 50.
          schema:
            type: integer
            minimum: 1
            maximum: 50
            default: 10
          example: 3
        - name: marks
          in: query
          required: false
          description: >-
            Live prices by token, to value open positions:
            `<tokenId>:<price>,…`. Left out, open positions rank by realized PnL
            only. Ignored once resolved.
          schema:
            type: string
      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.
                  resolved:
                    type: boolean
                    description: ''
                  top:
                    type: integer
                    description: The group size applied.
                  outcomes:
                    type: array
                    items:
                      type: object
                      properties:
                        outcomeIndex:
                          type: integer
                          description: ''
                        tokenId:
                          type: string
                          description: ''
                        mark:
                          type:
                            - number
                            - 'null'
                          description: ''
                        holders:
                          $ref: '#/components/schemas/LineGroup'
                        traders:
                          $ref: '#/components/schemas/LineGroup'
              example:
                conditionId: >-
                  0x8db33416a2d1ebde7438c80129e898f89a5deb3852ca64b37c4bf46513204409
                block: 94812402
                resolved: false
                top: 3
                outcomes:
                  - outcomeIndex: 0
                    tokenId: >-
                      85254962656314962064648492774584063365849461315753521676016468731069088672
                    mark: null
                    holders:
                      wallets: 3
                      shares: 96260.5
                      avgEntry: 0.2244
                      avgBuy: 0.2231
                      avgSell: 0.335
                      sellers: 1
                      members:
                        - wallet: '0x56687bf447db6ffa42ffe2204a05edaa20f55839'
                          shares: 41250.5
                          avgEntry: 0.23
                          avgBuy: 0.2291
                          avgSell: 0.335
                          realizedPnl: 1204.18
                    traders:
                      wallets: 3
                      shares: 51250.5
                      avgEntry: 0.2402
                      avgBuy: 0.2388
                      avgSell: 0.3122
                      sellers: 2
                      members: []
        '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:
    LineGroup:
      type: object
      properties:
        wallets:
          type: integer
          description: Members.
        shares:
          type: number
          description: Shares they hold.
        avgEntry:
          type:
            - number
            - 'null'
          description: Share-weighted, fee-inclusive entry of what they hold.
        avgBuy:
          type:
            - number
            - 'null'
          description: Average buy.
        avgSell:
          type:
            - number
            - 'null'
          description: Average sell.
        sellers:
          type: integer
          description: Members that sold any.
        members:
          type: array
          items:
            type: object
            properties:
              wallet:
                type: string
                description: ''
              shares:
                type: number
                description: ''
              avgEntry:
                type:
                  - number
                  - 'null'
                description: ''
              avgBuy:
                type:
                  - number
                  - 'null'
                description: ''
              avgSell:
                type:
                  - number
                  - 'null'
                description: ''
              realizedPnl:
                type: number
                description: USD.
          description: Each member.
      description: A group of wallets with their averages, to draw entry lines on a chart.
    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.