Parametrized test_persistence

This commit is contained in:
Sam Germain
2021-09-14 23:10:10 -06:00
parent d77ab337bf
commit 5fcb69a0b5
4 changed files with 244 additions and 503 deletions

View File

@@ -320,6 +320,7 @@ class LocalTrade():
if self.isolated_liq:
self.set_isolated_liq(self.isolated_liq)
self.recalc_open_trade_value()
# TODO-lev: Throw exception if on margin and interest_rate is none
def _set_stop_loss(self, stop_loss: float, percent: float):
"""

View File

@@ -0,0 +1,3 @@
# flake8: noqa: F401
from freqtrade.utils.get_sides import get_sides

View File

@@ -0,0 +1,5 @@
from typing import Tuple
def get_sides(is_short: bool) -> Tuple[str, str]:
return ("sell", "buy") if is_short else ("buy", "sell")