fix: use as_unit instead of int math

This commit is contained in:
Matthias
2026-04-13 07:18:35 +02:00
parent 187d06b5ba
commit 74ba9d76a2
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ def make_response_from_url(start_date, end_date):
"taker_buy_quote_volume,ignore"
)
df = pd.DataFrame(columns=cols.split(","), dtype=float)
df["open_time"] = date_col.astype("int64") // 10**6
df["open_time"] = date_col.as_unit("ms").astype("int64")
df["open"] = df["high"] = df["low"] = df["close"] = df["volume"] = 1.0
return df