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

# Builder Markets

> Top markets attributed to a builder over a rolling window

Top markets attributed to a single builder over the window, ranked by attributed volume. Each row carries `volume_usd`, `builder_fee_usd`, `trade_count`, and `unique_traders` for that `(builder, condition_id)`.

<Note>
  **V2-only.** Builder attribution is a Polymarket V2 concept - V1 fills, the zero-sentinel builder, and reversed (`sign != 1`) fills are excluded.
</Note>

### Windows

`24h`, `7d` (default), `30d`, or `all`.

| Constraint | Value              |
| ---------- | ------------------ |
| `limit`    | 1–500 (default 50) |


## OpenAPI

````yaml GET /v2/polymarket/builders/{builder_code}/markets
openapi: 3.1.0
info:
  title: Predexon API
  description: Prediction market data aggregation and matching API
  version: 2.0.0
servers:
  - url: https://api.predexon.com
security:
  - apiKey: []
paths:
  /v2/polymarket/builders/{builder_code}/markets:
    get:
      tags:
        - polymarket
      summary: Get Builder Markets
      description: |-
        Top markets attributed to a builder over the window.

        Reads volume_by_builder_market_daily_view (per-(builder, market, day)
        aggregate) for the volume/trade_count/uniq_traders, then joins
        order_filled_with_builder_fee_view per-market for the precise
        builder_fee_usd (since the daily MV doesn't track maker/taker split).
      operationId: get_builder_markets_v2_polymarket_builders__builder_code__markets_get
      parameters:
        - name: builder_code
          in: path
          required: true
          schema:
            type: string
            description: Builder code (bytes32 hex)
            title: Builder Code
          description: Builder code (bytes32 hex)
        - name: window
          in: query
          required: false
          schema:
            type: string
            description: 'Rolling window: 24h, 7d, 30d, or all'
            default: 7d
            title: Window
          description: 'Rolling window: 24h, 7d, 30d, or all'
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 500
            minimum: 1
            default: 50
            title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BuilderMarketsResponse'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
components:
  schemas:
    BuilderMarketsResponse:
      properties:
        builder_code:
          type: string
          title: Builder Code
        window:
          type: string
          title: Window
        entries:
          items:
            $ref: '#/components/schemas/BuilderMarketEntry'
          type: array
          title: Entries
      type: object
      required:
        - builder_code
        - window
        - entries
      title: BuilderMarketsResponse
      description: Response for builder top-markets endpoint.
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
        message:
          type: string
          title: Message
      type: object
      required:
        - error
        - message
      title: ErrorResponse
      description: Standard error response.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BuilderMarketEntry:
      properties:
        rank:
          type: integer
          title: Rank
        condition_id:
          type: string
          title: Condition Id
        volume_usd:
          type: number
          title: Volume Usd
        builder_fee_usd:
          type: number
          title: Builder Fee Usd
        trade_count:
          type: integer
          title: Trade Count
        unique_traders:
          type: integer
          title: Unique Traders
      type: object
      required:
        - rank
        - condition_id
        - volume_usd
        - builder_fee_usd
        - trade_count
        - unique_traders
      title: BuilderMarketEntry
      description: A market attributed to a builder.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````