|
|
@@ -606,6 +606,14 @@ class Strategy(Strategy):
|
|
|
return {"action": "hold" if mode == "active" else "plan", "price": price, "deviation": deviation}
|
|
|
|
|
|
def render(self):
|
|
|
+ # Refresh the market-derived display values on render so the dashboard
|
|
|
+ # reflects the same inputs the strategy would use on the next tick.
|
|
|
+ try:
|
|
|
+ self._refresh_balance_snapshot()
|
|
|
+ self._grid_step_pct()
|
|
|
+ except Exception as exc:
|
|
|
+ self._log(f"render refresh failed: {exc}")
|
|
|
+
|
|
|
return {
|
|
|
"widgets": [
|
|
|
{"type": "metric", "label": "market", "value": self._market_symbol()},
|