INNER CODE UNIT · Python
list_scenarios
GuntharDeNiro/gunbot-quant · gunbot_quant/cli/main.py:91
def list_scenarios():
"""Lists all available scenarios defined in scenarios.py."""
print("📋 Available Scenarios:")
if not SCENARIOS:
print(" No scenarios found.")
return
for scenario in SCENARIOS:
print(f" - {scenario['name']}")
@app.command()
def run(
scenario_name: Annotated[str, typer.Argument(help="The name of the scenario to run. Use 'list-scenarios' to see options.")]
):
"""Runs a single backtesting scenario."""
print(f"--- Starting Quant Toolbox: Running Scenario '{scenario_name}' ---")
scenario_def = next((s for s in SCENARIOS if s["name"] == scenario_name), None)
if not scenario_def: