---
title: "private/get_positions"
method: POST
path: "/private/get_positions"
tags: ["Subaccounts"]
---

# private/get_positions

`POST /private/get_positions`

## Request

- Base URL: `https://api.derive.xyz/v3`
- URL: `https://api.derive.xyz/v3/private/get_positions`
- Auth: API key in header `X-DeriveWallet` and API key in header `X-DeriveTimestamp` and API key in header `X-DeriveSignature`

Returns the subaccount ID and the list of its active positions, including size, mark price, average price, unrealized and realized PnL, and Greeks where applicable, valued against live feed data at request time. A lighter alternative to get_subaccount when only positions are needed.

## Request body

- GetPositionsRequest
  - `subaccount_id` integer, required

## Response `200`

Success

- PrivateGetPositionsResponse
  - `positions` Position[], required
    - `amount` string, required
    - `amount_step` string, required
    - `average_price` string, required
    - `average_price_excl_fees` string, required
    - `creation_timestamp` integer, required
    - `cumulative_funding` string, required
    - `delta` string, required
    - `gamma` string, required
    - `index_price` string, required
    - `initial_margin` string, required
    - `instrument_name` string, required
    - `instrument_type` 'option' | 'perp' | 'erc20', required: Asset type of the instrument: `"option"`, `"perp"`, or `"erc20"`.
    - `leverage` string, nullable
    - `liquidation_price` string, nullable
    - `maintenance_margin` string, required
    - `mark_price` string, required
    - `mark_value` string, required
    - `net_settlements` string, required
    - `open_orders_margin` string, required: Uses the same params as `initial_margin`: the manager's, even for a subaccount with a delayed-liquidation override, unless `public/margin_watch` asks for the override.
    - `pending_funding` string, required
    - `realized_pnl` string, required
    - `realized_pnl_excl_fees` string, required
    - `theta` string, required
    - `total_fees` string, required
    - `unrealized_pnl` string, required
    - `unrealized_pnl_excl_fees` string, required
    - `vega` string, required
  - `subaccount_id` integer, required

## Other responses

- `default`: JSON-RPC error (see Error Codes)

## Changes

- **2026-10-20** `0c500202be49`: 2 info
  - the endpoint scheme security `DeriveWallet AND DeriveTimestamp AND DeriveSignature` was added to the API
  - added the media type `application/json` for the response with the status `default`

[Operation history](https://skmtc.dev/lyra/apis/derive-v3-api/changes/private/get_positions/post.md)

---

[API](https://skmtc.dev/lyra/apis/derive-v3-api.md) - [All operations](https://skmtc.dev/lyra/apis/derive-v3-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lyra/apis/derive-v3-api/revisions/415f8a73b10c?raw)
