slippage to percentage
This commit is contained in:
parent
041a1926c6
commit
ec55f1e45e
@ -443,9 +443,11 @@ class FreqtradeBot(object):
|
||||
|
||||
amount = stake_amount / buy_limit
|
||||
|
||||
last_candle_close = self.exchange.klines[pair][-1][4]
|
||||
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]
|
||||
'buy limit: %s, last candle close: %s, slippage: %s percent.',
|
||||
pair_s, stake_amount, buy_limit, last_candle_close,
|
||||
((buy_limit / last_candle_close) / last_candle_close) * 100
|
||||
)
|
||||
|
||||
order_id = self.exchange.buy(pair=pair, ordertype=self.strategy.order_types['buy'],
|
||||
|
Loading…
Reference in New Issue
Block a user