Add temporary debug print to verify strategy dispatch on server

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Thigazhezhilan J 2026-05-03 02:55:33 +05:30
parent 3580e123e4
commit 2309b78286

View File

@ -337,6 +337,7 @@ def _engine_loop(config, stop_event: threading.Event):
_EQUITY_SYM = _strat_cfg["equity_symbol"]
_GOLD_SYM = _strat_cfg["gold_symbol"]
_SMA_MONTHS = _strat_cfg["sma_months"]
print(f"[DEBUG_STRATEGY] strategy={strategy_name} equity={_EQUITY_SYM} gold={_GOLD_SYM} sma={_SMA_MONTHS}M", flush=True)
sip_amount = config["sip_amount"]
configured_frequency = config.get("sip_frequency") or {}
if not isinstance(configured_frequency, dict):