> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anthid.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get current positions

> Returns the latest broker position rows for the authenticated user or API-key principal's organization, optionally filtered by trading account and symbol. API-key callers need organization intent read permission; user callers need an organization admin, member, or read-only role. When `account_id` is supplied, the trading account must belong to the caller's organization.



## OpenAPI

````yaml /api-reference/ledger.openapi.json get /v1/positions
openapi: 3.1.0
info:
  title: ledger
  description: ''
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://api.anthid.com
    description: Production
security: []
tags:
  - name: Ledger
    description: Ledger API
paths:
  /v1/positions:
    get:
      tags:
        - Ledger
      summary: Get current positions
      description: >-
        Returns the latest broker position rows for the authenticated user or
        API-key principal's organization, optionally filtered by trading account
        and symbol. API-key callers need organization intent read permission;
        user callers need an organization admin, member, or read-only role. When
        `account_id` is supplied, the trading account must belong to the
        caller's organization.
      operationId: getCurrentPositions
      parameters:
        - name: account_id
          in: query
          description: Filter positions by trading account id
          required: false
          schema:
            type: string
            format: uuid
        - name: symbol
          in: query
          description: Filter positions by symbol. Symbols are normalized to uppercase
          required: false
          schema:
            type: string
          example: AAPL
        - name: limit
          in: query
          description: >-
            Maximum number of results to return. Defaults to 100 and is capped
            at 1000
          required: false
          schema:
            type: integer
            format: int32
            minimum: 0
        - name: sort_by
          in: query
          description: Field to sort positions by. Defaults to received_at
          required: false
          schema:
            $ref: '#/components/schemas/PositionsSortBy'
        - name: sort_direction
          in: query
          description: Sort direction. Defaults to desc
          required: false
          schema:
            $ref: '#/components/schemas/SortDirection'
        - name: next_cursor
          in: query
          description: Opaque keyset pagination cursor from a previous response
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Positions retrieved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PositionsResponse'
        '400':
          description: Query parameters or pagination cursor are invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: >-
            Missing or invalid authentication credentials or organization
            context
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Caller lacks intent read access, organization access, or ownership
            of the requested trading account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Unexpected server error while reading positions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
        - apiKeyAuth: []
components:
  schemas:
    PositionsSortBy:
      type: string
      enum:
        - received_at
        - symbol
        - quantity
        - average_cost
    SortDirection:
      type: string
      enum:
        - Asc
        - Desc
    PositionsResponse:
      type: object
      required:
        - data
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/BrokerPosition'
        next_cursor:
          type:
            - string
            - 'null'
    Error:
      oneOf:
        - type: object
          required:
            - EncryptionError
          properties:
            EncryptionError:
              type: string
        - type: object
          required:
            - WorkOsError
          properties:
            WorkOsError:
              type: string
        - type: object
          required:
            - KvError
          properties:
            KvError:
              type: string
        - type: object
          required:
            - StreamError
          properties:
            StreamError:
              type: string
        - type: object
          required:
            - InternalError
          properties:
            InternalError:
              type: string
        - type: object
          required:
            - ThirdPartyError
          properties:
            ThirdPartyError:
              type: string
        - type: object
          required:
            - ParseError
          properties:
            ParseError:
              type: string
        - type: object
          required:
            - NotFound
          properties:
            NotFound:
              type: string
        - type: object
          required:
            - AlreadyExists
          properties:
            AlreadyExists:
              type: string
        - type: object
          required:
            - BadRequest
          properties:
            BadRequest:
              type: string
        - type: object
          required:
            - Forbidden
          properties:
            Forbidden:
              type: string
        - type: object
          required:
            - Unauthorized
          properties:
            Unauthorized:
              type: string
        - type: object
          required:
            - Database
          properties:
            Database:
              type: string
        - type: object
          required:
            - TooManyRequests
          properties:
            TooManyRequests:
              type: string
        - type: object
          required:
            - BrokerError
          properties:
            BrokerError:
              type: string
        - type: object
          required:
            - AuthError
          properties:
            AuthError:
              type: string
        - type: object
          required:
            - InvalidInput
          properties:
            InvalidInput:
              type: string
        - type: object
          required:
            - ConnectionLimitExceeded
          properties:
            ConnectionLimitExceeded:
              type: string
    BrokerPosition:
      type: object
      required:
        - organization_id
        - broker
        - account_id
        - symbol
        - quantity
        - average_cost
        - received_at
      properties:
        account_id:
          type: string
          format: uuid
        average_cost:
          $ref: '#/components/schemas/Price'
        broker:
          $ref: '#/components/schemas/Broker'
        organization_id:
          type: string
          format: uuid
        quantity:
          $ref: '#/components/schemas/Quantity'
        received_at:
          type: string
          format: date-time
        symbol:
          type: string
    Price:
      type: string
    Broker:
      type: string
      enum:
        - unspecified
        - lightspeed
        - alpaca
    Quantity:
      type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````