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

# GET /private/get_order_margin_by_ids

`GET /private/get_order_margin_by_ids`

Retrieves the initial margin requirements for one or more orders identified by their order IDs. Initial margin is the amount of funds required to open a position with these orders.

This method is useful for calculating margin requirements before placing orders, helping to ensure sufficient funds are available.

**Scope:** `trade:read`

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

## Query parameters

- `ids` string[], required

## Response `200`

Success response

- PrivateGetOrderMarginByIdsResponse
  - `jsonrpc` '2.0', required — The JSON-RPC version (2.0)
  - `id` integer — The id that was sent in the request
  - `result` OrderIdInitialMarginPair[], required
    - `order_id` string, required — Unique order identifier
    - `initial_margin` number, required — Initial margin of order
    - `initial_margin_currency` string — Currency of initial margin

---

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