adding detailed log before buy happens

This commit is contained in:
misagh 2018-12-02 15:25:34 +01:00
parent 27c2e80cff
commit 041a1926c6

View File

@ -443,6 +443,11 @@ class FreqtradeBot(object):
amount = stake_amount / buy_limit 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'], order_id = self.exchange.buy(pair=pair, ordertype=self.strategy.order_types['buy'],
amount=amount, rate=buy_limit)['id'] amount=amount, rate=buy_limit)['id']