loop#

API documentation for tradeexecutor.cli.loop Python module in Trading Strategy.

Module description#

Trade executor main loop.

TODO: This execution loop needs to be re-architect to two separate subclasses,

  • One for backtesting

  • One for live execution

Classes#

ExecutionLoop

Live or backtesting trade execution loop.

ExecutionTestHook

A test helper to allow to hook into backtest execution to inject events.