API documentation for 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

  • 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) –


RepairAborted – User chose no

Return type: