> ## 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 Database Orders

> Get order history from a database.

Args:
    db_path: Full path to the database file
    limit: Maximum number of orders to return
    offset: Offset for pagination
    status: Optional status filter
    
Returns:
    List of orders with pagination info



## OpenAPI

````yaml /api-reference/openapi.json get /archived-bots/{db_path}/orders
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:
  /archived-bots/{db_path}/orders:
    get:
      tags:
        - Archived Bots
      summary: Get Database Orders
      description: |-
        Get order history from a database.

        Args:
            db_path: Full path to the database file
            limit: Maximum number of orders to return
            offset: Offset for pagination
            status: Optional status filter
            
        Returns:
            List of orders with pagination info
      operationId: get_database_orders_archived_bots__db_path__orders_get
      parameters:
        - name: db_path
          in: path
          required: true
          schema:
            type: string
            title: Db Path
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            description: Limit number of orders returned
            default: 100
            title: Limit
          description: Limit number of orders returned
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            description: Offset for pagination
            default: 0
            title: Offset
          description: Offset for pagination
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by order status
            title: Status
          description: Filter by order status
      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

````