# View Positions

Source: https://developers.bitgo.com/docs/trade-margin-view-position

## Overview

Once you fund your collateral account and place a trade order, you can view your net open positions. Your net open positions list assets and include the following information:

* **Net Open Position** -  The balance of long positions and short positions for the asset.
* **Net Open Position Value** - The current value of the NOP in USD.
* **Short Margin Position Notional Limit** - The face value limit in USD for short positions using this asset.
* **Long Margin Position Notional Limit** - The face value limit in USD for long positions using this asset.
* **Unrealized PnL** -  the sum of all your profits and losses for the asset in USD. This value may change with market movements.


## Prerequisites

* [Get Started](/docs/get-started-intro)
  * Access token must have the `trade_view` scope.
* [Create Wallets](/docs/wallets-create-wallets)
* [Deposit Assets](/docs/deposit-assets)
* [Place Margin Order](/docs/trade-margin-margin-order)
* Enterprise user with the Trade role.

## Cookbook

Need just the steps? Expand the cookbook below to get started:

<Cookbook slug="view-margin-positions" title="View Margin Positions" />

## View Net Open Positions

>Endpoint: [Get Net Open Margin Position](/reference/trademarginnetopenpositionsget)

```shell cURL
export ACCOUNT_ID="<YOUR_ACCOUNT_ID>"
export ACCESS_TOKEN="<YOUR_ACCESS_TOKEN>"
curl -X GET \
  https://app.bitgo-test.com/api/prime/trading/v1/accounts/$ACCOUNT_ID/margin/netopenpositions \
  -H 'Content-Type: application/json' \
  -H "Authorization: Bearer $ACCESS_TOKEN"

```

#### Step Result

```json JSON
{
  "netOpenPositions": [
    {
      "currency": "BTC",
      "enterpriseId": "63925f940c259a00061853808ffea830",
      "netOpenPosition": -2.3242,
      "netOpenPositionValue": -124017.22,
      "shortMarginPositionNotionalLimit": {
        "quantity": 1000000,
        "currency": "USD"
      },
      "longMarginPositionNotionalLimit": {
        "quantity": 1000000,
        "currency": "USD"
      },
      "unrealizedPnL": {
        "quantity": 1200,
        "currency": "USD"
      },
      "lastModified": "2024-07-29T21:13:09.000Z"
    }
  ]
}
```

## Next

1. [View Risk Settings](/docs/trade-margin-view-risk)
1. [Cover Short Positions](/docs/trade-margin-cover)
1. [Close All Positions](/docs/trade-margin-close)

## See Also

* [API Reference: Get Net Open Margin Position](/reference/trademarginnetopenpositionsget)
* [Go Network Overview](/docs/go-network-overview)
