---
title: "Trả về vị thế mở của tài khoản"
method: GET
path: "/broker-users/{userId}/accounts/{accountId}/positions"
tags: ["Positions"]
---

# Trả về vị thế mở của tài khoản

`GET /broker-users/{userId}/accounts/{accountId}/positions`

## Request

- Base URL: `https://api.fireant.vn`
- URL: `https://api.fireant.vn/broker-users/{userId}/accounts/{accountId}/positions`
- Auth: OAuth 2
  - Implicit: `https://accounts.fireant.vn/connect/authorize`
  - Scopes: `accounts-read`
- TypeScript: <https://skmtc.dev/fireant/apis/fireant-restful-api/docs/broker-users/:userId/accounts/:accountId/positions/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `userId` integer, required
- `accountId` string, required

## Response `200`

Thành công

- FireAntApiModelsTradingPosition[]
  - `id` string
  - `instrument` string
  - `instrumentItem` FireAntApiModelsTradingInstrumentItem
    - `instrument` string
    - `symbol` string
    - `name` string
    - `exchange` string
    - `unit` integer
    - `type` string
    - `supportStopOrder` boolean
    - `supportLimitOrder` boolean
  - `qty` number, double
  - `side` string
  - `avgPrice` number, double
  - `unrealizedPl` number, double

## Other responses

- `400`: Có lỗi khi thực hiện thao tác
- `403`: Lỗi kết nối tài khoản liên kết tại công ty chứng khoán. Cần liên kết lại tài khoản giao dịch
- `404`: User không tồn tại

---

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