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

> Get current positions across all or filtered perpetual connectors.

This endpoint fetches real-time position data directly from the connectors,
including unrealized PnL, leverage, funding fees, and margin information.

Args:
    filter_request: JSON payload with filtering criteria

Returns:
    Paginated response with position data and pagination metadata

Raises:
    HTTPException: 500 if there's an error fetching positions



## OpenAPI

````yaml /api-reference/openapi.json post /trading/positions
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/positions:
    post:
      tags:
        - Trading
      summary: Get Positions
      description: >-
        Get current positions across all or filtered perpetual connectors.


        This endpoint fetches real-time position data directly from the
        connectors,

        including unrealized PnL, leverage, funding fees, and margin
        information.


        Args:
            filter_request: JSON payload with filtering criteria

        Returns:
            Paginated response with position data and pagination metadata

        Raises:
            HTTPException: 500 if there's an error fetching positions
      operationId: get_positions_trading_positions_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PositionFilterRequest'
        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:
    PositionFilterRequest:
      properties:
        limit:
          type: integer
          maximum: 1000
          minimum: 1
          title: Limit
          description: Number of items per page
          default: 100
        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
      type: object
      title: PositionFilterRequest
      description: Request model for filtering positions
    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

````