diff --git a/src/project_x_py/client/base.py b/src/project_x_py/client/base.py index 4010fc5..9970623 100644 --- a/src/project_x_py/client/base.py +++ b/src/project_x_py/client/base.py @@ -266,7 +266,7 @@ async def from_config_file( ... "api_url": "https://api.topstepx.com/api", ... "user_hub_url": "https://rtc.topstepx.com/hubs/user", ... "market_hub_url": "https://rtc.topstepx.com/hubs/market", - ... "timezone": "US/Central", + ... "timezone": "America/Chicago", ... } >>> with open("config.json", "w") as f: ... json.dump(config, f) diff --git a/tests/client/test_base.py b/tests/client/test_base.py index a3a9186..1dc12ef 100644 --- a/tests/client/test_base.py +++ b/tests/client/test_base.py @@ -249,7 +249,7 @@ async def test_from_config_file(self): realtime_url="wss://file.realtime.com", user_hub_url="/file-userhub", market_hub_url="/file-markethub", - timezone="US/Pacific", + timezone="America/Los_Angeles", timeout_seconds=45, retry_attempts=4, retry_delay_seconds=1.5, @@ -286,7 +286,7 @@ async def test_from_config_file_with_account_name(self): realtime_url="wss://file.realtime.com", user_hub_url="/file-userhub", market_hub_url="/file-markethub", - timezone="US/Pacific", + timezone="America/Los_Angeles", timeout_seconds=45, retry_attempts=4, retry_delay_seconds=1.5, diff --git a/tests/realtime_data_manager/test_data_access_edge_cases.py b/tests/realtime_data_manager/test_data_access_edge_cases.py index 91cf7e0..40de3e8 100644 --- a/tests/realtime_data_manager/test_data_access_edge_cases.py +++ b/tests/realtime_data_manager/test_data_access_edge_cases.py @@ -347,7 +347,7 @@ async def test_get_bars_since_with_pytz_timezone_object(self): manager = MockDataAccessManager() # Use a pytz timezone that has localize method - est = pytz.timezone("US/Eastern") + est = pytz.timezone("America/New_York") manager.timezone = est base_time = est.localize(datetime(2023, 6, 15, 10, 30)) diff --git a/tests/realtime_data_manager/test_data_processing_edge_cases.py b/tests/realtime_data_manager/test_data_processing_edge_cases.py index bf3f563..2f373ce 100644 --- a/tests/realtime_data_manager/test_data_processing_edge_cases.py +++ b/tests/realtime_data_manager/test_data_processing_edge_cases.py @@ -562,7 +562,7 @@ async def test_calculate_bar_time_timezone_scenarios(self): manager = MockDataProcessingManager() # Test with pytz timezone (has localize method) - manager.timezone = pytz.timezone("US/Eastern") + manager.timezone = pytz.timezone("America/New_York") naive_timestamp = datetime(2023, 6, 15, 10, 30, 45) bar_time = manager._calculate_bar_time(naive_timestamp, 5, 2)