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

# List account positions

> Requires `account:read`. Internal provider data and raw exchange responses are never returned.



## OpenAPI

````yaml /openapi/portfobit-openapi.yaml get /accounts/{account_id}/positions
openapi: 3.1.0
info:
  title: Portfobit Open API
  version: 0.1.0
  description: >
    Public REST API for direct API clients, CI, scripts, service accounts,
    third-party agents, and developer integrations.

    Public REST requests use scoped Portfobit Open API keys. OAuth access tokens
    issued for the Portfobit MCP resource are not accepted by `/api/v1/*`
    endpoints.

    Portfobit is crypto-CEX-only. Financial values are decimal strings and
    timestamps are RFC 3339 UTC strings.

    The API never supports withdrawals, external-address transfers,
    cross-exchange transfers, or P2P transfers.
servers:
  - url: https://api.portfobit.com/api/v1
security:
  - bearerAuth: []
tags:
  - name: Context
  - name: Accounts
  - name: Portfolios
  - name: Valuation
  - name: Activity
  - name: Trading
  - name: Market data
  - name: Support
paths:
  /accounts/{account_id}/positions:
    get:
      tags:
        - Accounts
      summary: List account positions
      description: >-
        Requires `account:read`. Internal provider data and raw exchange
        responses are never returned.
      operationId: listAccountPositions
      parameters:
        - $ref: '#/components/parameters/AccountId'
        - $ref: '#/components/parameters/Symbol'
        - $ref: '#/components/parameters/PositionSide'
        - $ref: '#/components/parameters/InstrumentType'
        - $ref: '#/components/parameters/MarginMode'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Offset'
      responses:
        '200':
          $ref: '#/components/responses/AccountPositionsResponse'
        default:
          $ref: '#/components/responses/ErrorResponse'
components:
  parameters:
    AccountId:
      name: account_id
      in: path
      required: true
      schema:
        type: string
      description: Connected CEX account ID.
    Symbol:
      name: symbol
      in: query
      schema:
        type: string
      description: CCXT unified symbol.
    PositionSide:
      name: side
      in: query
      schema:
        type: string
        enum:
          - long
          - short
    InstrumentType:
      name: type
      in: query
      schema:
        type: string
        enum:
          - spot
          - margin
          - swap
          - future
          - option
    MarginMode:
      name: margin_mode
      in: query
      schema:
        type: string
        enum:
          - cross
          - isolated
          - none
    Limit:
      name: limit
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 50
    Offset:
      name: offset
      in: query
      schema:
        type: integer
        minimum: 0
        default: 0
  responses:
    AccountPositionsResponse:
      description: Account position list response.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AccountPositionsResponseSchema'
    ErrorResponse:
      description: Error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  schemas:
    AccountPositionsResponseSchema:
      type: object
      required:
        - data
        - meta
      properties:
        data:
          type: array
          items:
            type: object
            required:
              - account_id
              - venue
              - type
              - symbol
              - side
              - contracts
              - contract_size
              - entry_price
              - mark_price
              - notional
              - unrealized_pnl
              - risk
              - as_of
            properties:
              account_id:
                type: string
              venue:
                type: string
              type:
                type: string
              symbol:
                type: string
              side:
                type: string
              contracts:
                type: string
              contract_size:
                type: string
              entry_price:
                type: string
              mark_price:
                type: string
              notional:
                type: string
              unrealized_pnl:
                type: string
              risk:
                type: object
                required:
                  - status
                  - level
                  - model_version
                  - as_of
                  - reasons
                  - metrics
                properties:
                  status:
                    type: string
                  level:
                    type: string
                  model_version:
                    type: string
                  as_of:
                    type: string
                    format: date-time
                  reasons:
                    type: array
                    items:
                      type: object
                  metrics:
                    type: object
                    required:
                      - distance_to_liquidation
                    properties:
                      distance_to_liquidation:
                        type: string
              as_of:
                type: string
                format: date-time
        meta:
          type: object
          required:
            - total
            - limit
            - offset
            - has_next
            - request_id
            - generated_at
          properties:
            total:
              type: integer
            limit:
              type: integer
            offset:
              type: integer
            has_next:
              type: boolean
            request_id:
              type: string
            generated_at:
              type: string
              format: date-time
      example:
        data:
          - account_id: acc_01H8XFK9A
            venue: binance
            type: swap
            symbol: BTC/USDT:USDT
            side: long
            contracts: '1'
            contract_size: '1'
            entry_price: '60000.00'
            mark_price: '61000.00'
            notional: '61000.00'
            unrealized_pnl: '1000.00'
            risk:
              status: available
              level: medium
              model_version: risk_v1
              as_of: '2026-08-07T08:00:00Z'
              reasons: []
              metrics:
                distance_to_liquidation: '0.34'
            as_of: '2026-08-07T08:00:00Z'
        meta:
          total: 1
          limit: 50
          offset: 0
          has_next: false
          request_id: req_01J2K8B7QW
          generated_at: '2026-08-07T08:00:01Z'
    ErrorEnvelope:
      type: object
      required:
        - error
        - meta
      properties:
        error:
          $ref: '#/components/schemas/Error'
        meta:
          $ref: '#/components/schemas/Meta'
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
        message:
          type: string
        details:
          type: object
          additionalProperties: true
    Meta:
      type: object
      required:
        - request_id
        - generated_at
      properties:
        request_id:
          type: string
        generated_at:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Portfobit Open API key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.