prune#

API documentation for tradeexecutor.cli.commands.prune Python module in Trading Strategy.

Module description#

CLI command to prune balance updates from closed positions.

Example:

docker compose run base-ath prune-state

Functions#

prune_state([id, strategy_file, state_file, ...])

Prune unnecessary data from state to reduce state file size.