StrategyFactory#

API documentation for tradeexecutor.strategy.factory.StrategyFactory Python class in Trading Strategy framework.

class StrategyFactory[source]#

Bases: Protocol

A callable that creates a new strategy when loaded from an external script.

For the current implementation see make_factory_from_strategy_mod().

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

__call__(*, execution_model, sync_model, pricing_model_factory, valuation_model_factory, client, timed_task_context_manager, approval_model, routing_model=None, max_price_impact=None, **kwargs)[source]#
Parameters:
Returns:

Return type:

StrategyExecutionDescription

__init__(*args, **kwargs)#