# List Accounts

> Return all trading accounts owned by the specified client profile.

Source: /admin/accounts-funding/client--profiles/accounts-service_-profile-accounts

## `GET /profiles/{id}/accounts`

**List Accounts**

Return all trading accounts owned by the specified client profile.

Tags: `Client Profiles`

#### Path parameters

- `id` (string) (required)


### Responses

#### `200` — A successful response.

**Content-Type:** `application/json`

All trading accounts owned by a profile, returned as portfolio snapshots.
- `accounts` (array)
  - items:
    Snapshot of an account's balance, equity, free margin, and open P&L.
    - `accountId` (string)
    - `currency` (string)
    - `balance` (number)
    - `unrealizedPnl` (number)
    - `usedMargin` (number)
    - `pendingMargin` (number)
    - `accountVersion` (string)
    - `inMarginCall` (boolean)
    - `inStopOut` (boolean)
    - `positions` (array)
      - items:
        Net open exposure on a symbol for a single account, with average entry price,
current floating P&L, and any attached protection (stop loss / take profit) levels.
        - `id` (string)
        - `symbolId` (string)
        - `accountId` (string)
        - `orderId` (string)
        - `symbolName` (string)
        - `openPrice` (number)
        - `openPriceRaw` (number)
        - `closePrice` (number)
        - `closePriceRaw` (number)
        - `side` (string)
          - enum: `TRADE_SIDE_UNSPECIFIED`, `TRADE_SIDE_BUY`, `TRADE_SIDE_SELL`
        - `status` (string)
          - enum: `POSITION_STATUS_UNSPECIFIED`, `POSITION_STATUS_OPEN`, `POSITION_STATUS_CLOSED`
        - `commission` (number)
        - `swap` (number)
        - `profit` (number)
        - `units` (number)
        - `qty` (number)
        - `qtyClosed` (number)
        - `comment` (string)
        - `createdAt` (string)
        - `updatedAt` (string)
        - `realizedPnl` (number)
        - `unitsClosed` (number)
        - `usdPnl` (number)
        - `currentPrice` (number)
        - `margin` (number)
        - `fundingAccrued` (number)
    - `orders` (array)
      - items:
        A working or completed trading instruction on an account: market, limit, stop,
or protection (SL/TP). Carries side, type, time-in-force, status, requested protection
distances/prices, and the fill price once executed.
        - `id` (string)
        - `accountId` (string)
        - `groupId` (string)
        - `symbolId` (string)
        - `symbolName` (string)
        - `positionId` (string)
        - `clientOrderId` (string)
        - `ipAddress` (string)
        - `managerId` (string)
        - `parentOrderId` (string)
        - `cancelsOrderId` (string)
        - `venueId` (string)
        - `venueOrderId` (string)
        - `createdAt` (string)
        - `updatedAt` (string)
        - `expirationDate` (string)
        - `qtyOriginal` (number)
        - `qtyFilled` (number)
        - `seenPrice` (number)
        - `limitPrice` (number)
        - `stopPrice` (number)
        - `slippage` (number)
        - `isClosing` (boolean) — Is this a closing order
        - `trailingOffset` (string)
        - `trailingStep` (string)
        - `stopLossPts` (string)
        - `takeProfitPts` (string)
        - `stopLossPrice` (number)
        - `takeProfitPrice` (number)
        - `status` (string)
          - enum: `ORDER_STATUS_UNSPECIFIED`, `ORDER_STATUS_STARTED`, `ORDER_STATUS_INACTIVE`, `ORDER_STATUS_ACCEPTED`, `ORDER_STATUS_WORKING`, `ORDER_STATUS_PENDING_EXECUTION`, `ORDER_STATUS_P_FILLED`, `ORDER_STATUS_FILLED`, `ORDER_STATUS_CANCELED`, `ORDER_STATUS_REJECTED`, `ORDER_STATUS_EXPIRED`
        - `side` (string)
          - enum: `TRADE_SIDE_UNSPECIFIED`, `TRADE_SIDE_BUY`, `TRADE_SIDE_SELL`
        - `type` (string)
          - enum: `ORDER_TYPE_UNSPECIFIED`, `ORDER_TYPE_MARKET`, `ORDER_TYPE_LIMIT`, `ORDER_TYPE_STOP`, `ORDER_TYPE_STOP_LIMIT`, `ORDER_TYPE_TRAILING_STOP`
        - `timeInForce` (string)
          - enum: `ORDER_TIF_UNSPECIFIED`, `ORDER_TIF_FILL_OR_KILL`, `ORDER_TIF_GOOD_TILL_CANCEL`, `ORDER_TIF_IMMEDIATE_OR_CANCEL`, `ORDER_TIF_GOOD_TILL_DATE`, `ORDER_TIF_GOOD_TILL_DAY`
        - `comment` (string)
        - `fillPrice` (number)
        - `fillPriceRaw` (number)
        - `unitsOriginal` (number)
        - `unitsFilled` (number)
        - `completed` (boolean)
        - `initialMargin` (number)
        - `triggerQuote` (object) — Top-of-book bid/ask snapshot for a symbol at a point in time, used for streaming
market data and to record the trigger price on filled orders.
          Top-of-book bid/ask snapshot for a symbol at a point in time, used for streaming
market data and to record the trigger price on filled orders.
          - `symbolId` (string)
          - `bid` (number)
          - `ask` (number)
          - `volume` (string)
          - `datetime` (string)
        - `md` (string)
    - `groupId` (string)
    - `usdPnl` (number)
    - `maxLeverage` (string)
    - `status` (string)
      - enum: `TRADE_STATUS_UNSPECIFIED`, `TRADE_STATUS_FULL`, `TRADE_STATUS_CLOSE_ONLY`, `TRADE_STATUS_DISABLED`, `TRADE_STATUS_LONG_ONLY`
    - `isSb` (boolean)
    - `isDemo` (boolean)
    - `profileId` (string)
    - `createdAt` (string)
    - `updatedAt` (string)
    - `nop` (number)
    - `marginCalcTypeOverride` (string) — MarginCalculationType defines how opposing positions on the same symbol are combined.

 - MARGIN_CALC_TYPE_UNSPECIFIED: unspecified — behaves as SUM
 - MARGIN_CALC_TYPE_SUM: long_margin + short_margin (most conservative)
 - MARGIN_CALC_TYPE_MAX: max(long_margin, short_margin) — partial hedging relief
 - MARGIN_CALC_TYPE_NET: margin on abs(long_qty - short_qty) — full hedging offset
      - enum: `MARGIN_CALC_TYPE_UNSPECIFIED`, `MARGIN_CALC_TYPE_SUM`, `MARGIN_CALC_TYPE_MAX`, `MARGIN_CALC_TYPE_NET`
    - `dailyStatement` (boolean)
- `total` (string)

#### `default` — An unexpected error response.

**Content-Type:** `application/json`

- `code` (integer)
- `message` (string)
- `details` (array)
  - items:
    - `@type` (string)

