class
EdgeMode(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
class
EntryConflictAction(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
@dataclass
class
EntryConflictPolicy:
allowHedging: Optional[bool] =
False
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Optional[Dict[str, Any]]) -> Optional[EntryConflictPolicy]:
@dataclass
class
EntryExistingPositionPolicy:
def
toDict(self) -> Dict[str, Any]:
class
ExistingTargetAction(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
@dataclass
class
ExistingTargetPolicy:
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
EntryRule:
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Dict[str, Any]) -> EntryRule:
@dataclass
class
OpenExecutionSettings:
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
EntryRules:
def
positionEntries(self) -> List[EntryRule]:
def
hasConfiguredEntry(self) -> bool:
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Optional[Dict[str, Any]]) -> EntryRules:
@dataclass
class
ExitRule:
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Dict[str, Any]) -> ExitRule:
@dataclass
class
ExitRules:
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Optional[Dict[str, Any]]) -> ExitRules:
class
ProfitThresholdType(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
@dataclass
class
ProfitTargetTier:
ProfitTargetTier(threshold: float, closePercent: Optional[float] = None)
closePercent: Optional[float] =
None
def
validate(self) -> None:
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
StagedProfitTargets:
def
toDict(self) -> Dict[str, Any]:
class
FixedStopThresholdType(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
@dataclass
class
FixedStopThreshold:
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
FixedStopRule:
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Dict[str, Any]) -> FixedStopRule:
class
TrailingStopDistanceType(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
@dataclass
class
AtrParams:
def
validate(self) -> None:
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Dict[str, Any]) -> AtrParams:
@dataclass
class
TrailingStopDistance:
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
TrailingStopRule:
def
toDict(self) -> Dict[str, Any]:
class
SessionTimeTriggerType(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
@dataclass
class
SessionTimeTrigger:
time: Optional[str] =
None
timeZonePolicy: Optional[str] =
'MARKET'
def
toDict(self) -> Dict[str, Any]:
class
ProtectiveExecutionPolicy(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
class
StopSpecType(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
@dataclass
class
StopSpec:
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Dict[str, Any]) -> StopSpec:
@dataclass
class
ProfitLevelCondition:
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
ProtectiveExitPlan:
initialProtection: Optional[StopSpec] =
None
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
ProtectionAdjustment:
def
toDict(self) -> Dict[str, Any]:
class
ProtectionTriggerType(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
@dataclass
class
ProtectionTrigger:
targetNumber: Optional[int] =
None
def
toDict(self) -> Dict[str, Any]:
class
ScheduledWorkflowIntentFamily(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
@dataclass
class
ScheduledWorkflowIntent:
def
validate(self) -> None:
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
PortfolioRotationConfig:
def
validate(self) -> None:
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
TargetWeightSpec:
TargetWeightSpec(symbol: str, weightPct: float)
def
validate(self) -> None:
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
TargetBasketRebalanceConfig:
TargetBasketRebalanceConfig( targetWeights: List[TargetWeightSpec] = <factory>, driftTolerancePct: Optional[float] = 5.0, allocationBudget: Optional[PositionSizeSpec] = None)
driftTolerancePct: Optional[float] =
5.0
def
validate(self) -> None:
def
toDict(self) -> Dict[str, Any]:
class
ContributionMode(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
@dataclass
class
ContributionSpec:
amount: Optional[float] =
100.0
percent: Optional[float] =
None
minCashReservePct: Optional[float] =
None
def
validate(self) -> None:
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Optional[Dict[str, Any]]) -> ContributionSpec:
@dataclass
class
RecurringMultiAssetEntryTarget:
symbol: Optional[str] =
None
weightPct: Optional[float] =
None
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
RecurringMultiAssetEntryConfig:
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
RecurringSingleAssetEntryConfig:
symbol: Optional[str] =
None
def
validate(self) -> None:
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
ScheduledJob:
name: Optional[str] =
None
def
validate(self) -> None:
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Dict[str, Any]) -> ScheduledJob:
class
MarketRegimeRule(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
class
MarketRegimeTimeFrame(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
class
StrategyGuardType(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
class
TimeWindowMode(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
class
GuardScope(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
class
StrategyGuard:
def
validate(self) -> None:
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Optional[Dict[str, Any]]) -> Optional[StrategyGuard]:
lookbackPeriods: int =
200
def
validate(self) -> None:
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Optional[Dict[str, Any]]) -> Optional[MarketRegimeGuard]:
startTime: Optional[str] =
None
endTime: Optional[str] =
None
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Optional[Dict[str, Any]]) -> Optional[TimeGuard]:
PortfolioMarginGuard( minBuyingPowerPct: Optional[float] = None, minMarginBufferPct: Optional[float] = None, maxLeverage: Optional[float] = None)
minBuyingPowerPct: Optional[float] =
None
minMarginBufferPct: Optional[float] =
None
maxLeverage: Optional[float] =
None
def
validate(self) -> None:
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
GuardDecision:
GuardDecision( passed: bool, guardType: StrategyGuardType, scope: Optional[GuardScope] = None, reasonCode: Optional[str] = None, message: Optional[str] = None, targetKey: Optional[str] = None)
reasonCode: Optional[str] =
None
message: Optional[str] =
None
targetKey: Optional[str] =
None
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Dict[str, Any]) -> GuardDecision:
@dataclass
class
GuardPolicy:
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Optional[Dict[str, Any]]) -> Optional[GuardPolicy]:
@dataclass
class
OpenPositionSpec:
allowAddToExisting: Optional[bool] =
None
def
validate(self) -> None:
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
ClosePositionSpec:
ClosePositionSpec( closePercent: Optional[float] = None, orderSpec: Optional[OrderSpec] = None)
closePercent: Optional[float] =
None
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Optional[Dict[str, Any]]) -> ClosePositionSpec:
class
SecuritySelectionSource(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
@dataclass
class
SecuritySelection:
customSymbols: Optional[Set[str]] =
None
def
validate(self) -> None:
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Optional[Dict[str, Any]]) -> SecuritySelection:
@dataclass
class
SecurityScoreExpression:
def
validate(self) -> None:
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
RankedSecuritySelection:
def
validate(self) -> None:
def
toDict(self) -> Dict[str, Any]:
class
AllocationMode(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
@dataclass
class
AllocationModel:
percentOfPortfolio: Optional[float] =
None
fixedNotional: Optional[float] =
None
fixedQuantity: Optional[float] =
None
def
validate(self) -> None:
def
toDict(self) -> Dict[str, Any]:
class
PositionSizeMode(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
@dataclass
class
PositionSizeSpec:
value: Optional[float] =
None
def
validate(self, label: str = 'PositionSizeSpec') -> None:
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
PositionExposureLimit:
PositionExposureLimit( maxNotional: Optional[float] = None, maxPositionPct: Optional[float] = None, maxQuantity: Optional[float] = None)
maxNotional: Optional[float] =
None
maxPositionPct: Optional[float] =
None
maxQuantity: Optional[float] =
None
def
validate(self, label: str = 'PositionExposureLimit') -> None:
def
toDict(self) -> Dict[str, Any]:
class
MoveUnit(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
class
MoveBasis(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
class
ScalingSizeMode(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
@dataclass
class
MoveCondition:
threshold: Optional[float] =
None
levels: Optional[List[float]] =
None
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Dict[str, Any]) -> MoveCondition:
@dataclass
class
ScaleAddPlan:
ScaleAddPlan( maxSteps: Optional[int] = None, minIntervalBetweenAdds: Optional[investfly.models.strategy.StrategyDuration] = None, scalingSizeMode: Optional[ScalingSizeMode] = None, firstStepPctOfBase: Optional[float] = None, quantity: Optional[float] = None, quantities: Optional[List[float]] = None, stepSizeMultiplier: Optional[float] = None)
maxSteps: Optional[int] =
None
firstStepPctOfBase: Optional[float] =
None
quantity: Optional[float] =
None
quantities: Optional[List[float]] =
None
stepSizeMultiplier: Optional[float] =
None
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Dict[str, Any]) -> ScaleAddPlan:
@dataclass
class
RepeatSignalAddRule:
RepeatSignalAddRule( onlyIfWinning: Optional[bool] = False, addPlan: Optional[ScaleAddPlan] = None)
onlyIfWinning: Optional[bool] =
False
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
WinnerScaleRule:
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
LoserScaleLimits:
LoserScaleLimits( maxLossPctBeforeAdd: Optional[float] = None, maxTotalAddNotional: Optional[float] = None)
maxLossPctBeforeAdd: Optional[float] =
None
maxTotalAddNotional: Optional[float] =
None
def
validate(self) -> None:
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
LoserScaleRule:
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Dict[str, Any]) -> LoserScaleRule:
@dataclass
class
ScalingPlan:
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Dict[str, Any]) -> ScalingPlan:
@dataclass
class
PositionManagementRules:
PositionManagementRules( positionExits: Optional[ExitRules] = None, positionScaling: Optional[ScalingPlan] = None, optionGroupExits: Optional[investfly.models.strategy.OptionStrategyRules.OptionExitRules] = None)
optionGroupExits: Optional[investfly.models.strategy.OptionStrategyRules.OptionExitRules] =
None
def
hasScheduledScaling(self) -> bool:
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
OptionGroupExposureLimits:
OptionGroupExposureLimits( maxGroupRiskPct: Optional[float] = None, maxGroupNotional: Optional[float] = None, maxContracts: Optional[int] = None)
maxGroupRiskPct: Optional[float] =
None
maxGroupNotional: Optional[float] =
None
maxContracts: Optional[int] =
None
def
validate(self) -> None:
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
PortfolioLimits:
PortfolioLimits( maxOpenPositions: Optional[int] = None, maxPositionExposure: Optional[PositionExposureLimit] = None, maxTotalMarginPct: Optional[float] = None, maxOpenPositionsPerSymbol: Optional[int] = None, optionGroupExposure: Optional[OptionGroupExposureLimits] = None)
maxOpenPositions: Optional[int] =
None
maxTotalMarginPct: Optional[float] =
None
maxOpenPositionsPerSymbol: Optional[int] =
None
def
validate(self) -> None:
def
toDict(self) -> Dict[str, Any]:
class
OrderDuration(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
class
StrategyOrderType(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
class
LimitPriceOffsetUnit(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
@dataclass
class
LimitPriceOffset:
value: Optional[float] =
None
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
OrderSpec:
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Dict[str, Any]) -> OrderSpec:
class
FutureRollMode(builtins.str, enum.Enum):
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.
@dataclass
class
FutureLifecycleRules:
daysBeforeExpiry: Optional[int] =
None
def
validate(self) -> None:
def
toDict(self) -> Dict[str, Any]:
@dataclass
class
AssetLifecycleRules:
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Optional[Dict[str, Any]]) -> Optional[AssetLifecycleRules]:
@dataclass
class
StrategyConfig:
def
hasEnabledLogic(self) -> bool:
def
firstEntryRule(self) -> Optional[EntryRule]:
def
firstSignalExit(self) -> Optional[ExitRule]:
def
validate(self) -> None:
def
toDict(self) -> Dict[str, Any]:
@staticmethod
def
fromDict( jsonDict: Dict[str, Any]) -> StrategyConfig: