chore: use string aliases for astype calls

This commit is contained in:
Matthias
2026-04-13 07:24:10 +02:00
parent 74ba9d76a2
commit c19982dd36
4 changed files with 10 additions and 12 deletions
+1 -1
View File
@@ -287,7 +287,7 @@ class TestCCXTExchange:
# Check if last-timeframe is within the last 2 intervals
now = datetime.now(UTC) - timedelta(minutes=(timeframe_to_minutes(timeframe) * 2))
assert exch.klines(pair_tf).iloc[-1]["date"] >= timeframe_to_prev_date(timeframe, now)
assert exch.klines(pair_tf)["date"].astype(int).iloc[0] // 1e6 == since_ms
assert exch.klines(pair_tf)["date"].dt.as_unit("ms").astype("int64").iloc[0] == since_ms
def _ccxt__async_get_candle_history(
self, exchange, pair: str, timeframe: str, candle_type: CandleType, factor: float = 0.9