mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-02-03 04:41:23 +00:00
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']
|
||||
|
||||
@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
|
||||
"""
|
||||
@@ -533,7 +533,7 @@ class LocalTrade:
|
||||
]
|
||||
|
||||
@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
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user