mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-19 11:22:06 +08:00
changes risk report period label to YYYY-MM format
This commit is contained in:
@@ -123,7 +123,7 @@ class RiskMetrics():
|
||||
Creates a dictionary representing the state of the risk report.
|
||||
Returns a dict object of the form:
|
||||
"""
|
||||
period_label = self.end_date.strftime("%B %Y")
|
||||
period_label = self.end_date.strftime("%Y-%m")
|
||||
return {
|
||||
'trading_days' : self.trading_days,
|
||||
'benchmark_volatility' : self.benchmark_volatility,
|
||||
|
||||
Reference in New Issue
Block a user