Move RPCMessageType to enums

This commit is contained in:
Matthias
2021-06-09 19:51:44 +02:00
parent 756904f985
commit d4dfdf04fc
14 changed files with 36 additions and 38 deletions

View File

@@ -1,4 +1,5 @@
# flake8: noqa: F401
from freqtrade.enums.rpcmessagetype import RPCMessageType
from freqtrade.enums.runmode import NON_UTIL_MODES, OPTIMIZE_MODES, TRADING_MODES, RunMode
from freqtrade.enums.selltype import SellType
from freqtrade.enums.signaltype import SignalType

View File

@@ -0,0 +1,19 @@
from enum import Enum
class RPCMessageType(Enum):
STATUS = 'status'
WARNING = 'warning'
STARTUP = 'startup'
BUY = 'buy'
BUY_FILL = 'buy_fill'
BUY_CANCEL = 'buy_cancel'
SELL = 'sell'
SELL_FILL = 'sell_fill'
SELL_CANCEL = 'sell_cancel'
def __repr__(self):
return self.value
def __str__(self):
return self.value

View File

@@ -1,8 +1,3 @@
# pragma pylint: disable=too-few-public-methods
"""
Bot state constant
"""
from enum import Enum