From d558832c4f487964dffafdab46f92d3147c8b2ca Mon Sep 17 00:00:00 2001 From: Dave Skender <8432125+DaveSkender@users.noreply.github.com> Date: Wed, 28 Dec 2022 13:32:37 -0500 Subject: [PATCH] add prepend sync to Beta, Corr, Prs (#993) --- src/a-d/Beta/Beta.Api.cs | 2 +- src/a-d/Correlation/Correlation.Api.cs | 2 +- src/m-r/Prs/Prs.Api.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/a-d/Beta/Beta.Api.cs b/src/a-d/Beta/Beta.Api.cs index 9bc53ed65..34d379e79 100644 --- a/src/a-d/Beta/Beta.Api.cs +++ b/src/a-d/Beta/Beta.Api.cs @@ -37,7 +37,7 @@ public static IEnumerable GetBeta( = mrktResults.ToTuple(); return CalcBeta(tpListEval, tpListMrkt, lookbackPeriods, type) - .SyncIndex(evalResults); + .SyncIndex(evalResults, SyncType.Prepend); } // SERIES, from TUPLE diff --git a/src/a-d/Correlation/Correlation.Api.cs b/src/a-d/Correlation/Correlation.Api.cs index aa696c4db..709e77697 100644 --- a/src/a-d/Correlation/Correlation.Api.cs +++ b/src/a-d/Correlation/Correlation.Api.cs @@ -34,7 +34,7 @@ public static IEnumerable GetCorrelation( = quotesB.ToTuple(); return CalcCorrelation(tpListA, tpListB, lookbackPeriods) - .SyncIndex(quotesA); + .SyncIndex(quotesA, SyncType.Prepend); } // SERIES, from TUPLE diff --git a/src/m-r/Prs/Prs.Api.cs b/src/m-r/Prs/Prs.Api.cs index 11a11afae..16bd36901 100644 --- a/src/m-r/Prs/Prs.Api.cs +++ b/src/m-r/Prs/Prs.Api.cs @@ -35,7 +35,7 @@ public static IEnumerable GetPrs( = quotesBase.ToTuple(); return CalcPrs(tpListEval, tpListBase, lookbackPeriods, smaPeriods) - .SyncIndex(quotesEval); + .SyncIndex(quotesEval, SyncType.Prepend); } // SERIES, from TUPLE