From 6bb7167b56d525f9c68ad1bbc0b154d4fe2a695f Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 11 Jul 2018 19:22:34 +0200 Subject: [PATCH] Add sellType enum --- freqtrade/strategy/interface.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/freqtrade/strategy/interface.py b/freqtrade/strategy/interface.py index fb8bcd31d..811f3232e 100644 --- a/freqtrade/strategy/interface.py +++ b/freqtrade/strategy/interface.py @@ -27,6 +27,16 @@ class SignalType(Enum): SELL = "sell" +class SellType(Enum): + """ + Enum to distinguish between sell reasons + """ + ROI = "roi" + STOP_LOSS = "stop_loss" + TRAILING_STOP_LOSS = "trailing_stop_loss" + SELL_SIGNAL = "sell_signal" + + class IStrategy(ABC): """ Interface for freqtrade strategies