post_process_trade_decision#
API documentation for tradeexecutor.strategy.runner.post_process_trade_decision Python function.
- post_process_trade_decision(state, trades)[source]#
Set any extra flags on trades needed.
Mainly to deal with the fact that if trades close a final position on lending
TODO: Currently we do not pass enough information in
TradingPairIdentifier
so here we take a hack shortcut to set close_protocol_all. W- Parameters:
state (State) –
trades (List[TradeExecution]) –