From 0806202d47cd63674a64e6069afe08c1e9cfdaa4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 5 Feb 2021 20:02:55 +0100 Subject: [PATCH] ccxt version bump to 1.41.62 --- requirements.txt | 2 +- tests/exchange/test_ccxt_compat.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 5114f397f..299c07734 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ numpy==1.20.0 pandas==1.2.1 -ccxt==1.41.35 +ccxt==1.41.62 aiohttp==3.7.3 SQLAlchemy==1.3.22 python-telegram-bot==13.1 diff --git a/tests/exchange/test_ccxt_compat.py b/tests/exchange/test_ccxt_compat.py index 0c8b7bdcf..8e1d074aa 100644 --- a/tests/exchange/test_ccxt_compat.py +++ b/tests/exchange/test_ccxt_compat.py @@ -18,7 +18,7 @@ EXCHANGES = { 'bittrex': { 'pair': 'BTC/USDT', 'hasQuoteVolume': False, - 'timeframe': '5m', + 'timeframe': '1h', }, 'binance': { 'pair': 'BTC/USDT', @@ -120,7 +120,9 @@ class TestCCXTExchange(): ohlcv = exchange.refresh_latest_ohlcv([pair_tf]) assert isinstance(ohlcv, dict) assert len(ohlcv[pair_tf]) == len(exchange.klines(pair_tf)) - assert len(exchange.klines(pair_tf)) > 200 + # assert len(exchange.klines(pair_tf)) > 200 + # Assume 90% uptime ... + assert len(exchange.klines(pair_tf)) > exchange._ohlcv_candle_limit * 0.90 # TODO: tests fetch_trades (?)