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

# Platform Stats

> Returns aggregate platform statistics including volume, liquidity, and market counts.



## OpenAPI

````yaml GET /v1/api/analytics/stats
openapi: 3.1.0
info:
  title: Dot Prediction API
  description: >-
    A unified API for accessing prediction market data across Kalshi,
    Polymarket, and Limitless.
  version: 1.0.0
servers:
  - url: https://api.dotprediction.io
security:
  - apiKey: []
paths:
  /v1/api/analytics/stats:
    get:
      tags:
        - Analytics
      summary: Platform statistics
      description: >-
        Returns aggregate platform statistics including volume, liquidity, and
        market counts.
      operationId: getPlatformStats
      parameters:
        - name: provider
          in: query
          required: false
          description: Filter by platform. Omit for cross-platform results.
          schema:
            type: string
            enum:
              - kalshi
              - polymarket
              - limitless
      responses:
        '200':
          description: Platform-level aggregate statistics.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlatformStatsResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: 0d5813fe-a3df-4eee-bda5-8e01bfe0683a
        '500':
          $ref: 13256dda-f2cf-48d5-853d-eda20215fa08
components:
  schemas:
    PlatformStatsResponse:
      type: object
      properties:
        stats:
          $ref: '#/components/schemas/AggregateStats'
        meta:
          type: object
          properties:
            platforms:
              type: array
              items:
                type: string
            request_time:
              type: integer
              format: int64
            cache_hit:
              type: boolean
            data_completeness:
              type: object
              additionalProperties:
                type: string
    AggregateStats:
      type: object
      properties:
        total_markets:
          type: integer
        active_markets:
          type: integer
        resolved_markets:
          type: integer
        volume_24h:
          type: number
        volume_7d:
          type: number
        volume_30d:
          type: number
        total_volume:
          type: number
        total_liquidity:
          type: number
        total_open_interest:
          type: number
        top_category:
          type: string
        avg_spread:
          type: number
        market_count_by_status:
          type: object
          additionalProperties:
            type: integer
        category_breakdown:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/CategoryBreakdownEntry'
        platforms:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/PlatformStatsDetail'
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            status:
              type: integer
              description: HTTP status code.
            message:
              type: string
              description: Human-readable error message.
            resolution:
              type: string
              description: Suggested action to resolve the error.
            error_text:
              type: string
              description: Detailed error information.
    CategoryBreakdownEntry:
      type: object
      properties:
        volume:
          type: number
        markets:
          type: integer
    PlatformStatsDetail:
      type: object
      properties:
        total_markets:
          type: integer
        active_markets:
          type: integer
        resolved_markets:
          type: integer
        volume_24h:
          type: number
        volume_7d:
          type: number
        volume_30d:
          type: number
        total_volume:
          type: number
        total_liquidity:
          type: number
        total_open_interest:
          type: number
        top_category:
          type: string
        avg_spread:
          type: number
        market_count_by_status:
          type: object
          additionalProperties:
            type: integer
        category_breakdown:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/CategoryBreakdownEntry'
        data_completeness:
          type: string
  responses:
    BadRequest:
      description: Invalid request parameters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key for authentication. Generate one via the dashboard or the
        `/v1/api/auth/api-keys` endpoint.

````