Parametrized test_persistence
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
3
freqtrade/utils/__init__.py
Normal file
3
freqtrade/utils/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# flake8: noqa: F401
|
||||
|
||||
from freqtrade.utils.get_sides import get_sides
|
5
freqtrade/utils/get_sides.py
Normal file
5
freqtrade/utils/get_sides.py
Normal 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")
|
Reference in New Issue
Block a user