repair_trades#
API documentation for tradeexecutor.state.repair.repair_trades Python function.
- repair_trades(state, attempt_repair=True, interactive=True)[source]#
- Repair trade. - Find frozen positions and trades in them 
- Mark trades invalidated 
- Make the necessary counter trades to fix the total balances 
- Does not actually broadcast any transactions - only fixes the internal accounting 
 - Parameters:
- attempt_repair – - If not set, only list broken trades and frozen positions. - Do not attempt to repair them. 
- interactive – - Command line interactive user experience. - Allows press n for abort. 
- state (State) – 
 
- Raises:
- RepairAborted – User chose no 
- Return type: