prune_trade#
API documentation for tradeexecutor.state.prune.prune_trade Python function.
- prune_trade(trade)[source]#
Remove unnecessary data from a TradeExecution.
Prunes blockchain transaction data from a trade to reduce memory usage and storage size. This removes detailed transaction information that is not needed for historical analysis of closed trades.
- Parameters:
trade (TradeExecution) – TradeExecution to prune
- Returns:
TradePruningStats with statistics about what was pruned
- Return type: