---
title: "Get open positions"
method: GET
path: "/trade/accounts/{accountId}/positions"
tags: ["Account"]
---

# Get open positions

`GET /trade/accounts/{accountId}/positions`

## Request

- Base URL: `https://demo.tradelocker.com/backend-api`
- URL: `https://demo.tradelocker.com/backend-api/trade/accounts/{accountId}/positions`
- Auth: HTTP bearer

Get all currently open positions for an account. The column names are defined in the `positionsConfig` part of the `/trade/config` route

## Path parameters

- `accountId` integer, required

## Headers

- `accNum` integer, required

## Response `200`

- PositionsResponse: Positions response
  - `d` Positions, required
    - `positions` array[]
      - string[]
  - `s` string, required: Status will always be `ok`.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/tradelocker/apis/trading-api.md) - [All operations](https://skmtc.dev/tradelocker/apis/trading-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tradelocker/apis/trading-api/revisions/db312f2b8306?raw)
