This commit is contained in:
creslinux 2018-07-19 18:15:13 +00:00
parent e54a5075be
commit da412fa270

View File

@ -362,7 +362,6 @@ class FreqtradeBot(object):
for _pair, (buy, sell) in get_sig_results: for _pair, (buy, sell) in get_sig_results:
if buy and not sell: if buy and not sell:
self.execute_buy(_pair, stake_amount) self.execute_buy(_pair, stake_amount)
return False return False
def execute_buy(self, pair: str, stake_amount: float) -> bool: def execute_buy(self, pair: str, stake_amount: float) -> bool:
@ -467,11 +466,10 @@ class FreqtradeBot(object):
trade.update(order) trade.update(order)
if trade.is_open and trade.open_order_id is None: if trade.is_open and trade.open_order_id is None:
# Check if we can sell our current pai # Check if we can sell our current pair
return self.handle_trade(trade) return self.handle_trade(trade)
except DependencyException as exception: except DependencyException as exception:
logger.warning('Unable to sell trade: %s', exception) logger.warning('Unable to sell trade: %s', exception)
return False return False
def get_real_amount(self, trade: Trade, order: Dict) -> float: def get_real_amount(self, trade: Trade, order: Dict) -> float: