mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-14 20:01:18 +00:00
test: add ft_additional_exchange_init to simplify test setups
This commit is contained in:
@@ -300,7 +300,7 @@ class Exchange:
|
|||||||
|
|
||||||
if self.trading_mode != TradingMode.SPOT and load_leverage_tiers:
|
if self.trading_mode != TradingMode.SPOT and load_leverage_tiers:
|
||||||
self.fill_leverage_tiers()
|
self.fill_leverage_tiers()
|
||||||
self.additional_exchange_init()
|
self.ft_additional_exchange_init()
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
"""
|
"""
|
||||||
@@ -455,6 +455,12 @@ class Exchange:
|
|||||||
"""
|
"""
|
||||||
return self._api.precisionMode
|
return self._api.precisionMode
|
||||||
|
|
||||||
|
def ft_additional_exchange_init(self) -> None:
|
||||||
|
"""
|
||||||
|
Wrapper around additional_exchange_init to simplify testing
|
||||||
|
"""
|
||||||
|
self.additional_exchange_init()
|
||||||
|
|
||||||
def additional_exchange_init(self) -> None:
|
def additional_exchange_init(self) -> None:
|
||||||
"""
|
"""
|
||||||
Additional exchange initialization logic.
|
Additional exchange initialization logic.
|
||||||
|
|||||||
Reference in New Issue
Block a user