---
title: "Get margin risk profile"
method: GET
path: "/api/prime/trading/v1/accounts/{accountId}/margin/riskprofile"
tags: ["Margin"]
---

# Get margin risk profile

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

Runs margin calculations and returns the margin risk profile for the specified account.

## Path parameters

- `accountId` string, required

## Response `200`

Margin risk profile

- object
  - `riskProfile` object, required
    - `netOpenPosition` object, required — Quantity representing the total NOP limit across all currencies. It sets a limit that is compared to the total short position across all currencies (eg. 1000000). Currency represents the currency that the quantity is valued in (eg. USD)
      - `quantity` string, decimal, required — The specified quantity.
      - `currency` string, required — The specified quantity currency.
    - `transferredCollateral` object, required — Quantity representing the notional value of all collateral balances. This may change as the value of collateral changes with market movements. Currency represents the notional currency (eg. USD)
      - `quantity` string, decimal, required — The specified quantity.
      - `currency` string, required — The specified quantity currency.
    - `unrealizedPnL` object, required — Quantity representing the sum of unrealized profit and loss across all per-asset open positions. Currency represents the notional currency (eg. USD)
      - `quantity` string, decimal, required — The specified quantity.
      - `currency` string, required — The specified quantity currency.
    - `marginBalance` object, required — Quantity representing the sum of the transferredCollateral and unrealizedPnL. Currency represents the notional currency (eg. USD)
      - `quantity` string, decimal, required — The specified quantity.
      - `currency` string, required — The specified quantity currency.
    - `marginRequirement` object — Quantity representing the marginBalance required to continue trading without risk of margin call or liquidation. If margin requirement is not present, either netOpenPosition is zero or there is no requirement. Currency represents the notional currency (eg. USD)
      - `quantity` string, decimal, required — The specified quantity.
      - `currency` string, required — The specified quantity currency.
    - `marginUtilizationPercentage` string, nullable — Quantity representing the ratio of marginRequirement to marginBalance, measured directly against liquidation and margin call thresholds. This is null if there is no margin requirement.

## Other responses

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

---

[API](https://skmtc.net/bitgo/apis/bitgo-api.md) · [All operations](https://skmtc.net/bitgo/apis/bitgo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bitgo/bitgo-api/revisions/e445c15e5bee/schema)
