From 72b2d4ab5fa0759250cdb7c1c0083e6e4327c3fa Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 6 Jan 2022 11:16:05 +0100 Subject: [PATCH] Update FTX to support new standardized futures format --- freqtrade/exchange/ftx.py | 1 - setup.py | 2 +- tests/exchange/test_ccxt_compat.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/freqtrade/exchange/ftx.py b/freqtrade/exchange/ftx.py index 1dbfcdcb1..8fc8b69e0 100644 --- a/freqtrade/exchange/ftx.py +++ b/freqtrade/exchange/ftx.py @@ -22,7 +22,6 @@ class Ftx(Exchange): "ohlcv_candle_limit": 1500, "mark_ohlcv_price": "index", "mark_ohlcv_timeframe": "1h", - "ccxt_futures_name": "future" } _supported_trading_mode_collateral_pairs: List[Tuple[TradingMode, Collateral]] = [ diff --git a/setup.py b/setup.py index a5e91dfac..5a24318f5 100644 --- a/setup.py +++ b/setup.py @@ -43,7 +43,7 @@ setup( ], install_requires=[ # from requirements.txt - 'ccxt>=1.61.24', + 'ccxt>=1.66.20', 'SQLAlchemy', 'python-telegram-bot>=13.4', 'arrow>=0.17.0', diff --git a/tests/exchange/test_ccxt_compat.py b/tests/exchange/test_ccxt_compat.py index a655f31e8..ee54b1f72 100644 --- a/tests/exchange/test_ccxt_compat.py +++ b/tests/exchange/test_ccxt_compat.py @@ -39,7 +39,7 @@ EXCHANGES = { 'pair': 'BTC/USD', 'hasQuoteVolume': True, 'timeframe': '5m', - 'futures_pair': 'BTC-PERP', + 'futures_pair': 'BTC/USD:USD', 'futures': True, }, 'kucoin': {