fix: import Simulation model in _manage_simulation

This commit is contained in:
shokollm
2026-04-12 14:47:32 +00:00
parent 632e1bf524
commit fd5c2b56d7

View File

@@ -557,14 +557,14 @@ Would you like me to adjust the strategy parameters based on these results?"""
) -> str: ) -> str:
"""Manage trading simulations: start, stop, status, or results.""" """Manage trading simulations: start, stop, status, or results."""
try: try:
import asyncio
import threading
import uuid
from ...core.database import SessionLocal from ...core.database import SessionLocal
from ...db.models import Simulation from ...db.models import Simulation
from ...services.simulate.engine import SimulateEngine from ...services.simulate.engine import SimulateEngine
from ...core.config import get_settings from ...core.config import get_settings
from datetime import datetime from datetime import datetime
import asyncio
import uuid
import threading
db = SessionLocal() db = SessionLocal()
settings = get_settings() settings = get_settings()