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

# Whale Trades

> Returns large trades above a minimum size threshold for a given market.



## OpenAPI

````yaml GET /v1/api/trades/whales
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/trades/whales:
    get:
      tags:
        - Analytics
      summary: Whale trades
      description: Returns large trades above a minimum size threshold for a given market.
      operationId: getWhaleTrades
      parameters:
        - name: provider
          in: query
          required: true
          description: The prediction market platform to query.
          schema:
            type: string
            enum:
              - kalshi
              - polymarket
              - limitless
        - name: market_id
          in: query
          required: true
          description: The market ID to query whale trades for.
          schema:
            type: string
        - name: min_size
          in: query
          required: false
          description: Minimum trade size (default 1000).
          schema:
            type: number
            default: 1000
        - name: start_time
          in: query
          required: false
          description: Start time as Unix timestamp.
          schema:
            type: integer
            format: int64
        - name: end_time
          in: query
          required: false
          description: End time as Unix timestamp.
          schema:
            type: integer
            format: int64
        - name: sort
          in: query
          required: false
          description: Sort order.
          schema:
            type: string
            enum:
              - time
              - size
            default: time
        - name: limit
          in: query
          required: false
          description: Max results to return (default 50, max 200).
          schema:
            type: integer
            default: 50
            maximum: 200
        - name: cursor
          in: query
          required: false
          description: Pagination cursor from a previous response.
          schema:
            type: string
      responses:
        '200':
          description: Whale trades for the specified market.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhaleTradesResponse'
        '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:
    WhaleTradesResponse:
      type: object
      properties:
        trades:
          type: array
          items:
            $ref: '#/components/schemas/WhaleTrade'
        pagination:
          $ref: '#/components/schemas/Pagination'
        meta:
          type: object
          properties:
            platform:
              type: string
            request_time:
              type: integer
              format: int64
            min_size_applied:
              type: number
            sort:
              type: string
            data_freshness:
              type: string
    WhaleTrade:
      type: object
      properties:
        trade_id:
          type: string
        market_id:
          type: string
        platform:
          type: string
        market_title:
          type: string
        side:
          type: string
        outcome:
          type: string
        price:
          type: number
        size:
          type: number
        notional_value:
          type: number
        timestamp:
          type: integer
          format: int64
        transaction_hash:
          type: string
        trader:
          $ref: '#/components/schemas/WhaleTrader'
    Pagination:
      type: object
      properties:
        total:
          type: integer
          description: Total number of results.
        limit:
          type: integer
          description: Number of results per page.
        has_more:
          type: boolean
          description: Whether more results are available.
        next_cursor:
          type: string
          nullable: true
          description: Cursor to use for the next page. `null` if no more results.
    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.
    WhaleTrader:
      type: object
      properties:
        address:
          type: string
        name:
          type: string
        pseudonym:
          type: string
        profile_image:
          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.

````