dhan margins
Calculate margin requirements. Read-only — neither subcommand requires --yes or supports
--dry-run.
Commands
Section titled “Commands”| Subcommand | Dhan endpoint | Purpose | Flags |
|---|---|---|---|
dhan margins order --file <json> |
POST margincalculator |
Calculate margin for one order. | --file (req) |
dhan margins multi --file <json> |
POST margincalculator/multi |
Calculate combined margin for multiple orders. | --file (req) |
Example payload
Section titled “Example payload”{ "exchangeSegment": "NSE_EQ", "transactionType": "BUY", "quantity": 1, "productType": "CNC", "securityId": "1333", "price": 1500}Examples
Section titled “Examples”dhan margins order --file margin.json --json --no-colordhan margins multi --file multi-margin.json --json --no-color