repair_trade#

API documentation for tradeexecutor.state.repair.repair_trade Python function.

repair_trade(portfolio, t)[source]#

Repair a trade.

  • Make a counter trade for bookkeeping

  • Set the original trade to repaired state (instead of failed state)

Parameters:
Return type:

TradeExecution