Skip to main content

Install

Ziplime needs Python 3.12+.
The base install is the engine only. Optional features are pip extras:

Quick start

The order is always the same: instruments first, then bars, then a run.

Command line

Errors go to stderr with a hint on what to do, and the exit code reflects the result. Run any command with -h for its options.

ziplime run defaults

The CLI charges no commission unless you pass --commission-per-share. Set it for any run whose numbers you intend to trust. See Costs & Commissions.

Python API

ziplime.core.run_simulation.run_simulation is what the CLI calls. Use it when you need custom data sources, commission models or a config file.
run_simulation defaults to same_bar_execution=True for backward compatibility, unlike the CLI and the MCP server. Pass same_bar_execution=False to get next-bar fills.
Useful parameters: result.perf is a pandas DataFrame with one row per session, including everything recorded with context.record(...).