RepairResult#

tradeexecutor.state.repair.RepairResult Python class in Trading Strategy framework.

class RepairResult[source]#

Bases: object

The report of the repair results.

Note that repair might not have done anything - every list is empty.

__init__(frozen_positions, unfrozen_positions, trades_needing_repair, new_trades)#
Parameters:
Return type:

None

Methods

__init__(frozen_positions, ...)

Attributes

frozen_positions

How many frozen positions we encountered

unfrozen_positions

What positions we managed to unfreeze

trades_needing_repair

How many individual trades we repaired

new_trades

New trades we made to fix the accounting

frozen_positions: List[TradingPosition]#

How many frozen positions we encountered

unfrozen_positions: List[TradingPosition]#

What positions we managed to unfreeze

trades_needing_repair: List[TradeExecution]#

How many individual trades we repaired

new_trades: List[TradeExecution]#

New trades we made to fix the accounting

__init__(frozen_positions, unfrozen_positions, trades_needing_repair, new_trades)#
Parameters:
Return type:

None