Re: holding if/else condition in live bitcoin trading Python

2016-08-03 Thread honeygne
On Tuesday, August 2, 2016 at 9:42:03 PM UTC+5:30, Steven D'Aprano wrote: > 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. yes but Bitfinex is

Re: holding if/else condition in live bitcoin trading Python

2016-08-02 Thread Steven D'Aprano
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 go