Skip to main content

Module registration

Module registration 

Source
Expand description

Registration of Python actors, strategies, controllers, and execution algorithms.

Every Python component reaches the trader through one of the add_python_* methods here, so the sequence each component needs (component clock, register, global registries, lifecycle tracking) is expressed once. Registering in the global registries retains the component’s Python wrapper, so a caller of that path cannot forget the wrapper. A [PyExecutionAlgorithm] registers through the native path instead, so Trader::add_py_execution_algorithm_instance retains its wrapper directly and is the only place that has to.