Skip to content

Commit b07ffbf

Browse files
committed
test: remove unused argument
1 parent a7b7e10 commit b07ffbf

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tests/exchange_online/test_ccxt_compat.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,7 @@ def test_ccxt_fetch_ohlcv_startdate(self, exchange: EXCHANGE_FIXTURE_TYPE):
270270
assert exch.klines(pair_tf).iloc[-1]["date"] >= timeframe_to_prev_date(timeframe, now)
271271
assert exch.klines(pair_tf)["date"].astype(int).iloc[0] // 1e6 == since_ms
272272

273-
def ccxt__async_get_candle_history(
274-
self, exchange, exchangename, pair, timeframe, candle_type, factor=0.9
275-
):
273+
def _ccxt__async_get_candle_history(self, exchange, pair, timeframe, candle_type, factor=0.9):
276274
timeframe_ms = timeframe_to_msecs(timeframe)
277275
now = timeframe_to_prev_date(timeframe, datetime.now(UTC))
278276
for offset in (360, 120, 30, 10, 5, 2):
@@ -304,7 +302,7 @@ def test_ccxt__async_get_candle_history(self, exchange: EXCHANGE_FIXTURE_TYPE):
304302
pytest.skip("Exchange does not support candle history")
305303
pair = EXCHANGES[exchangename]["pair"]
306304
timeframe = EXCHANGES[exchangename]["timeframe"]
307-
self.ccxt__async_get_candle_history(exc, exchangename, pair, timeframe, CandleType.SPOT)
305+
self._ccxt__async_get_candle_history(exc, pair, timeframe, CandleType.SPOT)
308306

309307
@pytest.mark.parametrize(
310308
"candle_type",
@@ -315,7 +313,7 @@ def test_ccxt__async_get_candle_history(self, exchange: EXCHANGE_FIXTURE_TYPE):
315313
],
316314
)
317315
def test_ccxt__async_get_candle_history_futures(
318-
self, exchange_futures: EXCHANGE_FIXTURE_TYPE, candle_type
316+
self, exchange_futures: EXCHANGE_FIXTURE_TYPE, candle_type: CandleType
319317
):
320318
exchange, exchangename = exchange_futures
321319
pair = EXCHANGES[exchangename].get("futures_pair", EXCHANGES[exchangename]["pair"])
@@ -324,9 +322,8 @@ def test_ccxt__async_get_candle_history_futures(
324322
timeframe = exchange._ft_has.get(
325323
"funding_fee_timeframe", exchange._ft_has["mark_ohlcv_timeframe"]
326324
)
327-
self.ccxt__async_get_candle_history(
325+
self._ccxt__async_get_candle_history(
328326
exchange,
329-
exchangename,
330327
pair=pair,
331328
timeframe=timeframe,
332329
candle_type=candle_type,

0 commit comments

Comments
 (0)