Heat the oil in a wok or skillet and stir-fry the fennel and cumin seeds until aromatic, then add the onions and stir-fry until golden brown, about 10 minutes in total.
Add the chilies, sliced tomato, ginger and garlic and stir-fry over low heat until the oil separates. Add the rest of the ingredients