Handle orderbook_depth check correctly
This commit is contained in:
parent
a325f1ce2b
commit
6948e0ba84
@ -299,6 +299,8 @@ class FreqtradeBot(object):
|
|||||||
(bidstrat_check_depth_of_market.get('bids_to_ask_delta', 0) > 0):
|
(bidstrat_check_depth_of_market.get('bids_to_ask_delta', 0) > 0):
|
||||||
if self._check_depth_of_market_buy(_pair, bidstrat_check_depth_of_market):
|
if self._check_depth_of_market_buy(_pair, bidstrat_check_depth_of_market):
|
||||||
buycount += self.execute_buy(_pair, stake_amount)
|
buycount += self.execute_buy(_pair, stake_amount)
|
||||||
|
else:
|
||||||
|
continue
|
||||||
|
|
||||||
buycount += self.execute_buy(_pair, stake_amount)
|
buycount += self.execute_buy(_pair, stake_amount)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user