"Vibe-Trading: Your Personal Trading Agent"
Python ai-agentalgorithmic-tradingbacktestingfintechllmmcpmulti-agentpythonquantitative-financetrading
style(quantlib): fix top-level blank line formatting around fit_ornstein_uhlenbeck
santhreal7fa424048ac9
diff --git a/agent/src/quantlib/timeseries.py b/agent/src/quantlib/timeseries.pyindex ddc0d30af..ec57379fb 100644--- a/agent/src/quantlib/timeseries.py+++ b/agent/src/quantlib/timeseries.py@@ -231,7 +231,6 @@ def compute_half_life(spread: pd.Series) -> float:return float(-np.log(2) / reversion)-def fit_ornstein_uhlenbeck(series: pd.Series, dt: float = 1.0) -> dict:"""Fit an Ornstein-Uhlenbeck (OU) mean-reverting process by exact discrete MLE.@@ -328,6 +327,7 @@ def fit_ornstein_uhlenbeck(series: pd.Series, dt: float = 1.0) -> dict:"is_mean_reverting": is_reverting,}+def find_hedge_ratio(y: pd.Series, x: pd.Series) -> dict:"""Fit the pair-trading hedge ratio ``y = α + β·x + ε``.