Heat oil in a deep pan over medium heat. Add broken red chilies, mustard seeds and cumin seeds.
Once mustard seeds pop up, add chopped onions, slit green chillies, peeled garlic and curry leaves.
Sauté till the onions turn translucent.
Now add only the chopped stem part of the amaranth greens, salt, turmeric powder and mix well.
Close with a lid and cook for 2 to 3 minutes.
Now add chopped leaves part of the amaranth greens.
Close with a lid and cook on medium high heat for for 5 to 6 minutes.
Open the lid and stir fry till all the water evaporates.
Finally sprinkle grated coconut, mix well and turn off the heat.
Serve with hot rice or as a side to sambar or rasam.