---
title: "Get Open Positions"
method: POST
path: "/v1/positions"
tags: ["Derivatives"]
---

# Get Open Positions

`POST /v1/positions`

## Request

- Base URL: `https://api.gemini.com`
- URL: `https://api.gemini.com/v1/positions`
- Auth: API key in header `X-GEMINI-APIKEY` and API key in header `X-GEMINI-SIGNATURE` and API key in header `X-GEMINI-PAYLOAD`

### Roles
The API key you use to access this endpoint must have the Trader or Auditor role assigned. See [Roles](/roles#roles) for more information.

The OAuth scope must have `orders:read` assigned to access this endpoint. See [OAuth Scopes](/authentication/oauth#oauth-scopes) for more information.

## Headers

- `X-GEMINI-APIKEY` string, required
- `X-GEMINI-SIGNATURE` string, required
- `X-GEMINI-PAYLOAD` string, required
- `Content-Type` string
- `Content-Length` string
- `Cache-Control` string

## Request body

- object
  - `request` string, required: The literal string "/v1/positions"
  - `nonce` union, required: The nonce, as described in [Private API Invocation](/authentication/api-key#private-api-invocation)
    - union: timestamp
      - string: Gemini strongly recommends using milliseconds instead of seconds for timestamps. | Timestamp format | Example | Supported request type | |-----------------------|-----------------------|------------------------| | string (seconds) | `1495127793` | `POST` only | | string (milliseconds) | `1495127793000` | `POST` only |
      - integer: Gemini strongly recommends using milliseconds instead of seconds for timestamps. | Timestamp format | Example | Supported request type | |-----------------------------|---------------------------|------------------------| | whole number (seconds) | `1495127793` | `GET`, `POST` | | whole number (milliseconds) | `1495127793000` | `GET`, `POST` |
    - integer
  - `account` string: Required for Master API keys as described in [Private API Invocation](/authentication/api-key#private-api-invocation). The name of the account within the subaccount group. Specifies the account on which the orders were placed. Only available for exchange accounts.

## Response `200`

Successful operation

- object
  - `openPositions` OpenPosition[]
    - `symbol` string: The [symbol](/market-data/symbols-and-minimums) of the order.
    - `instrument_type` string: The type of instrument. Either "spot" or "perp".
    - `quantity` string, decimal: The position size. Value will be negative for shorts.
    - `notional_value` string, decimal: The value of position; calculated as (`quantity` * `mark_price`). Value will be negative for shorts.
    - `realised_pnl` string, decimal: The current P&L that has been realised from the position.
    - `unrealised_pnl` string, decimal: Current Mark to Market value of the positions.
    - `average_cost` string, decimal: The average price of the current position.
    - `mark_price` string, decimal: The current Mark Price for the Asset or the position.

## Other responses

- `400`: Bad request - malformed request or invalid parameters
- `401`: Unauthorized - missing or invalid authentication
- `403`: ApiKey fails IP Filtering Check
- `404`: Resource not found
- `429`: Too many requests - you have exceeded the rate limit
- `500`: Internal server error

---

[API](https://skmtc.dev/gemini/apis/rest-api.md) - [All operations](https://skmtc.dev/gemini/apis/rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gemini/apis/rest-api/revisions/24979792d748?raw)
