Skip to content

Commit

Permalink
add prepend sync to Beta, Corr, Prs (#993)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveSkender authored Dec 28, 2022
1 parent b2c3db7 commit d558832
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/a-d/Beta/Beta.Api.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static IEnumerable<BetaResult> GetBeta(
= mrktResults.ToTuple();

return CalcBeta(tpListEval, tpListMrkt, lookbackPeriods, type)
.SyncIndex(evalResults);
.SyncIndex(evalResults, SyncType.Prepend);
}

// SERIES, from TUPLE
Expand Down
2 changes: 1 addition & 1 deletion src/a-d/Correlation/Correlation.Api.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static IEnumerable<CorrResult> GetCorrelation(
= quotesB.ToTuple();

return CalcCorrelation(tpListA, tpListB, lookbackPeriods)
.SyncIndex(quotesA);
.SyncIndex(quotesA, SyncType.Prepend);
}

// SERIES, from TUPLE
Expand Down
2 changes: 1 addition & 1 deletion src/m-r/Prs/Prs.Api.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static IEnumerable<PrsResult> GetPrs(
= quotesBase.ToTuple();

return CalcPrs(tpListEval, tpListBase, lookbackPeriods, smaPeriods)
.SyncIndex(quotesEval);
.SyncIndex(quotesEval, SyncType.Prepend);
}

// SERIES, from TUPLE
Expand Down

0 comments on commit d558832

Please sign in to comment.