Take an account offline
take_account_offlineStops an account's terminal; open positions and their stops stay at the broker. Refused while an order is in flight. Example: {"account_id": ""}
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": {
"account_id": "<account_id>"
},
"name": "take_account_offline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | The fxapis account id (a UUID) from list_accounts — not the MT5 login number. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |