comments, formatting
This commit is contained in:
parent
e13b0414d8
commit
f8248f3771
@ -3,7 +3,7 @@ from enum import Enum
|
||||
|
||||
class SignalType(Enum):
|
||||
"""
|
||||
Enum to distinguish between buy and sell signals
|
||||
Enum to distinguish between enter and exit signals
|
||||
"""
|
||||
ENTER_LONG = "enter_long"
|
||||
EXIT_LONG = "exit_long"
|
||||
|
@ -548,7 +548,7 @@ class LocalTrade():
|
||||
if self.is_open:
|
||||
payment = "BUY" if self.is_short else "SELL"
|
||||
# TODO-lev: On shorts, you buy a little bit more than the amount (amount + interest)
|
||||
# This wll only print the original amount
|
||||
# TODO-lev: This wll only print the original amount
|
||||
logger.info(f'{order_type.upper()}_{payment} has been fulfilled for {self}.')
|
||||
# TODO-lev: Double check this
|
||||
self.close(safe_value_fallback(order, 'average', 'price'))
|
||||
|
@ -127,7 +127,7 @@ class PairListManager():
|
||||
:return: pairlist - whitelisted pairs
|
||||
"""
|
||||
try:
|
||||
|
||||
# TODO-lev: filter for pairlists that are able to trade at the desired leverage
|
||||
whitelist = expand_pairlist(pairlist, self._exchange.get_markets().keys(), keep_invalid)
|
||||
except ValueError as err:
|
||||
logger.error(f"Pair whitelist contains an invalid Wildcard: {err}")
|
||||
|
@ -36,6 +36,7 @@ class RPCException(Exception):
|
||||
|
||||
raise RPCException('*Status:* `no active trade`')
|
||||
"""
|
||||
# TODO-lev: Add new configuration options introduced with leveraged/short trading
|
||||
|
||||
def __init__(self, message: str) -> None:
|
||||
super().__init__(self)
|
||||
|
@ -90,7 +90,7 @@ def test_enter_exit_side(fee):
|
||||
|
||||
|
||||
@pytest.mark.usefixtures("init_persistence")
|
||||
def test__set_stop_loss_isolated_liq(fee):
|
||||
def test_set_stop_loss_isolated_liq(fee):
|
||||
trade = Trade(
|
||||
id=2,
|
||||
pair='ADA/USDT',
|
||||
|
Loading…
Reference in New Issue
Block a user