fix: allow setting 0 as liquidation price
This commit is contained in:
@@ -760,7 +760,7 @@ class LocalTrade:
|
|||||||
Method you should use to set self.liquidation price.
|
Method you should use to set self.liquidation price.
|
||||||
Assures stop_loss is not passed the liquidation price
|
Assures stop_loss is not passed the liquidation price
|
||||||
"""
|
"""
|
||||||
if not liquidation_price:
|
if liquidation_price is None:
|
||||||
return
|
return
|
||||||
self.liquidation_price = liquidation_price
|
self.liquidation_price = liquidation_price
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user