Skip to content

Commit

Permalink
fix: missed data-provider-live error
Browse files Browse the repository at this point in the history
PR: #416
  • Loading branch information
Romazes committed Feb 14, 2024
1 parent d1034be commit a190ed9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lean/commands/live/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _get_configurable_modules_from_environment(lean_config: Dict[str, Any], envi
environment = lean_config["environments"][environment_name]
for key in ["live-mode-brokerage", "data-queue-handler"]:
if key not in environment:
raise MoreInfoError(f"The '{environment_name}' environment does not specify a {key}",
raise MoreInfoError(f"The '{environment_name}' environment does not specify a {'data-provider-live' if key == 'data-queue-handler' else key}",
"https://www.lean.io/docs/v2/lean-cli/live-trading/algorithm-control")

brokerage = environment["live-mode-brokerage"]
Expand Down Expand Up @@ -343,7 +343,7 @@ def deploy(project: Path,
lean_environment = lean_config["environments"][environment_name]
for key in ["live-mode-brokerage", "data-queue-handler"]:
if key not in lean_environment:
raise MoreInfoError(f"The '{environment_name}' environment does not specify a {key}",
raise MoreInfoError(f"The '{environment_name}' environment does not specify a {'data-provider-live' if key == 'data-queue-handler' else key}",
"https://www.lean.io/docs/v2/lean-cli/live-trading/algorithm-control")

brokerage = lean_environment["live-mode-brokerage"]
Expand Down

0 comments on commit a190ed9

Please sign in to comment.