calculate_order_margin
Calculate required margin for a Groww order using order details like symbol, exchange, transaction type, quantity, product, and price. Know the funds needed before trading.
Instructions
Calculate required margin for a specific order (Groww only)
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": {
"trading_symbol": "<trading_symbol>",
"exchange": "<exchange>",
"transaction_type": "<transaction_type>",
"order_type": "<order_type>",
"quantity": "<quantity>",
"product": "<product>"
},
"name": "calculate_order_margin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | No | Price (required for LIMIT/SL orders) | |
| broker | No | Must be groww for margin calculation | |
| product | Yes | Product type | |
| segment | No | Market segment | |
| exchange | Yes | Exchange | |
| quantity | Yes | Number of shares | |
| order_type | Yes | Order type | |
| trigger_price | No | Trigger price (required for SL/SL-M orders) | |
| trading_symbol | Yes | Trading symbol | |
| transaction_type | Yes | Transaction type |