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

# Get event chart

> Retrieve price data over time for up to 4 highest-volume markets in an event. Perfect for rendering multi-line charts showing price movement across top markets. TradingView-style: resolution parameter determines both candle size and implicit lookback period.



## OpenAPI

````yaml https://api.struct.to/openapi.json get /polymarket/events/chart
openapi: 3.1.0
info:
  title: Polymarket API
  description: >-
    RESTful API for querying Polymarket prediction markets data including
    events, markets, traders, holders, and real-time metrics
  license:
    name: ''
  version: 1.0.0
servers:
  - url: https://api.struct.to/v1
security: []
paths:
  /polymarket/events/chart:
    get:
      tags:
        - Events
      summary: Get event chart
      description: >-
        Retrieve price data over time for up to 4 highest-volume markets in an
        event. Perfect for rendering multi-line charts showing price movement
        across top markets. TradingView-style: resolution parameter determines
        both candle size and implicit lookback period.
      operationId: get_event_chart
      parameters:
        - name: event_slug
          in: query
          description: Event slug (required)
          required: true
          schema:
            type: string
        - name: condition_ids
          in: query
          description: Comma-separated condition IDs to include (max 4, optional)
          required: false
          schema:
            type: string
        - name: market_slugs
          in: query
          description: >-
            Comma-separated market slugs to include (max 4, optional). Use
            either condition_ids or market_slugs, not both
          required: false
          schema:
            type: string
        - name: resolution
          in: query
          description: >-
            Time interval with implicit lookback: 1H (1 hour), 6H (6 hours), 1D
            (1 day), 1W (1 week), 1M (30 days), ALL (all data) (required)
          required: true
          schema:
            $ref: '#/components/schemas/ChartResolution'
      responses:
        '200':
          description: Price data over time for up to 4 highest-volume markets
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/EventMarketChartOutcome'
components:
  schemas:
    ChartResolution:
      type: string
      enum:
        - 1H
        - 6H
        - 1D
        - 1W
        - 1M
        - ALL
    EventMarketChartOutcome:
      type: object
      required:
        - condition_id
        - market_slug
        - question
        - title
        - data
      properties:
        condition_id:
          type: string
          description: Condition ID.
        market_slug:
          type: string
          description: Market slug.
        question:
          type: string
          description: Question.
        title:
          type: string
          description: Title.
        data:
          type: array
          items:
            $ref: '#/components/schemas/EventMarketChartDataPoint'
          description: Time-series data points.
    EventMarketChartDataPoint:
      type: object
      required:
        - v
        - t
      properties:
        v:
          type: number
          format: double
          description: Total volume in USD.
        t:
          type: integer
          format: int64
          description: Unix timestamp in seconds.
          minimum: 0

````