---
title: "Get net open margin positions"
method: GET
path: "/api/prime/trading/v1/accounts/{accountId}/margin/netopenpositions"
tags: ["Margin"]
---

# Get net open margin positions

`GET /api/prime/trading/v1/accounts/{accountId}/margin/netopenpositions`

## Request

- Base URL: `https://developers.bitgo.com`
- URL: `https://developers.bitgo.com/api/prime/trading/v1/accounts/{accountId}/margin/netopenpositions`
- Auth: none declared

Returns the net open positions for the specified account.

## Path parameters

- `accountId` string, required

## Query parameters

- `currency` string[]

## Response `200`

Net open positions

- object
  - `netOpenPositions` MarginNetOpenPosition[]
    - `currency` string, required: Symbol of the instrument (ex. BTC)
    - `enterpriseId` string, uuid, required: Enterprise ID for the margin NOP limit
    - `netOpenPosition` string, required: The current net open position for the NOP instrument in question (ex. -10 BTC). Negative means a short position and positive means a long position.
    - `netOpenPositionValue` object, required: The net open position denoted in notional amount (ex 600,000 USD)
      - `quantity` string, decimal, required: The specified quantity.
      - `currency` string, required: The specified quantity currency.
    - `shortMarginPositionNotionalLimit` object, required: The maximum open margin position that can be short in terms of the notional instrument (ex. 10,000 USD) in absolute notional terms, as the NOP is signed
      - `quantity` string, decimal, required: The specified quantity.
      - `currency` string, required: The specified quantity currency.
    - `longMarginPositionNotionalLimit` object, required: The maximum open margin position that can be long in terms of the notional instrument (ex. 10,000 USD)
      - `quantity` string, decimal, required: The specified quantity.
      - `currency` string, required: The specified quantity currency.
    - `unrealizedPnL` object, required: The unrealized profit and loss. Difference between the NOP value at the time of creation and the NOP value as of now.
      - `quantity` string, decimal, required: The specified quantity.
      - `currency` string, required: The specified quantity currency.
    - `lastModified` string, date-time, required: ISO format datetime for date and time the record was last updated in the database

## Other responses

- `401`: Unauthorized - Invalid or missing authentication
- `403`: Forbidden - Insufficient permissions
- `500`: Internal Server Error

---

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