StrategyFactory#

tradeexecutor.strategy.factory.StrategyFactory class.

class StrategyFactory[source]#

Bases: Protocol

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

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

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

Return type

StrategyExecutionDescription

__init__(*args, **kwargs)#