minor changes
This commit is contained in:
parent
4859bf18a3
commit
0949f54c7d
@ -27,7 +27,6 @@
|
||||
"BTC_MLN",
|
||||
"BTC_XZC",
|
||||
"BTC_TIME",
|
||||
"BTC_NXS",
|
||||
"BTC_LUN"
|
||||
]
|
||||
},
|
||||
|
3
main.py
3
main.py
@ -196,8 +196,7 @@ 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
|
||||
if trade.pair in whitelist:
|
||||
whitelist.remove(trade.pair)
|
||||
logger.debug('Ignoring {} in pair whitelist'.format(trade.pair))
|
||||
if not whitelist:
|
||||
|
@ -2,7 +2,7 @@ import logging
|
||||
from datetime import timedelta
|
||||
|
||||
import arrow
|
||||
from telegram.error import NetworkError, BadRequest
|
||||
from telegram.error import NetworkError
|
||||
from telegram.ext import CommandHandler, Updater
|
||||
from telegram import ParseMode, Bot, Update
|
||||
from wrapt import synchronized
|
||||
|
Loading…
Reference in New Issue
Block a user