mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-08 11:40:40 +08:00
MAINT: Remove unused rounding method.
round_to_nearest is no longer referred elsewhere.
This commit is contained in:
@@ -250,9 +250,6 @@ class PerformancePeriod(object):
|
||||
if self.keep_transactions:
|
||||
self.processed_transactions[txn.dt].append(txn)
|
||||
|
||||
def round_to_nearest(self, x, base=5):
|
||||
return int(base * round(float(x) / base))
|
||||
|
||||
def calculate_positions_value(self):
|
||||
return np.dot(self._position_amounts, self._position_last_sale_prices)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user