feat: implement token address confirmation dialog and limit backtest duration

This commit is contained in:
shokollm
2026-04-10 11:52:40 +00:00
parent f86ff75525
commit 297a185215
5 changed files with 190 additions and 9 deletions

View File

@@ -223,6 +223,8 @@ def chat(
thinking=result.get("thinking"),
strategy_config=bot.strategy_config if result.get("strategy_updated") else None,
success=result.get("success", False),
strategy_needs_confirmation=result.get("strategy_needs_confirmation", False),
strategy_data=result.get("strategy_data") if result.get("strategy_needs_confirmation") else None,
)

View File

@@ -149,6 +149,8 @@ class BotChatResponse(BaseModel):
thinking: Optional[str] = None
strategy_config: Optional[dict] = None
success: bool = False
strategy_needs_confirmation: Optional[bool] = False
strategy_data: Optional[dict] = None
class SignalResponse(BaseModel):