From 6e8420914e2a0edcdfc77054043c6ee87a70a86b Mon Sep 17 00:00:00 2001 From: Sam Germain Date: Mon, 31 Jan 2022 03:07:42 -0600 Subject: [PATCH] removed unnecessary CCXT checks in exchange.get_min_pair_stake_amount --- freqtrade/exchange/exchange.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 56442b842..99a903f26 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -684,13 +684,9 @@ class Exchange: except KeyError: raise ValueError(f"Can't get market information for symbol {pair}") - if 'limits' not in market: - return None - min_stake_amounts = [] limits = market['limits'] - if ('cost' in limits and 'min' in limits['cost'] - and limits['cost']['min'] is not None): + if (limits['cost']['min'] is not None): min_stake_amounts.append( self._contracts_to_amount( pair, @@ -698,8 +694,7 @@ class Exchange: ) ) - if ('amount' in limits and 'min' in limits['amount'] - and limits['amount']['min'] is not None): + if (limits['amount']['min'] is not None): min_stake_amounts.append( self._contracts_to_amount( pair,