---
title: "Get your account's margin status. Send a currency of \"all\" to receive an array of all supported currencies."
method: GET
path: "/user/margin"
tags: ["User"]
---

# Get your account's margin status. Send a currency of "all" to receive an array of all supported currencies.

`GET /user/margin`

## Query parameters

- `currency` string

## Response `200`

Request was successful

- Margin
  - `account` integer, required
  - `currency` string, required
  - `riskLimit` integer
  - `state` string
  - `amount` integer
  - `prevRealisedPnl` integer
  - `grossComm` integer
  - `grossOpenCost` integer
  - `grossOpenPremium` integer
  - `grossExecCost` integer
  - `grossMarkValue` integer
  - `riskValue` integer
  - `initMargin` integer
  - `maintMargin` integer
  - `targetExcessMargin` integer
  - `realisedPnl` integer
  - `unrealisedPnl` integer
  - `walletBalance` integer
  - `marginBalance` integer
  - `marginLeverage` number, double
  - `marginUsedPcnt` number, double
  - `excessMargin` integer
  - `availableMargin` integer
  - `withdrawableMargin` integer
  - `makerFeeDiscount` number, double
  - `takerFeeDiscount` number, double
  - `timestamp` string, date-time

## Other responses

- `400` — Parameter Error
- `401` — Unauthorized
- `403` — Access Denied
- `404` — Not Found

## Changes

- **2019-12-18** `fd2de3a82a03` — 4 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`
- **2018-05-30** `0c1c991454e3` — 4 info
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `401`
  - removed the non-success response with the status `403`
  - removed the non-success response with the status `404`

[Change history](https://skmtc.dev/bitmex/apis/bitmex-api/changes/user/margin/get.md)

---

[API](https://skmtc.dev/bitmex/apis/bitmex-api.md) · [All operations](https://skmtc.dev/bitmex/apis/bitmex-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bitmex/bitmex-api/revisions/04c6a16ffd27/schema)
