cosmetics

This commit is contained in:
hroff-1902 2019-12-28 01:54:12 +03:00
parent b6d1c5b17a
commit 86f2693040
1 changed files with 9 additions and 9 deletions

View File

@ -299,17 +299,17 @@ class FreqtradeBot:
buycount = 0 buycount = 0
# running get_signal on historical data fetched # running get_signal on historical data fetched
for _pair in whitelist: for pair in whitelist:
if self.strategy.is_pair_locked(_pair): if self.strategy.is_pair_locked(pair):
logger.info(f"Pair {_pair} is currently locked.") logger.info(f"Pair {pair} is currently locked.")
continue continue
(buy, sell) = self.strategy.get_signal( (buy, sell) = self.strategy.get_signal(
_pair, self.strategy.ticker_interval, pair, self.strategy.ticker_interval,
self.dataprovider.ohlcv(_pair, self.strategy.ticker_interval)) self.dataprovider.ohlcv(pair, self.strategy.ticker_interval))
if buy and not sell and len(Trade.get_open_trades()) < self.config['max_open_trades']: if buy and not sell and len(Trade.get_open_trades()) < self.config['max_open_trades']:
stake_amount = self.get_trade_stake_amount(_pair) stake_amount = self.get_trade_stake_amount(pair)
if not stake_amount: if not stake_amount:
continue continue
@ -320,11 +320,11 @@ class FreqtradeBot:
get('check_depth_of_market', {}) get('check_depth_of_market', {})
if (bidstrat_check_depth_of_market.get('enabled', False)) and\ if (bidstrat_check_depth_of_market.get('enabled', False)) and\
(bidstrat_check_depth_of_market.get('bids_to_ask_delta', 0) > 0): (bidstrat_check_depth_of_market.get('bids_to_ask_delta', 0) > 0):
if self._check_depth_of_market_buy(_pair, bidstrat_check_depth_of_market): if self._check_depth_of_market_buy(pair, bidstrat_check_depth_of_market):
buycount += self.execute_buy(_pair, stake_amount) buycount += self.execute_buy(pair, stake_amount)
continue continue
buycount += self.execute_buy(_pair, stake_amount) buycount += self.execute_buy(pair, stake_amount)
return buycount > 0 return buycount > 0