---
title: "Get account positions"
method: GET
path: "/rest/api/v1/accounts/{accountId}/positions"
tags: ["Trading API"]
---

# Get account positions

`GET /rest/api/v1/accounts/{accountId}/positions`

## Path parameters

- `accountId` string, uuid, required

## Response `200`

OK

- PositionDTO[]
  - `brokerTimeClose` string — Original time string from the broker
  - `brokerTimeOpen` string — Original time string from the broker
  - `closePrice` number
  - `closeTime` string, date-time — ISO 8601
  - `comment` string
  - `commission` number
  - `dealType` 'DealBuy' | 'DealSell' | 'Balance' | 'Credit' | 'Charge' | 'Correction' | 'Bonus' | 'Commission' | 'DailyCommission' | 'MonthlyCommission' | 'DailyAgentCommission' | 'MonthlyAgentCommission' | 'InterestRate' | 'CanceledBuy' | 'CanceledSell' | 'Dividend' | 'FrankedDividend' | 'Tax' | 'AgentCommission' | 'SoCompensation' | 'SoCreditCompensation'
  - `id` string
  - `magicNumber` string — Magic number carried by the position, as a string. Absent/null when no magic number was set on the order (a magic of 0 on the broker side is reported as absent rather than as the string "0").
  - `netProfit` number
  - `openPrice` number
  - `openTime` string, date-time — ISO 8601
  - `orderType` 'Buy' | 'Sell' | 'BuyLimit' | 'SellLimit' | 'BuyStop' | 'SellStop'
  - `placedType` 'Manually' | 'Mobile' | 'Web' | 'ByExpert' | 'OnSL' | 'OnTP' | 'OnStopOut' | 'OnRollover' | 'OnVmargin' | 'OnSplit' | 'ByDealer' | 'Gateway' | 'Signal' | 'Settlement' | 'Transfer' | 'Sync' | 'ExternalService' | 'Migration'
  - `profit` number
  - `requestId` string
  - `state` string
  - `stopLoss` number
  - `swap` number
  - `symbol` string
  - `takeProfit` number
  - `volume` number

---

[API](https://skmtc.net/metacopier/apis/metacopier-api.md) · [All operations](https://skmtc.net/metacopier/apis/metacopier-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/metacopier/metacopier-api/revisions/ff1699330afa/schema)
