mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-28 12:51:29 +08:00
MAINT: Removes unused currentValue method on Position object.
This method became unused when vectorizing position totals.
This commit is contained in:
1 parent
736a4babf0
commit
41d3c72627
1 file changed
-3
@@ -410,9 +410,6 @@ class Position(object):
|
||||
self.cost_basis = total_cost / total_shares
|
||||
self.amount = self.amount + txn.amount
|
||||
|
||||
def currentValue(self):
|
||||
return self.amount * self.last_sale_price
|
||||
|
||||
def __repr__(self):
|
||||
template = "sid: {sid}, amount: {amount}, cost_basis: {cost_basis}, \
|
||||
last_sale_price: {last_sale_price}"
|
||||
|
||||
Reference in new issue
Block a user