Skip to content

Commit

Permalink
fix: compilation issue in AnnualizedArithmeticReturn
Browse files Browse the repository at this point in the history
I should really run my tests before pushing
  • Loading branch information
crhntr committed Sep 27, 2023
1 parent e590e00 commit ecd0883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion returns/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func (table Table) TimeWeightedReturns() []float64 {
}

func (table Table) AnnualizedArithmeticReturn(column int) float64 {
return calculations.AnnualizedArithmeticReturn(table.values[column])
return calculations.AnnualizedArithmeticReturn(table.values[column], calculations.PeriodsPerYear)
}

func (table Table) AnnualizedArithmeticReturns() []float64 {
Expand Down

0 comments on commit ecd0883

Please sign in to comment.