File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -93,14 +93,16 @@ def __init__(self, config: Config) -> None:
9393 # Remove credentials from original exchange config to avoid accidental credential exposure
9494 remove_exchange_credentials (config ["exchange" ], True )
9595
96+ self .exchange = ExchangeResolver .load_exchange (
97+ self .config , exchange_config = exchange_config , load_leverage_tiers = True
98+ )
99+
96100 self .strategy : IStrategy = StrategyResolver .load_strategy (self .config )
97101
98102 # Check config consistency here since strategies can set certain options
99103 validate_config_consistency (config )
100-
101- self .exchange = ExchangeResolver .load_exchange (
102- self .config , exchange_config = exchange_config , load_leverage_tiers = True
103- )
104+ # Re-validate exchange compatibility
105+ self .exchange .validate_config (self .config )
104106
105107 init_db (self .config ["db_url" ])
106108
You can’t perform that action at this time.
0 commit comments