> ## 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 Position Mode

> Get current position mode for a perpetual connector.

Args:
    account_name: Name of the account
    connector_name: Name of the perpetual connector

Returns:
    Dictionary with current position mode, connector name, and account name

Raises:
    HTTPException: 400 if not a perpetual connector



## OpenAPI

````yaml /api-reference/openapi.json get /trading/{account_name}/{connector_name}/position-mode
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/{account_name}/{connector_name}/position-mode:
    get:
      tags:
        - Trading
      summary: Get Position Mode
      description: |-
        Get current position mode for a perpetual connector.

        Args:
            account_name: Name of the account
            connector_name: Name of the perpetual connector

        Returns:
            Dictionary with current position mode, connector name, and account name

        Raises:
            HTTPException: 400 if not a perpetual connector
      operationId: >-
        get_position_mode_trading__account_name___connector_name__position_mode_get
      parameters:
        - name: account_name
          in: path
          required: true
          schema:
            type: string
            title: Account Name
        - name: connector_name
          in: path
          required: true
          schema:
            type: string
            title: Connector Name
      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

````