Clean the onions. Take a quarter portion of the onions and crush well in the blender. Soak the tamarind in about half a cup of warm water. Donu2019t bother to do this if using the paste.
Pour the oil into a wok and add the mustard seeds. When they splutter, add the onions, crushed onion paste, the curry leaves and a little salt (not all the salt, only as much as required to salt the onions). Stir, on medium heat, and allow the onions and paste to cook for about 10 u2013 15 minutes.
Add the chilli, asafetida, fenugreek, and jaggery powders and required amount of salt. Mix well. Add the tamarind liquid next. If using tamarind paste, also add a little less than half a cup of water. Allow to cook, on medium to high heat, stirring frequently till the water evaporates and oil floats up along the sides of the wok.
The pickle is ready. Cool and bottle. Refrigerate.
Serve as an accompaniment to any of these - thayir chadam (yogurt rice), pulav, dosa, adai, chapathi,parathas and even bread.
If you would like this pickle to be a little sweeter, add an extra tablespoon or so of powdered jaggery. The sweeter version is especially nice with pulavs, fried rice, biriyanis or parathas.