Update freqtradebot.py

This commit is contained in:
nullart 2018-06-19 07:43:33 +08:00 committed by GitHub
parent d4e500fb53
commit 8193ce557c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -271,7 +271,7 @@ class FreqtradeBot(object):
logger.info('Using Last Ask / Last Price')
used_rate = ticker_rate
percent_from_top = self.config.get('bid_strategy',{}).get('percent_from_top',0)
if self.config['bid_strategy']['percent_from_top'] > 0:
if percent_from_top > 0:
used_rate = used_rate - (used_rate * percent_from_top)
used_rate = self.analyze.trunc_num(used_rate, 8)
logger.info('...percent_from_top enabled, new buy rate %0.8f', used_rate)