From 308428644b2f7fcb8a241f68bb09b3730e8309f9 Mon Sep 17 00:00:00 2001 From: misagh Date: Mon, 24 Sep 2018 15:27:26 +0200 Subject: [PATCH] test_process_trade_creation log message changed: in reality the buy signal is actually triggered --- freqtrade/freqtradebot.py | 4 +--- freqtrade/tests/test_freqtradebot.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 182a42819..e3cc669d9 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -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\ diff --git a/freqtrade/tests/test_freqtradebot.py b/freqtrade/tests/test_freqtradebot.py index 4d5039449..79a09fde3 100644 --- a/freqtrade/tests/test_freqtradebot.py +++ b/freqtrade/tests/test_freqtradebot.py @@ -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 )