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

# Volume Chart

> Fetch volume chart data for a market

Returns per-period total, YES, and NO volume aggregated from trade events, broken down by side.

<Tip>**Free & Unlimited.** This endpoint does not count toward your monthly usage limits on any plan.</Tip>

### Time Range Limits

| Interval | Max Range |
| -------- | --------- |
| `hour`   | 90 days   |
| `day`    | 1 year    |
| `week`   | 3 years   |


## OpenAPI

````yaml GET /v2/polymarket/volume-chart/{condition_id}
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/volume-chart/{condition_id}:
    get:
      tags:
        - polymarket
      summary: Get Volume Chart
      description: >-
        Fetch volume chart data for a market, broken down by YES/NO side.


        Returns per-period total, YES, and NO volume aggregated from trade
        events.
      operationId: get_volume_chart_v2_polymarket_volume_chart__condition_id__get
      parameters:
        - name: condition_id
          in: path
          required: true
          schema:
            type: string
            description: Condition ID for the market
            title: Condition Id
          description: Condition ID for the market
        - name: granularity
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/VolumeChartGranularity'
            description: 'Time granularity: hour, day, or week'
            default: hour
          description: 'Time granularity: hour, day, or week'
        - name: start_time
          in: query
          required: true
          schema:
            type: integer
            minimum: 0
            description: Unix timestamp (seconds) for start of time range
            title: Start Time
          description: Unix timestamp (seconds) for start of time range
        - name: end_time
          in: query
          required: true
          schema:
            type: integer
            minimum: 0
            description: Unix timestamp (seconds) for end of time range
            title: End Time
          description: Unix timestamp (seconds) for end of time range
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VolumeChartResponse'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    VolumeChartGranularity:
      type: string
      enum:
        - hour
        - day
        - week
      title: VolumeChartGranularity
      description: Granularity for volume chart endpoint.
    VolumeChartResponse:
      properties:
        condition_id:
          type: string
          title: Condition Id
          description: Market condition ID
        granularity:
          $ref: '#/components/schemas/VolumeChartGranularity'
          description: Time granularity
        start_time:
          type: integer
          title: Start Time
          description: Unix timestamp of first data point
        end_time:
          type: integer
          title: End Time
          description: Unix timestamp of last data point
        data:
          items:
            $ref: '#/components/schemas/VolumeChartDataPoint'
          type: array
          title: Data
          description: Volume data points
      type: object
      required:
        - condition_id
        - granularity
        - start_time
        - end_time
        - data
      title: VolumeChartResponse
      description: Volume chart endpoint response.
    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
    VolumeChartDataPoint:
      properties:
        timestamp:
          type: integer
          title: Timestamp
          description: Unix timestamp in seconds (start of period)
        total_volume:
          type: number
          title: Total Volume
          description: Total USD volume in this period
        yes_volume:
          type: number
          title: Yes Volume
          description: YES-side USD volume in this period
        no_volume:
          type: number
          title: No Volume
          description: NO-side USD volume in this period
        trades_count:
          type: integer
          title: Trades Count
          description: Number of trades in this period
      type: object
      required:
        - timestamp
        - total_volume
        - yes_volume
        - no_volume
        - trades_count
      title: VolumeChartDataPoint
      description: Individual volume chart data point.
    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

````