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

# Open positions

> Returns all currently open positions. Requires the `READ_ONLY` (or higher) permission scope.



## OpenAPI

````yaml GET /account/{account_id}/positions
openapi: 3.1.0
info:
  title: DojiFunded Trading API
  description: >-
    Public REST interface for algorithmic trading on DojiFunded. Place orders,
    manage positions, and pull account state programmatically.
  version: 1.0.0
  contact:
    email: business@dojifunded.com
servers:
  - url: https://engine.dojifunded.com/v1
    description: Production
security:
  - apiKey: []
    apiSecret: []
tags:
  - name: Accounts
    description: Account state, positions, history, risk, and analytics.
  - name: Orders
    description: Place, cancel, and close orders across all venues.
  - name: Market data
    description: Public price feeds and symbol catalog. No authentication required.
paths:
  /account/{account_id}/positions:
    get:
      tags:
        - Accounts
      summary: Open positions
      description: >-
        Returns all currently open positions. Requires the `READ_ONLY` (or
        higher) permission scope.
      operationId: getOpenPositions
      parameters:
        - $ref: '#/components/parameters/AccountId'
      responses:
        '200':
          description: List of open positions.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Position'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    AccountId:
      name: account_id
      in: path
      required: true
      description: UUID of the account. Must be owned by the authenticated user.
      schema:
        type: string
        format: uuid
  schemas:
    Position:
      type: object
      properties:
        symbol:
          type: string
          description: Tradable symbol.
          example: BTC-USD
        side:
          type: string
          enum:
            - BUY
            - SELL
          description: Position side.
        quantity:
          type: number
          description: Position size in base asset.
        entry_price:
          type: number
          description: Average entry price.
        mark_price:
          type: number
          description: Current mark price.
        unrealized_pnl:
          type: number
          description: Unrealized profit or loss.
        leverage:
          type: number
          description: Position leverage.
        venue:
          type: string
          description: Execution venue.
          example: GMX
  responses:
    Unauthorized:
      description: Missing or invalid API credentials.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: unauthorized
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: not_found
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key generated at Dashboard, Settings, Developer. Format:
        `doji_ak_...`
    apiSecret:
      type: apiKey
      in: header
      name: X-API-Secret
      description: 'API secret returned once at key creation. Format: `doji_sk_...`'

````