From a9241f61f9f1241c8aa9ebbe3d817d26e6590b5a Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 4 Feb 2023 13:33:09 +0100 Subject: [PATCH] Add Price Type Enum --- freqtrade/enums/__init__.py | 1 + freqtrade/enums/pricetype.py | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 freqtrade/enums/pricetype.py diff --git a/freqtrade/enums/__init__.py b/freqtrade/enums/__init__.py index eb70a2894..8ef53e12d 100644 --- a/freqtrade/enums/__init__.py +++ b/freqtrade/enums/__init__.py @@ -6,6 +6,7 @@ from freqtrade.enums.exittype import ExitType from freqtrade.enums.hyperoptstate import HyperoptState from freqtrade.enums.marginmode import MarginMode from freqtrade.enums.ordertypevalue import OrderTypeValues +from freqtrade.enums.pricetype import PriceType from freqtrade.enums.rpcmessagetype import NO_ECHO_MESSAGES, RPCMessageType, RPCRequestType from freqtrade.enums.runmode import NON_UTIL_MODES, OPTIMIZE_MODES, TRADING_MODES, RunMode from freqtrade.enums.signaltype import SignalDirection, SignalTagType, SignalType diff --git a/freqtrade/enums/pricetype.py b/freqtrade/enums/pricetype.py new file mode 100644 index 000000000..bf0922b9f --- /dev/null +++ b/freqtrade/enums/pricetype.py @@ -0,0 +1,8 @@ +from enum import Enum + + +class PriceType(str, Enum): + """Enum to distinguish possible trigger prices for stoplosses""" + LAST = "last" + MARK = "mark" + INDEX = "index"