calculate_margin
Calculate required margin for a hypothetical order in MetaTrader 5. Use to plan trade size and assess margin requirements on demo accounts.
Instructions
Calculate required margin for a hypothetical order. Requires approval; demo accounts only; never sent.
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": {
"order_type": "<order_type>",
"symbol": "<symbol>",
"volume": "<volume>",
"price": "<price>"
},
"name": "calculate_margin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | ||
| symbol | Yes | ||
| volume | Yes | ||
| order_type | Yes |