test_process_trade_creation log message changed: in reality the buy

signal is actually triggered
This commit is contained in:
misagh 2018-09-24 15:27:26 +02:00
parent 76dd754963
commit 308428644b
2 changed files with 2 additions and 4 deletions

View File

@ -382,9 +382,6 @@ class FreqtradeBot(object):
:return: True if a trade object has been created and persisted, False otherwise
"""
interval = self.strategy.ticker_interval
logger.info('Checking buy signals to create a new trade: ...')
whitelist = copy.deepcopy(self.config['exchange']['pair_whitelist'])
# Remove currently opened and latest pairs from whitelist
@ -405,6 +402,7 @@ class FreqtradeBot(object):
(buy, sell) = self.strategy.get_signal(_pair, interval, self.exchange.klines.get(_pair))
if buy and not sell:
stake_amount = self._get_trade_stake_amount(_pair)
logger.info('Buy signal found: about create a new trade with stake_amount: %f ...', stake_amount)
bidstrat_check_depth_of_market = self.config.get('bid_strategy', {}).\
get('check_depth_of_market', {})
if (bidstrat_check_depth_of_market.get('enabled', False)) and\

View File

@ -598,7 +598,7 @@ def test_process_trade_creation(default_conf, ticker, limit_buy_order,
assert trade.amount == 90.99181073703367
assert log_has(
'Checking buy signals to create a new trade with stake_amount: 0.001000 ...',
'Buy signal found: about create a new trade with stake_amount: 0.001000 ...',
caplog.record_tuples
)