stable/freqtrade/enums/exittype.py

21 lines
511 B
Python
Raw Normal View History

2021-06-08 19:04:34 +00:00
from enum import Enum
2022-03-25 05:55:37 +00:00
class ExitType(Enum):
2021-06-08 19:04:34 +00:00
"""
Enum to distinguish between sell reasons
"""
ROI = "roi"
STOP_LOSS = "stop_loss"
STOPLOSS_ON_EXCHANGE = "stoploss_on_exchange"
TRAILING_STOP_LOSS = "trailing_stop_loss"
SELL_SIGNAL = "sell_signal"
FORCE_SELL = "force_sell"
EMERGENCY_SELL = "emergency_sell"
CUSTOM_SELL = "custom_sell"
NONE = ""
def __str__(self):
# explicitly convert to String to help with exporting data.
return self.value