Skip to content

Commit

Permalink
Merge pull request #471 from quantopian/add_risk_to_datapanel
Browse files Browse the repository at this point in the history
ENH: risk measures in datapanel
  • Loading branch information
fawce committed Jan 27, 2015
2 parents a5eefc7 + 9ccb2c5 commit 575abf7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zipline/algorithm.py
Expand Up @@ -499,6 +499,7 @@ def _create_daily_stats(self, perfs):
perf['daily_perf'].update(
perf['daily_perf'].pop('recorded_vars')
)
perf['daily_perf'].update(perf['cumulative_risk_metrics'])
daily_perfs.append(perf['daily_perf'])
else:
self.risk_report = perf
Expand Down

0 comments on commit 575abf7

Please sign in to comment.