margin_requirements
Calculate margin requirements for a hypothetical trade using an order what-if, so you can assess buying power and risk before placing it.
Instructions
Get margin requirements for a hypothetical trade (uses order what-if).
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": {
"contract": "<contract>",
"quantity": "<quantity>",
"side": "<side>"
},
"name": "margin_requirements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | BUY or SELL | |
| contract | Yes | Contract specification | |
| quantity | Yes | Number of shares/contracts |