StrategyStream

StrategyStream#

class sigtech.framework.strategies.runner.strategy_stream.StrategyStream

Decorator to run a strategy live. Apply decorator to a function that returns a strategy.

Example usage:

@StrategyStream(outputs={HistoryOutput: 1, SerializationOutput: 5},
                period=dtm.timedelta(hours=1),
                output_callback=my_callback)
    def example_strategy():
        return MyStrategy(
            currency='USD',
            start_date=dtm.date(2010, 1, 4),
        )
start()

start the thread