removed unnecessary CCXT checks in exchange.get_min_pair_stake_amount
This commit is contained in:
parent
64ad810445
commit
6e8420914e
@ -684,13 +684,9 @@ class Exchange:
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
raise ValueError(f"Can't get market information for symbol {pair}")
|
raise ValueError(f"Can't get market information for symbol {pair}")
|
||||||
|
|
||||||
if 'limits' not in market:
|
|
||||||
return None
|
|
||||||
|
|
||||||
min_stake_amounts = []
|
min_stake_amounts = []
|
||||||
limits = market['limits']
|
limits = market['limits']
|
||||||
if ('cost' in limits and 'min' in limits['cost']
|
if (limits['cost']['min'] is not None):
|
||||||
and limits['cost']['min'] is not None):
|
|
||||||
min_stake_amounts.append(
|
min_stake_amounts.append(
|
||||||
self._contracts_to_amount(
|
self._contracts_to_amount(
|
||||||
pair,
|
pair,
|
||||||
@ -698,8 +694,7 @@ class Exchange:
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
if ('amount' in limits and 'min' in limits['amount']
|
if (limits['amount']['min'] is not None):
|
||||||
and limits['amount']['min'] is not None):
|
|
||||||
min_stake_amounts.append(
|
min_stake_amounts.append(
|
||||||
self._contracts_to_amount(
|
self._contracts_to_amount(
|
||||||
pair,
|
pair,
|
||||||
|
Loading…
Reference in New Issue
Block a user