diff --git a/src/__pycache__/web_dashboard.cpython-310.pyc b/src/__pycache__/web_dashboard.cpython-310.pyc index a0647ea..c3d4992 100644 Binary files a/src/__pycache__/web_dashboard.cpython-310.pyc and b/src/__pycache__/web_dashboard.cpython-310.pyc differ diff --git a/src/web_dashboard.py b/src/web_dashboard.py index 8302c1f..e60481e 100644 --- a/src/web_dashboard.py +++ b/src/web_dashboard.py @@ -69,16 +69,7 @@ async def websocket_endpoint(websocket: WebSocket): @app.get("/api/state") async def get_state(): - """Get current trading state from State Manager""" - try: - async with httpx.AsyncClient(timeout=2.0) as client: - resp = await client.get('http://localhost:8001/state') - if resp.status_code == 200: - return resp.json() - except Exception as e: - logger.warning(f"State Manager unavailable, using cached state: {e})") - - # Fallback to cached state + """Get current trading state""" return trading_state