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)
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 |