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

# Get user trades

> Returns a paginated list of trades made by a specific user on the specified platform.



## OpenAPI

````yaml GET /v1/api/profile/trades
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/profile/trades:
    get:
      tags:
        - Profiles
      summary: Get user trades
      description: >-
        Returns a paginated list of trades made by a specific user on the
        specified platform.
      operationId: getUserTrades
      parameters:
        - name: provider
          in: query
          required: true
          description: The prediction market platform.
          schema:
            type: string
            enum:
              - kalshi
              - polymarket
        - name: user
          in: query
          required: true
          description: The user identifier on the platform.
          schema:
            type: string
        - name: limit
          in: query
          required: false
          description: Maximum number of trades to return.
          schema:
            type: string
        - name: cursor
          in: query
          required: false
          description: Pagination cursor.
          schema:
            type: string
      responses:
        '200':
          description: A paginated list of user trades.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetUserTradesResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    GetUserTradesResponse:
      type: object
      properties:
        trades:
          type: array
          items:
            $ref: '#/components/schemas/UserTrade'
        pagination:
          $ref: '#/components/schemas/Pagination'
        meta:
          type: object
          properties:
            request_time:
              type: integer
            platform:
              type: string
            data_freshness:
              type: string
              format: date-time
    UserTrade:
      type: object
      properties:
        platform:
          type: string
        trade_id:
          type: string
        user_id:
          type: string
        market_id:
          type: string
        ticker:
          type: string
        title:
          type: string
          description: Market title.
        side:
          type: string
          description: Trade side (buy or sell).
        outcome:
          type: string
          description: Outcome traded (yes or no).
        price:
          type: integer
          description: Trade price in cents.
        size:
          type: integer
          description: Number of contracts.
        timestamp:
          type: string
          format: date-time
        metadata:
          type: object
          properties:
            maker_nickname:
              type: string
            maker_action:
              type: string
    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.
  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'
    RateLimited:
      description: Rate limit exceeded. Check the `Retry-After` header.
      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.

````