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

> Bucketed volume and fee revenue for a builder over a rolling window

Bucketed `volume_usd`, `builder_fee_usd`, and `trade_count` for a single builder, returned as an ordered array of `(timestamp, ...)` points. Use this for charting builder activity over time.

<Note>
  **V2-only.** Builder attribution is a Polymarket V2 concept - V1 fills are excluded.
</Note>

### Buckets

| `bucket`        | Use with              |
| --------------- | --------------------- |
| `day` (default) | `window=30d` or `all` |
| `hour`          | `window=24h` or `7d`  |

### Windows

`24h`, `7d`, `30d` (default), or `all`. Each `timestamp` is the Unix-seconds start of the bucket.


## OpenAPI

````yaml GET /v2/polymarket/builders/{builder_code}/timeseries
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}/timeseries:
    get:
      tags:
        - polymarket
      summary: Get Builder Timeseries
      description: Bucketed volume + builder_fee over a window.
      operationId: >-
        get_builder_timeseries_v2_polymarket_builders__builder_code__timeseries_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: 30d
            title: Window
          description: 'Rolling window: 24h, 7d, 30d, or all'
        - name: bucket
          in: query
          required: false
          schema:
            type: string
            description: 'Bucket size: ''day'' or ''hour'''
            default: day
            title: Bucket
          description: 'Bucket size: ''day'' or ''hour'''
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BuilderTimeseriesResponse'
        '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:
    BuilderTimeseriesResponse:
      properties:
        builder_code:
          type: string
          title: Builder Code
        window:
          type: string
          title: Window
        bucket:
          type: string
          title: Bucket
          description: 'Bucket size: day or hour'
        points:
          items:
            $ref: '#/components/schemas/BuilderTimeseriesPoint'
          type: array
          title: Points
      type: object
      required:
        - builder_code
        - window
        - bucket
        - points
      title: BuilderTimeseriesResponse
      description: Response for builder timeseries 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
    BuilderTimeseriesPoint:
      properties:
        timestamp:
          type: integer
          title: Timestamp
          description: Unix timestamp at bucket start
        volume_usd:
          type: number
          title: Volume Usd
        builder_fee_usd:
          type: number
          title: Builder Fee Usd
        trade_count:
          type: integer
          title: Trade Count
      type: object
      required:
        - timestamp
        - volume_usd
        - builder_fee_usd
        - trade_count
      title: BuilderTimeseriesPoint
      description: One bucket in a builder timeseries.
    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

````