---
title: "List Open Positions for an Account"
method: GET
path: "/v1/trading/accounts/{account_id}/positions"
tags: ["Trading"]
---

# List Open Positions for an Account

`GET /v1/trading/accounts/{account_id}/positions`

## Request

- Base URL: `https://broker-api.giftcity.sandbox.in.alpaca.markets`
- URL: `https://broker-api.giftcity.sandbox.in.alpaca.markets/v1/trading/accounts/{account_id}/positions`
- Auth: HTTP basic

List open positions for an account

## Response `200`

Success

- Position[]
  - `asset_class` 'us_equity' | 'us_option' | 'us_index' | 'crypto' | 'crypto_perp' | 'ipo', required: This represents the category to which the asset belongs to. It serves to identify the nature of the financial instrument, with options including "us_equity" for U.S. equities, "us_option" for U.S. options, "crypto" for cryptocurrencies, and "ipo" for IPO indications of interest. This `asset_class: ipo` value is distinct from the assets API `attributes: ["ipo"]` flag.
  - `asset_id` string, uuid, required: Asset ID (For options this represents the option contract ID)
  - `asset_marginable` boolean: Indicates if this asset is marginable
  - `avg_entry_price` string, required: Average entry price of the position
  - `avg_entry_swap_rate` string, decimal: The average swap rate of the position. This is only returned for LCT accounts.
  - `change_today` string, decimal, required: Percent change from last day price (by a factor of 1)
  - `cost_basis` string, decimal, required: Total cost basis
  - `current_price` string, decimal, required: Current asset price per share
  - `exchange` string, required: Exchange name of the asset
  - `lastday_price` string, decimal, required: Last day's asset price per share based on the closing value of the last trading day
  - `market_value` string, decimal, required: Total market value of the position
  - `qty` string, required: The number of shares
  - `qty_available` string, required: Total number of shares available minus open orders / locked for options covered call
  - `side` 'long' | 'short', required
  - `swap_rate` string, decimal: The latest swap rate. This is only returned for LCT accounts.
  - `symbol` string, required: Asset symbol
  - `unrealized_intraday_pl` string, decimal, required: Unrealized profit/loss for the day
  - `unrealized_intraday_plpc` string, decimal, required: Unrealized interday profit/loss percent (by a factor of 1)
  - `unrealized_pl` string, decimal, required: Unrealized profit/loss
  - `unrealized_plpc` string, decimal, required: Unrealized profit/loss percent (by a factor of 1)
  - `usd` USDPosition: Position values in USD. This is returned for LCT (non-USD) accounts only.
    - `avg_entry_price` string, decimal: Average entry price of the position in USD
    - `change_today` string, decimal: Percent change from last day price (by a factor of 1)
    - `cost_basis` string, decimal: Total cost basis in USD
    - `current_price` string, decimal: Current asset price per share in USD
    - `lastday_price` string, decimal: Last day's asset price per share based on the closing value of the last trading day in USD
    - `market_value` string, decimal: Total market value of the position in USD
    - `unrealized_intraday_pl` string, decimal: Unrealized profit/loss in USD for the day
    - `unrealized_intraday_plpc` string, decimal: Unrealized interday profit/loss percent (by a factor of 1)
    - `unrealized_pl` string, decimal: Unrealized profit/loss in USD
    - `unrealized_plpc` string, decimal: Unrealized profit/loss percent (by a factor of 1)

---

[API](https://skmtc.dev/alpacahq/apis/broker-api.md) - [All operations](https://skmtc.dev/alpacahq/apis/broker-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alpacahq/apis/broker-api/revisions/381b1ecb3ccc?raw)
