Fix types of "has" calls
This commit is contained in:
@@ -512,7 +512,7 @@ class LocalTrade:
|
|||||||
return [o for o in self.orders if o.ft_is_open and o.ft_order_side != 'stoploss']
|
return [o for o in self.orders if o.ft_is_open and o.ft_order_side != 'stoploss']
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def has_open_orders(self) -> int:
|
def has_open_orders(self) -> bool:
|
||||||
"""
|
"""
|
||||||
True if there are open orders for this trade excluding stoploss orders
|
True if there are open orders for this trade excluding stoploss orders
|
||||||
"""
|
"""
|
||||||
@@ -533,7 +533,7 @@ class LocalTrade:
|
|||||||
]
|
]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def has_open_sl_orders(self) -> int:
|
def has_open_sl_orders(self) -> bool:
|
||||||
"""
|
"""
|
||||||
True if there are open stoploss orders for this trade
|
True if there are open stoploss orders for this trade
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user