update get_fee entry and exit sides

This commit is contained in:
Sam Germain 2022-04-29 22:44:43 -06:00
parent c78fac057f
commit 64cd5b31d1

View File

@ -583,11 +583,9 @@ class FreqtradeBot(LoggingMixin):
''' '''
order_type = self.config['order_types'][side] order_type = self.config['order_types'][side]
if order_type == 'limit': if order_type == 'limit':
enter_side = 'ask' if is_short else 'bid'
exit_side = 'bid' if is_short else 'ask'
if ( if (
side == 'entry' and self.config['bid_strategy']['price_side'] == enter_side or side == 'entry' and self.config['entry_pricing']['price_side'] == 'same' or
side == 'exit' and self.config['ask_strategy']['price_side'] == exit_side side == 'exit' and self.config['exit_pricing']['price_side'] == 'same'
): ):
taker_or_maker = 'maker' taker_or_maker = 'maker'
else: else: