Need pi code for my logic

I want to List top gainer and top loser stock from top gain index and top loser index for every 15min once as automatic updation

is it possible