Skip to content

Commit d7c027f

Browse files
committed
test: add ft_additional_exchange_init to simplify test setups
1 parent b3ceaa8 commit d7c027f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

freqtrade/exchange/exchange.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def __init__(
300300

301301
if self.trading_mode != TradingMode.SPOT and load_leverage_tiers:
302302
self.fill_leverage_tiers()
303-
self.additional_exchange_init()
303+
self.ft_additional_exchange_init()
304304

305305
def __del__(self):
306306
"""
@@ -455,6 +455,12 @@ def precision_mode_price(self) -> int:
455455
"""
456456
return self._api.precisionMode
457457

458+
def ft_additional_exchange_init(self) -> None:
459+
"""
460+
Wrapper around additional_exchange_init to simplify testing
461+
"""
462+
self.additional_exchange_init()
463+
458464
def additional_exchange_init(self) -> None:
459465
"""
460466
Additional exchange initialization logic.

0 commit comments

Comments
 (0)