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:
frozen_positions (List[TradingPosition]) –
unfrozen_positions (List[TradingPosition]) –
trades_needing_repair (List[TradeExecution]) –
new_trades (List[TradeExecution]) –
- Return type:
None
Methods
__init__
(frozen_positions, ...)Attributes
How many frozen positions we encountered
What positions we managed to unfreeze
How many individual trades we repaired
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:
frozen_positions (List[TradingPosition]) –
unfrozen_positions (List[TradingPosition]) –
trades_needing_repair (List[TradeExecution]) –
new_trades (List[TradeExecution]) –
- Return type:
None