> ## 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 Portfolio State

> Get the current state of all or filtered accounts portfolio.

Args:
    filter_request: JSON payload with filtering criteria including:
        - account_names: Optional list of account names to filter by
        - connector_names: Optional list of connector names to filter by
        - skip_gateway: If True, skip Gateway wallet balance updates for faster CEX-only queries
        - refresh: If True, refresh balances before returning. If False (default), return cached state

Returns:
    Dict containing account states with connector balances and token information



## OpenAPI

````yaml /api-reference/openapi.json post /portfolio/state
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:
  /portfolio/state:
    post:
      tags:
        - Portfolio
      summary: Get Portfolio State
      description: |-
        Get the current state of all or filtered accounts portfolio.

        Args:
            filter_request: JSON payload with filtering criteria including:
                - account_names: Optional list of account names to filter by
                - connector_names: Optional list of connector names to filter by
                - skip_gateway: If True, skip Gateway wallet balance updates for faster CEX-only queries
                - refresh: If True, refresh balances before returning. If False (default), return cached state

        Returns:
            Dict containing account states with connector balances and token information
      operationId: get_portfolio_state_portfolio_state_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PortfolioStateFilterRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties:
                  additionalProperties:
                    items:
                      additionalProperties: true
                      type: object
                    type: array
                  type: object
                type: object
                title: Response Get Portfolio State Portfolio State Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBasic: []
components:
  schemas:
    PortfolioStateFilterRequest:
      properties:
        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
        skip_gateway:
          type: boolean
          title: Skip Gateway
          description: Skip Gateway wallet balance updates for faster CEX-only queries
          default: false
        refresh:
          type: boolean
          title: Refresh
          description: >-
            If True, refresh balances before returning. If False, return cached
            state
          default: false
      type: object
      title: PortfolioStateFilterRequest
      description: Request model for filtering portfolio state
    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

````