Install
Ziplime needs Python 3.12+.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
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.result.perf is a pandas DataFrame with one row per session, including everything recorded with context.record(...).