initial concept for replicate, basic leader and follower logic

This commit is contained in:
Timothy Pogue
2022-08-18 10:39:20 -06:00
committed by robcaulk
parent 85b43ec1a1
commit 9f6bba40af
16 changed files with 1330 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ from freqtrade.enums.exitchecktuple import ExitCheckTuple
from freqtrade.enums.exittype import ExitType
from freqtrade.enums.marginmode import MarginMode
from freqtrade.enums.ordertypevalue import OrderTypeValues
from freqtrade.enums.replicate import LeaderMessageType, ReplicateModeType
from freqtrade.enums.rpcmessagetype import RPCMessageType
from freqtrade.enums.runmode import NON_UTIL_MODES, OPTIMIZE_MODES, TRADING_MODES, RunMode
from freqtrade.enums.signaltype import SignalDirection, SignalTagType, SignalType

View File

@@ -0,0 +1,11 @@
from enum import Enum
class ReplicateModeType(str, Enum):
leader = "leader"
follower = "follower"
class LeaderMessageType(str, Enum):
Pairlist = "pairlist"
Dataframe = "dataframe"

View File

@@ -19,6 +19,8 @@ class RPCMessageType(Enum):
STRATEGY_MSG = 'strategy_msg'
EMIT_DATA = 'emit_data'
def __repr__(self):
return self.value