mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-04 02:43:12 +08:00
FIX: Add last_sale_date to Position init for consistency
This commit is contained in:
@@ -152,6 +152,7 @@ class Position(object):
|
||||
self.amount = 0
|
||||
self.cost_basis = 0.0 # per share
|
||||
self.last_sale_price = 0.0
|
||||
self.last_sale_date = None
|
||||
|
||||
def __getitem__(self, key):
|
||||
return self.__dict__[key]
|
||||
|
||||
Reference in New Issue
Block a user