update LocalTrade model orders related property type

This commit is contained in:
axel 2023-06-15 14:11:21 -04:00
parent 73d1201ed8
commit 20a2b27498

View File

@ -469,11 +469,11 @@ class LocalTrade():
except IndexError:
return ''
@hybrid_property
@property
def open_orders_count(self) -> int:
return len(self.open_orders)
@hybrid_property
@property
def open_entry_or_exit_orders_count(self) -> int:
open_buy_or_sell_orders = []
for oo in self.open_orders:
@ -482,7 +482,7 @@ class LocalTrade():
return len(open_buy_or_sell_orders)
@hybrid_property
@property
def open_orders_ids(self) -> list:
return [open_order.order_id for open_order in self.open_orders]