diff --git a/backend/api/routes/accounts.py b/backend/api/routes/accounts.py index 9213fd9..0f2ce58 100644 --- a/backend/api/routes/accounts.py +++ b/backend/api/routes/accounts.py @@ -202,7 +202,8 @@ async def get_service_status( raise HTTPException(status_code=500, detail=str(e)) -@router.post("/{account_id}/service/start") +@router.post("/{account_id}/trading/start") +@router.post("/{account_id}/service/start", include_in_schema=False) async def start_service( account_id: int, user: Dict[str, Any] = Depends(get_current_user) @@ -228,7 +229,8 @@ async def start_service( raise HTTPException(status_code=500, detail=str(e)) -@router.post("/{account_id}/service/stop") +@router.post("/{account_id}/trading/stop") +@router.post("/{account_id}/service/stop", include_in_schema=False) async def stop_service( account_id: int, user: Dict[str, Any] = Depends(get_current_user) @@ -254,7 +256,8 @@ async def stop_service( raise HTTPException(status_code=500, detail=str(e)) -@router.post("/{account_id}/service/restart") +@router.post("/{account_id}/trading/restart") +@router.post("/{account_id}/service/restart", include_in_schema=False) async def restart_service( account_id: int, user: Dict[str, Any] = Depends(get_current_user)