FIX: Add last_sale_date to Position init for consistency

This commit is contained in:
Andrew Liang
2016-04-26 16:13:07 -04:00
parent d69b960c49
commit 4ffe04e4a5
+1
View File
@@ -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]