use filled time calculate duration
This commit is contained in:
@@ -366,6 +366,10 @@ class LocalTrade():
|
||||
else:
|
||||
return self.amount
|
||||
|
||||
@property
|
||||
def filled_date_utc(self):
|
||||
return self.select_order('buy', is_open=False).order_filled_date.replace(tzinfo=timezone.utc)
|
||||
|
||||
@property
|
||||
def open_date_utc(self):
|
||||
return self.open_date.replace(tzinfo=timezone.utc)
|
||||
|
Reference in New Issue
Block a user