mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-19 11:22:06 +08:00
name change for positions_value
This commit is contained in:
@@ -553,7 +553,7 @@ class PerformancePeriod(object):
|
||||
# cumulative_capital_used, max_leverage, max_capital_used
|
||||
portfolio['cash'] = portfolio['ending_cash']
|
||||
portfolio['start_date'] = portfolio['period_open']
|
||||
portfolio['position_value'] = portfolio['ending_value']
|
||||
portfolio['positions_value'] = portfolio['ending_value']
|
||||
|
||||
del(portfolio['ending_cash'])
|
||||
del(portfolio['period_open'])
|
||||
|
||||
+1
-1
@@ -327,7 +327,7 @@ class SimulatedTrading(object):
|
||||
|
||||
@property
|
||||
def is_success(self):
|
||||
return self.sim.read() and not self.sim.exception
|
||||
return self.sim.ready() and not self.sim.exception
|
||||
|
||||
#--------------------------------
|
||||
# Component property accessors
|
||||
|
||||
Reference in New Issue
Block a user