Fixed to Executing Buys & Sells

This commit is contained in:
Yazeed Al Oyoun 2020-02-11 15:49:57 +01:00
parent 7f4b90c68f
commit 867b736b84

View File

@ -414,7 +414,7 @@ class FreqtradeBot:
if ((bid_check_dom.get('enabled', False)) and if ((bid_check_dom.get('enabled', False)) and
(bid_check_dom.get('bids_to_ask_delta', 0) > 0)): (bid_check_dom.get('bids_to_ask_delta', 0) > 0)):
if self._check_depth_of_market_buy(pair, bid_check_dom): if self._check_depth_of_market_buy(pair, bid_check_dom):
logger.info(f'Executed Buy for {pair}.') logger.info(f'Executing Buy for {pair}.')
return self.execute_buy(pair, stake_amount) return self.execute_buy(pair, stake_amount)
else: else:
return False return False
@ -804,8 +804,8 @@ class FreqtradeBot:
) )
if should_sell.sell_flag: if should_sell.sell_flag:
logger.info(f'Executing Sell for {trade.pair}. Reason: {should_sell.sell_type}')
self.execute_sell(trade, sell_rate, should_sell.sell_type) self.execute_sell(trade, sell_rate, should_sell.sell_type)
logger.info(f'Executed Sell for {trade.pair}. Reason: {should_sell.sell_type}')
return True return True
return False return False