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

# Get Historical Prices

> Retrieve historical price data for a specific market with configurable time intervals



## OpenAPI

````yaml GET /markets/{slug}/historical-price
openapi: 3.0.0
info:
  title: Limitless Exchange API
  description: >-
    Production-ready REST API for prediction market trading, portfolio
    management, and market data on Limitless Exchange (Base L2).
  version: '1.0'
  contact:
    name: API Support
    url: https://limitless.exchange
    email: help@limitless.network
servers:
  - url: https://api.limitless.exchange
    description: Production API
security: []
tags:
  - name: Authentication
    description: User authentication and session management
  - name: Markets
    description: Browse, search, and analyze prediction markets
  - name: Market Navigation
    description: Navigation tree, market pages, and property filters
  - name: Trading
    description: Create, manage, and cancel orders
  - name: Portfolio
    description: Position tracking, trade history, and performance
  - name: API Tokens
    description: Scoped API token management for partner integrations
  - name: Partner Accounts
    description: Sub-account creation and allowance recovery for partner integrations
  - name: System
    description: Public API state and availability information
paths:
  /markets/{slug}/historical-price:
    get:
      tags:
        - Trading
      summary: Get Historical Prices
      description: >-
        Retrieve historical price data for a specific market with configurable
        time intervals
      operationId: MarketOrderbookController_getHistoricalPrice
      parameters:
        - name: to
          required: false
          in: query
          description: End date for historical data
          schema:
            example: '2024-01-31T23:59:59Z'
        - name: from
          required: false
          in: query
          description: Start date for historical data
          schema:
            example: '2024-01-01T00:00:00Z'
        - name: interval
          required: false
          in: query
          description: Time interval for data points
          schema:
            enum:
              - 1h
              - 6h
              - 1d
              - 1w
              - 1m
              - all
            type: string
        - name: slug
          required: true
          in: path
          description: Market slug identifier
          schema:
            example: presidential-election-2024
      responses:
        '200':
          description: Historical price data
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    title:
                      type: string
                      example: YES Token
                    prices:
                      type: array
                      items:
                        type: object
                        properties:
                          price:
                            type: number
                            example: 0.75
                          timestamp:
                            type: string
                            example: '2024-01-15T10:30:00Z'

````