Take all the masala ingredients in a mixie and grind it to a smooth paste. Set aside.
Take a pressure cooker and add in the sliced onions, ground masala, red chilli powder, turmeric powder, salt, oil and 3 tablespoons of water. Cover the pan and cook for 7 minutes on medium flame. Remove from heat and wait for the pressure to release. Set aside.