修复bug
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user