Calculate Perpetual Futures Isolated Liquidation Price & Averaging-Down (DCA)
calculate_perp_liquidation_and_dcaComputes exact isolated-margin liquidation price, distance to liquidation %, averaged entry after DCA/extra margin, and maker vs taker fee drag.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "calculate_perp_liquidation_and_dca"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | 'long' or 'short' | |
| dcaPrice | No | Optional second entry price for averaging down/up | |
| leverage | No | Leverage multiplier (1 to 125) | |
| entryPrice | No | Entry price (e.g. 95000) | |
| marginUsdt | No | Initial isolated margin in USDT | |
| dcaMarginUsdt | No | Optional margin allocated to second entry | |
| extraMarginUsdt | No | Optional extra collateral added without increasing size |