Repository navigation
Ziplime 2.12.0
Changes since 2.11.0, including the intervening 2.11.x releases.
New features
- CPU and GPU parameter sweeps. Run parameter grids from ordinary strategy files, rank combinations, and verify the best result against
run_simulation. Includes Apple, NVIDIA, AMD, and Intel/OpenCL backend options, plusziplime sweep init,check,run, anddoctor. - Synthetic-data testing. Evaluate parameter combinations against generated price paths, including bootstrap, maximum-entropy, GBM, Student-t, and GARCH models, with reports comparing synthetic and historical results.
- Multi-currency reporting and accounting. Generate performance and risk reports in multiple currencies. Optional investment accounting adds native currency cash balances, historical FIFO costs, realized and unrealized P&L, income, fees, cash FX P&L, and accounting-history export and restoration.
- Currency funding and valuation. Adds order and position valuation APIs, explicit currency exchange and account funding, and automatic FX funding in simulations. Currency trades have separate commission and slippage models.
- Improved futures support. Futures chains are identified by root and exchange, supporting identical roots across venues.
context.symbol()can resolve futures contracts, while continuous futures can be ordered directly and rolled automatically. - Private hosted datasets. Read user-owned Parquet datasets through
dataset://<name>orcontext.user_dataset(...), with point-in-time reads, user isolation, caching, and per-run address context. - Yahoo Finance currency data. Adds FX listing discovery and downloads, preserves stock quote currencies, and includes currency-reporting examples.
- Developer improvements. Expands type annotations, resolves circular imports, adds filter type stubs, and extends documentation and regression coverage.
Fixes
Several fixes can affect backtest results:
- Asset-based portfolio position lookups now find held positions correctly.
- Slippage volume limits now account for fills per instrument.
- End-of-day cancellation no longer fails while iterating over open orders.
- Intraday reads before market opening handle timezones correctly, and daily history aggregates OHLCV correctly for each instrument.
StopOrderplacement andFixedSlippageexecution no longer raise the reportedTypeErrors.- Reused futures tickers are distinguished by expiry; continuous-future IDs include the exchange.
- CBOT/CBOE Futures calendar mappings and gRPC option-bar lookup by security ID are corrected.
- Algorithm and configuration files are read as UTF-8.
Upgrading from 2.11.0
- Apply the asset database migrations; older versions cannot open the migrated futures schema.
- Qualify ambiguous futures roots with an exchange, such as
NG@XNYM.get_futures_roots()now uses(root_symbol, mic)keys. - Continuous futures now default to calendar rolling seven days before auto-close; configure the roll rule explicitly if needed.
- Omitted bond quote/payment currencies and futures margin currencies now default to EUR, previously RUB. Existing stored currencies are retained.
- Polars is pinned to 1.44.2;