mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 16:43:06 +00:00
minor changes
This commit is contained in:
7
main.py
7
main.py
@@ -196,10 +196,9 @@ def create_trade(stake_amount: float, exchange):
|
||||
trades = Trade.query.filter(Trade.is_open.is_(True)).all()
|
||||
trades.append(latest_trade)
|
||||
for trade in trades:
|
||||
if trade.pair not in whitelist:
|
||||
continue
|
||||
whitelist.remove(trade.pair)
|
||||
logger.debug('Ignoring {} in pair whitelist'.format(trade.pair))
|
||||
if trade.pair in whitelist:
|
||||
whitelist.remove(trade.pair)
|
||||
logger.debug('Ignoring {} in pair whitelist'.format(trade.pair))
|
||||
if not whitelist:
|
||||
raise ValueError('No pair in whitelist')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user