修复bug

This commit is contained in:
dekun
2026-05-18 08:10:28 +08:00
parent 24550b0ce0
commit 82a7237063
8 changed files with 132 additions and 58 deletions
+1 -12
View File
@@ -3,18 +3,7 @@ from __future__ import annotations
import math
from statistics import mean
def rows_to_ohlcv(rows: list[list[str]]) -> tuple[list[float], list[float], list[float], list[float], list[float]]:
o, h, l, c, v = [], [], [], [], []
for item in rows:
if len(item) < 6:
continue
o.append(float(item[1]))
h.append(float(item[2]))
l.append(float(item[3]))
c.append(float(item[4]))
v.append(float(item[5]))
return o, h, l, c, v
from .candle_rows import rows_to_ohlcv
def build_daily_programmatic(rows_1d: list[list[str]], est_quote_vol_24h_usdt: float) -> dict: