get_margin
Calculate the required span and exposure margin for a basket of positions before placing orders, using exchange, quantity, price, product type, token, trade type, and order type.
Instructions
Calculate span + exposure margin required for a basket of positions before placing them.
Each position dict needs: exchange, qty, price, productType, token, tradeType (BUY/SELL), orderType.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| positions | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |