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

# Get Trades

> Get trade history across all or filtered accounts with complex filtering.

Args:
    filter_request: JSON payload with filtering criteria

Returns:
    Paginated response with trade data and pagination metadata



## OpenAPI

````yaml /api-reference/openapi.json post /trading/trades
openapi: 3.1.0
info:
  title: Hummingbot API
  description: API for managing Hummingbot trading instances
  version: 1.0.1
servers:
  - url: http://localhost:8000
    description: Local development server
security: []
paths:
  /trading/trades:
    post:
      tags:
        - Trading
      summary: Get Trades
      description: >-
        Get trade history across all or filtered accounts with complex
        filtering.


        Args:
            filter_request: JSON payload with filtering criteria

        Returns:
            Paginated response with trade data and pagination metadata
      operationId: get_trades_trading_trades_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TradeFilterRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBasic: []
components:
  schemas:
    TradeFilterRequest:
      properties:
        limit:
          type: integer
          maximum: 1000
          minimum: 1
          title: Limit
          description: Number of items per page
          default: 100
        start_time:
          anyOf:
            - type: integer
            - type: 'null'
          title: Start Time
          description: Start time as Unix timestamp in milliseconds
        end_time:
          anyOf:
            - type: integer
            - type: 'null'
          title: End Time
          description: End time as Unix timestamp in milliseconds
        cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Cursor
          description: Cursor for next page
        account_names:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Account Names
          description: List of account names to filter by
        connector_names:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Connector Names
          description: List of connector names to filter by
        trading_pairs:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Trading Pairs
          description: List of trading pairs to filter by
        trade_types:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Trade Types
          description: List of trade types to filter by (BUY/SELL)
      type: object
      title: TradeFilterRequest
      description: Request model for filtering trades
    PaginatedResponse:
      properties:
        data:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Data
        pagination:
          additionalProperties: true
          type: object
          title: Pagination
      type: object
      required:
        - data
        - pagination
      title: PaginatedResponse
      description: Generic paginated response.
      example:
        data: []
        pagination:
          has_more: true
          limit: 100
          next_cursor: '2024-01-10T12:00:00'
          total_count: 500
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBasic:
      type: http
      scheme: basic

````