mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-20 12:20:29 +08:00
Merge pull request #471 from quantopian/add_risk_to_datapanel
ENH: risk measures in datapanel
This commit is contained in:
@@ -499,6 +499,7 @@ class TradingAlgorithm(object):
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user