Fixing the doc and and the default value of sell_profit_only to False

This commit is contained in:
Jean-Baptiste LE STANG
2018-01-17 11:31:26 +01:00
parent 5723039637
commit 0d709847ee
2 changed files with 2 additions and 1 deletions

View File

@@ -259,7 +259,7 @@ def handle_trade(trade: Trade) -> bool:
return True
# Experimental: Check if the trade is profitable before selling it (avoid selling at loss)
if _CONF.get('experimental', {}).get('sell_profit_only'):
if _CONF.get('experimental', {}).get('sell_profit_only', False):
logger.debug('Checking if trade is profitable ...')
if not buy and trade.calc_profit(rate=current_rate) <= 0:
return False