diff --git a/lean/models/brokerages/cloud/cloud_brokerage.py b/lean/models/brokerages/cloud/cloud_brokerage.py index fba89d04..d97c0e4e 100644 --- a/lean/models/brokerages/cloud/cloud_brokerage.py +++ b/lean/models/brokerages/cloud/cloud_brokerage.py @@ -39,7 +39,7 @@ def _get_settings(self) -> Dict[str, str]: continue # TODO: handle cases where tranding env config is not present, environment will still be required. if type(config) == TradingEnvConfiguration: - value = "paper" if str(config).lower() in [ + value = "paper" if config._value.lower() in [ "practice", "demo", "beta", "paper"] else "live" elif type(config) is InternalInputUserInput: if not config._is_conditional: