From 099bf7691e2a932ae0e980f81326a4df4d306e6a Mon Sep 17 00:00:00 2001 From: Sam Germain Date: Sat, 13 Nov 2021 16:22:36 -0600 Subject: [PATCH] Updated bibox to combine parent _ccxt_config and minimized _ccxt_config tests --- freqtrade/exchange/bibox.py | 4 +++- tests/exchange/test_exchange.py | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/freqtrade/exchange/bibox.py b/freqtrade/exchange/bibox.py index e0741e34a..5574c401a 100644 --- a/freqtrade/exchange/bibox.py +++ b/freqtrade/exchange/bibox.py @@ -23,6 +23,8 @@ class Bibox(Exchange): @property def _ccxt_config(self) -> Dict: # Parameters to add directly to ccxt sync/async initialization. - return {"has": {"fetchCurrencies": False}} + config = {"has": {"fetchCurrencies": False}} + config.update(super()._ccxt_config) + return config funding_fee_times: List[int] = [0, 8, 16] # hours of the day diff --git a/tests/exchange/test_exchange.py b/tests/exchange/test_exchange.py index 6b6900752..b92299fdd 100644 --- a/tests/exchange/test_exchange.py +++ b/tests/exchange/test_exchange.py @@ -3253,9 +3253,10 @@ def test_validate_trading_mode_and_collateral( ("binance", "spot", {}), ("binance", "margin", {"options": {"defaultType": "margin"}}), ("binance", "futures", {"options": {"defaultType": "future"}}), - ("gateio", "spot", {}), - ("gateio", "margin", {"options": {"defaultType": "margin"}}), ("gateio", "futures", {"options": {"defaultType": "swap"}}), + ("bibox", "spot", {"has": {"fetchCurrencies": False}}), + ("bibox", "margin", {"has": {"fetchCurrencies": False}, "options": {"defaultType": "margin"}}), + ("bibox", "futures", {"has": {"fetchCurrencies": False}, "options": {"defaultType": "swap"}}), ]) def test__ccxt_config( default_conf,