PersistedStrategy

PersistedStrategy#

class sigtech.framework.services.strategy_service.service.PersistedStrategy

Storage class for a strategy together with some of its meta data for the purpose of persistence into a cache.

meta
strategy
classmethod create(strategy: Union[Strategy, StrategyInstrument]) PersistedStrategy

Factory method for a PersistedStrategy, by extracting environment’s information into meta data

Parameters:

strategy – Strategy object to be persisted

Returns:

instance of PersistedStrategy