retry_trades#

API documentation for tradeexecutor.state.retry.retry_trades Python function.

retry_trades(*, state, execution_model, routing_model, routing_state, attempt_repair=True, interactive=True)[source]#

Retry trade.

  • Find frozen positions and trades in them

  • Rebroadcast failed trades

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

  • execution_model (ExecutionModel) –

  • routing_model (RoutingModel) –

  • routing_state (RoutingState) –

Raises:

RepairAborted – User chose no

Return type:

RepairResult