From 785a32ba1321bbfce827c59d12dd5e756d845dc1 Mon Sep 17 00:00:00 2001 From: Alexandre Catarino Date: Thu, 1 Oct 2026 19:21:24 +0100 Subject: [PATCH] Remove ib-trading-mode The IB brokerage now infers the trading mode from ib-account (QuantConnect/Lean.Brokerages.InteractiveBrokers#270), so the CLI no longer needs to set it. Co-Authored-By: Claude Opus 5.5 --- tests/commands/test_live.py | 1 - tests/components/config/test_lean_config_manager.py | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/commands/test_live.py b/tests/commands/test_live.py index 6a4cbc3f..80ac1f7d 100644 --- a/tests/commands/test_live.py +++ b/tests/commands/test_live.py @@ -45,7 +45,6 @@ def create_fake_environment(name: str, live_mode: bool) -> None: "ib-user-name": "trader777", "ib-password": "hunter2", "ib-agent-description": "Individual", - "ib-trading-mode": "paper", "ib-enable-delayed-streaming-data": "no", "ib-enable-delayed-streaming-data": "no", "ib-weekly-restart-utc-time": "21:00:00", diff --git a/tests/components/config/test_lean_config_manager.py b/tests/components/config/test_lean_config_manager.py index e55aa473..82e6acbe 100644 --- a/tests/components/config/test_lean_config_manager.py +++ b/tests/components/config/test_lean_config_manager.py @@ -258,7 +258,6 @@ def test_clean_lean_config_removes_auto_configurable_keys_from_original_config() "ib-port": "4002", "ib-agent-description": "Individual", "ib-tws-dir": "C:\\Jts", - "ib-trading-mode": "paper", "ib-enable-delayed-streaming-data": false, "ib-version": "974", @@ -285,7 +284,7 @@ def test_clean_lean_config_removes_auto_configurable_keys_from_original_config() for key in ["data-folder", "log-handler", "messaging-handler", "job-queue-handler", "ib-account", "ib-user-name", "ib-password", "ib-agent-description", - "ib-trading-mode", "ib-enable-delayed-streaming-data", + "ib-enable-delayed-streaming-data", "iqfeed-iqconnect", "iqfeed-username", "iqfeed-password", "iqfeed-productName", "iqfeed-version"]: assert f'"{key}"' in clean_config @@ -345,7 +344,6 @@ def test_clean_lean_config_removes_documentation_of_removed_keys() -> None: "ib-port": "4002", "ib-agent-description": "Individual", "ib-tws-dir": "C:\\Jts", - "ib-trading-mode": "paper", "ib-enable-delayed-streaming-data": false, "ib-version": "974",