---
title: "multi order margin calculator"
method: POST
path: "/margincalculator/multi"
tags: ["Funds & Margin"]
---

# multi order margin calculator

`POST /margincalculator/multi`

The Multi Order Margin Calculator API allows users to calculate margin requirements for multiple scripts in a single request, including span, exposure, equity, FO, and commodity margins.  
**Notes** :
Margin values returned are indicative and valid only for the current trading session.

## Headers

- `access-token` string, required

## Request body

- MultiScripMarginCalcRequest
  - `includePosition` boolean
  - `includeOrder` boolean
  - `dhanClientId` string
  - `scripList` ScriptItem[]
    - `exchangeSegment` 'NSE_EQ' | 'NSE_FNO' | 'NSE_COMM' | 'BSE_EQ' | 'BSE_FNO' | 'MCX_COMM'
    - `transactionType` 'BUY' | 'SELL'
    - `quantity` integer
    - `productType` 'CNC' | 'INTRADAY' | 'MARGIN' | 'MTF' | 'CO' | 'BO'
    - `securityId` string
    - `price` number, float
    - `triggerPrice` number, float

## Response `200`

Successful operation

- MultiScripMarginCalcResponse
  - `clientId` string
  - `totalMargin` number, double
  - `spanMargin` number, double
  - `exposure` number, double
  - `equityMargin` number, double
  - `foMargin` number, double
  - `commodity` number, double
  - `currency` number, double
  - `hedgeBenefit` number, double
  - `userFundLimit` number, double
  - `insufficientFund` number, double

---

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