From 01abc7e4466e2096c4be53d64ed5618bbf64d672 Mon Sep 17 00:00:00 2001 From: KienVT9 Date: Thu, 22 May 2025 22:55:20 +0700 Subject: [PATCH] update --- app/api/candles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/candles.py b/app/api/candles.py index 0fc1028..27cc2c9 100644 --- a/app/api/candles.py +++ b/app/api/candles.py @@ -83,7 +83,7 @@ def get_candles( "volume": np.float64, "turnover": np.float64 }) - df = df.sort_values("timestamp", ascending=False) + df = df.sort_values("timestamp") # Calculate indicators close = df["close"] macd_line, macd_signal, macd_hist = macd(close, fast=45, slow=90, signal=9)