INNER CODE UNIT · Python
__init__
YichengYang-Ethan/oracle3 · oracle3/dashboard/server.py:387
def __init__(
self,
engine: 'TradingEngine',
host: str = '0.0.0.0',
port: int = 3000,
):
self.engine = engine
self.host = host
self.port = port
self._server_thread: threading.Thread | None = None
self._uvicorn_server: Any = None
def start(self) -> None:
"""Start the dashboard server in a background thread."""
import uvicorn
app = _build_dashboard_app(self.engine)
config = uvicorn.Config(