Small Onion Pickle - Shallots pickle - Side dish recipe

I love this small onion pickle. Most of the time my mum prepares and sends it. So I never get to do it as most of the time I have this pickle in my fridge. This time when my mum visited me I told her not to bring some of the things as I wanted her to do it here so that I can take step by step pics. This is one such recipe. This is really a very simple but it goes well with idli, dosa, bread or even with chapathi / chapati

Shallots / small onions - 4 cups
Oil - 1/2 cup
Mustard seeds - 1 teaspoon
Urad dhal - 1 teaspoon
Red chilli - 1-2 (broken into small pieces)
Fenugreek seeds - 1/4 teaspoon
Jaggery - 1 tablespoon
Asafoetida - 1/4 teaspoon
Red chilli powder - 3 tablespoon
Salt to taste
Tamarind paste (thick) - 2 tablespoon
Turmeric powder - 1/2 teaspoon


Heat the pan. Add oil. When it is hot add mustard seeds, urad dhal. Fenugreek seeds, asafoetida, Red chillies. Let it pop and fry till urad dhal is brown in color. Add onion and fry for a min. 
Add turmeric powder, chilli powder, tamarid paste and salt. Mix well. Let the onion cook (don't use the lid to close)
Once it is cooked add jaggery and continue to cook for another 5-7 mins or till oil separate from it
Let it cool down and store it in air tight container