cex_unified_calculate_portfolio_margin
Calculate portfolio margin for hypothetical positions (read-only simulation).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"body": "<body>"
},
"name": "cex_unified_calculate_portfolio_margin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | JSON body: UnifiedPortfolioInput with spot_balances, spot_orders, futures_positions, etc. |