Refactoring to use strategy based configuration
This commit is contained in:
@@ -721,7 +721,7 @@ class RPC:
|
||||
# check if pair already has an open pair
|
||||
trade = Trade.get_trades([Trade.is_open.is_(True), Trade.pair == pair]).first()
|
||||
if trade:
|
||||
if not self._config.get('position_adjustment_enable', False):
|
||||
if not self._freqtrade.strategy.position_adjustment_enable:
|
||||
raise RPCException(f'position for {pair} already open - id: {trade.id}')
|
||||
|
||||
# gen stake amount
|
||||
|
Reference in New Issue
Block a user