mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-22 12:40:30 +08:00
MAINT: Removes unused currentValue method on Position object.
This method became unused when vectorizing position totals.
This commit is contained in:
@@ -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