From 64cd5b31d1e01aab7be3567ed065c6bfc080263a Mon Sep 17 00:00:00 2001 From: Sam Germain Date: Fri, 29 Apr 2022 22:44:43 -0600 Subject: [PATCH] update get_fee entry and exit sides --- freqtrade/freqtradebot.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index a8e51057a..f394ab81a 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -583,11 +583,9 @@ class FreqtradeBot(LoggingMixin): ''' order_type = self.config['order_types'][side] if order_type == 'limit': - enter_side = 'ask' if is_short else 'bid' - exit_side = 'bid' if is_short else 'ask' if ( - side == 'entry' and self.config['bid_strategy']['price_side'] == enter_side or - side == 'exit' and self.config['ask_strategy']['price_side'] == exit_side + side == 'entry' and self.config['entry_pricing']['price_side'] == 'same' or + side == 'exit' and self.config['exit_pricing']['price_side'] == 'same' ): taker_or_maker = 'maker' else: