added new text
This commit is contained in:
@@ -5,6 +5,7 @@ from freqtrade.enums.exitchecktuple import ExitCheckTuple
|
||||
from freqtrade.enums.exittype import ExitType
|
||||
from freqtrade.enums.hyperoptstate import HyperoptState
|
||||
from freqtrade.enums.marginmode import MarginMode
|
||||
from freqtrade.enums.marketstatetype import MarketDirection
|
||||
from freqtrade.enums.ordertypevalue import OrderTypeValues
|
||||
from freqtrade.enums.pricetype import PriceType
|
||||
from freqtrade.enums.rpcmessagetype import NO_ECHO_MESSAGES, RPCMessageType, RPCRequestType
|
||||
@@ -12,4 +13,3 @@ from freqtrade.enums.runmode import NON_UTIL_MODES, OPTIMIZE_MODES, TRADING_MODE
|
||||
from freqtrade.enums.signaltype import SignalDirection, SignalTagType, SignalType
|
||||
from freqtrade.enums.state import State
|
||||
from freqtrade.enums.tradingmode import TradingMode
|
||||
from freqtrade.enums.marketstatetype import MarketDirection
|
||||
|
@@ -9,18 +9,3 @@ class MarketDirection(Enum):
|
||||
SHORT = "short"
|
||||
EVEN = "even"
|
||||
NONE = ''
|
||||
|
||||
@staticmethod
|
||||
def string_to_enum(label : str) -> str:
|
||||
match label:
|
||||
case "long":
|
||||
return MarketDirection.LONG
|
||||
case "short":
|
||||
return MarketDirection.SHORT
|
||||
case "even":
|
||||
return MarketDirection.EVEN
|
||||
case 'none':
|
||||
return MarketDirection.NONE
|
||||
case _:
|
||||
return None
|
||||
|
||||
|
Reference in New Issue
Block a user