On Tue, 2 Aug 2016 07:14 pm, Arshpreet Singh wrote: > is there any approach I can go with so auto_order_buy() auto_order_sell() > function only executed once? Take them out of the while loop. -- Steve “Cheer up,” they said, “things could be worse.” So I cheered up, and sure enough, things got worse.