From bd1ef7a8132cc06adf04849ade7e882538e38b48 Mon Sep 17 00:00:00 2001 From: Nullart Date: Fri, 15 Jun 2018 11:03:44 +0800 Subject: [PATCH] buy & sell order book update: move up book order position to 1 --- freqtrade/freqtradebot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index c97aa1697..be319cff5 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -258,7 +258,7 @@ class FreqtradeBot(object): # if ticker has lower rate, then use ticker ( usefull if down trending ) if ticker_rate < orderBook_rate: return ticker_rate - return orderBook_rate + return orderBook_rate+0.00000001 else: logger.info('Using Ask / Last Price') return ticker_rate @@ -456,7 +456,7 @@ with limit `{buy_limit:.8f} ({stake_amount:.6f} \ # if orderbook has higher rate (high profit), # use orderbook, otherwise just use sell rate if (sell_rate < orderBook_rate): - sell_rate = orderBook_rate + sell_rate = orderBook_rate-0.00000001 if self.check_sell(trade, sell_rate, buy, sell): return True