> ## 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 Asset Price History

> Returns historical price data for supported crypto assets from Polymarket API



## OpenAPI

````yaml https://api.struct.to/openapi.json get /polymarket/asset-history
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/asset-history:
    get:
      tags:
        - Assets
      summary: Get Asset Price History
      description: >-
        Returns historical price data for supported crypto assets from
        Polymarket API
      operationId: get_asset_history
      parameters:
        - name: asset_symbol
          in: query
          description: 'Asset ticker: BTC, ETH, XRP, SOL, DOGE, BNB, HYPE'
          required: true
          schema:
            $ref: '#/components/schemas/AssetSymbol'
          example: BTC
        - name: variant
          in: query
          description: 'Time window: 5m, 15m, 1h, 4h, 1d'
          required: true
          schema:
            $ref: '#/components/schemas/AssetVariant'
          example: 1h
        - name: from
          in: query
          description: Start timestamp in seconds (Unix epoch, inclusive)
          required: false
          schema:
            type: integer
            format: int64
        - name: to
          in: query
          description: End timestamp in seconds (Unix epoch, inclusive)
          required: false
          schema:
            type: integer
            format: int64
        - name: limit
          in: query
          description: 'Number of results (default: 10, max: 100)'
          required: false
          schema:
            type: integer
            format: int64
          example: 10
        - name: pagination_key
          in: query
          description: >-
            Cursor from previous response for keyset pagination. Pass the
            pagination_key from the previous page to fetch the next page.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AssetPriceHistoryRow'
        '400':
          description: Bad request - missing or invalid parameters
        '500':
          description: Internal server error
components:
  schemas:
    AssetSymbol:
      type: string
      enum:
        - BTC
        - ETH
        - XRP
        - SOL
        - DOGE
        - BNB
        - HYPE
    AssetVariant:
      type: string
      enum:
        - 5m
        - 15m
        - 1h
        - 4h
        - 1d
    AssetPriceHistoryRow:
      type: object
      description: >-
        One bucket of an asset's price history at a fixed time-window
        resolution.
      required:
        - asset_symbol
        - asset_open_price
        - asset_close_price
        - variant
        - start_time
        - end_time
      properties:
        asset_symbol:
          type: string
        asset_open_price:
          type: number
          format: double
          description: Opening price at `start_time`.
        asset_close_price:
          type: number
          format: double
          description: Closing price at `end_time`.
        price_change_percentage:
          type:
            - number
            - 'null'
          format: double
        outcome:
          type:
            - string
            - 'null'
          description: >-
            Candle direction: "up" if close > open, "down" if close ≤ open, null
            if no close yet
        variant:
          type: string
          description: 'Time window: "5m", "15m", "1h", "1d"'
        start_time:
          type: integer
          format: int64
          description: Window start timestamp (seconds since epoch)
        end_time:
          type: integer
          format: int64
          description: Window end timestamp (seconds since epoch)

````