Allow safe_price for market stop orders
This commit is contained in:
parent
ca6dec3d4c
commit
9f266cbcb2
@ -83,7 +83,7 @@ class Order(_DECL_BASE):
|
||||
|
||||
@property
|
||||
def safe_price(self) -> float:
|
||||
return self.average or self.price
|
||||
return self.average or self.price or self.stop_price
|
||||
|
||||
@property
|
||||
def safe_filled(self) -> float:
|
||||
|
Loading…
Reference in New Issue
Block a user