Skip to content

Commit

Permalink
Fixed positional arguments passed to cagr()
Browse files Browse the repository at this point in the history
  • Loading branch information
ranaroussi committed Jun 25, 2023
1 parent 2f908e2 commit 392e94a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Change Log
===========

0.0.61
------
- Fixed positional arguments passed to cagr()

0.0.60
------
- Multi-strategy reports! You can now pass a dataframe with a column for each strategy to get a unified, single report for all
Expand Down
2 changes: 1 addition & 1 deletion quantstats/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ def gain_to_pain_ratio(returns, rf=0, resolution="D"):
return returns.sum() / downside


def cagr(returns, rf=0.0, periods=252, compounded=True):
def cagr(returns, rf=0.0, compounded=True, periods=252):
"""
Calculates the communicative annualized growth return
(CAGR%) of access returns
Expand Down
2 changes: 1 addition & 1 deletion quantstats/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "0.0.60"
version = "0.0.61"

0 comments on commit 392e94a

Please sign in to comment.