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

# Search Swaps

> Search swap history with filters.

Args:
    network: Filter by network (e.g., 'solana-mainnet-beta')
    connector: Filter by connector (e.g., 'jupiter')
    wallet_address: Filter by wallet address
    trading_pair: Filter by trading pair (e.g., 'SOL-USDC')
    status: Filter by status (SUBMITTED, CONFIRMED, FAILED)
    start_time: Start timestamp (unix seconds)
    end_time: End timestamp (unix seconds)
    limit: Max results (default 50, max 1000)
    offset: Pagination offset

Returns:
    Paginated list of swaps



## OpenAPI

````yaml /api-reference/openapi.json post /gateway/swaps/search
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:
  /gateway/swaps/search:
    post:
      tags:
        - Gateway Swaps
      summary: Search Swaps
      description: |-
        Search swap history with filters.

        Args:
            network: Filter by network (e.g., 'solana-mainnet-beta')
            connector: Filter by connector (e.g., 'jupiter')
            wallet_address: Filter by wallet address
            trading_pair: Filter by trading pair (e.g., 'SOL-USDC')
            status: Filter by status (SUBMITTED, CONFIRMED, FAILED)
            start_time: Start timestamp (unix seconds)
            end_time: End timestamp (unix seconds)
            limit: Max results (default 50, max 1000)
            offset: Pagination offset

        Returns:
            Paginated list of swaps
      operationId: search_swaps_gateway_swaps_search_post
      parameters:
        - name: network
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Network
        - name: connector
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Connector
        - name: wallet_address
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Wallet Address
        - name: trading_pair
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Trading Pair
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Status
        - name: start_time
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Start Time
        - name: end_time
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: End Time
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 50
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            default: 0
            title: Offset
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBasic: []
components:
  schemas:
    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

````