Request Environment Change
request_environment_changeRequest operator approval via Telegram to switch IBKR environment between live and paper trading. Returns approval ID for subsequent execution, with safety locks enabled.
Instructions
Send a request to the operator via Telegram to switch the IBKR connection between 'live' (real-money) and 'paper' (simulated) environments. Returns an approval_id — poll ibkr_check_approval_status until resolved. Once approved, you MUST use the ibkr_execute_environment_change tool with the approval_id to actually apply the change. Switching environments will automatically engage safety locks (orders disabled, dry-run enabled).
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": {
"target_env": "<target_env>",
"reason": "<reason>"
},
"name": "request_environment_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | ||
| target_env | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | Current status: pending | approved | denied | expired | used. | |
| expiresAt | Yes | ISO 8601 timestamp when the request expires. | |
| approvalId | Yes | Unique approval identifier. | |
| resolvedAt | No | ISO 8601 timestamp of resolution. | |
| requestedAt | Yes | ISO 8601 timestamp when the request was created. | |
| resolveNote | No | Who approved or denied. | |
| approvalType | Yes | 'trade', 'trade_intent', or 'live_trading'. | |
| telegramMessageId | No | Telegram message ID if sent. |