---
title: "GET /private/get_margins"
method: GET
path: "/private/get_margins"
tags: ["Trading", "Private"]
---

# GET /private/get_margins

`GET /private/get_margins`

Calculates margin requirements for a hypothetical order on a given instrument. Returns initial margin and maintenance margin for the specified instrument, quantity, and price.

This method is useful for estimating margin requirements before placing an order, helping to ensure sufficient funds are available and understanding the margin impact of potential trades.

**Scope:** `trade:read`

[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_margins)

## Query parameters

- `instrument_name` string, required — Unique instrument identifier
- `amount` number, required
- `price` number, required

## Response `200`

Success response

- PrivateGetMarginsResponse
  - `jsonrpc` '2.0', required — The JSON-RPC version (2.0)
  - `id` integer — The id that was sent in the request
  - `result` object, required
    - `buy` number, required — Margin when buying
    - `sell` number, required — Margin when selling
    - `buy_taker_fee` number, required — Estimated fee when buying as a taker
    - `buy_maker_fee` number, required — Estimated fee when buying as a maker
    - `sell_taker_fee` number, required — Estimated fee when selling as a taker
    - `sell_maker_fee` number, required — Estimated fee when selling as a maker
    - `min_price` number, required — The minimum price for the future. Any sell orders you submit lower than this price will be clamped to this minimum.
    - `max_price` number, required — The maximum price for the future. Any buy orders you submit higher than this price, will be clamped to this maximum.

---

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