Disallow negative liquidation prices

part of #8300
This commit is contained in:
Matthias 2023-03-13 19:41:39 +01:00
parent 3d31eca365
commit cf70deaf8d

View File

@ -2785,7 +2785,7 @@ class Exchange:
if is_short else if is_short else
isolated_liq + buffer_amount isolated_liq + buffer_amount
) )
return isolated_liq return max(isolated_liq, 0.0)
else: else:
return None return None