From 041a1926c669328375828b16eed07f24b1b9afc9 Mon Sep 17 00:00:00 2001 From: misagh Date: Sun, 2 Dec 2018 15:25:34 +0100 Subject: [PATCH] adding detailed log before buy happens --- freqtrade/freqtradebot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index a73a2e98f..6d64c2faf 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -443,6 +443,11 @@ class FreqtradeBot(object): amount = stake_amount / buy_limit + logger.info('passing order... pair: %s, stake_amount: %s, ' + 'buy limit: %s, last candle close: %s', + pair_s, stake_amount, buy_limit, self.exchange.klines[pair][-1][4] + ) + order_id = self.exchange.buy(pair=pair, ordertype=self.strategy.order_types['buy'], amount=amount, rate=buy_limit)['id']