backtest_lib.engine.plan.TradeOrder#
- class backtest_lib.engine.plan.TradeOrder(direction: TradeDirection, qty: int, security: str, price: float)#
Bases:
objectOrder describing a trade for a single security.
Trade orders are produced by plan generators and executed by a
PlanExecutor.directionandqtytogether define the signed position change, whilepriceis the execution price used to compute cash impact.