repair_trade#

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