Added get_liquidation_price check

This commit is contained in:
Sam Germain
2022-01-14 07:16:00 -06:00
parent bb2b2211d0
commit c2f9201512
2 changed files with 34 additions and 3 deletions

View File

@@ -1993,7 +1993,9 @@ class Exchange:
return
try:
return self._api.fetch_positions(pair).liquidationPrice
positions = self._api.fetch_positions([pair])
position = positions[0]
return position['liquidationPrice']
except ccxt.DDoSProtection as e:
raise DDosProtection(e) from e
except (ccxt.NetworkError, ccxt.ExchangeError) as e: