fix: import Simulation model in _manage_simulation
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user