PyneCore v6.11.0 released — a per-line profiler for backtests with pyne run --profile,…
Features
pyne run ... --profileprints where a backtest spends its time: slowest lines with time, share, execution count and average, plus a category split (script, libraries, engine, output, data, security).--profile-top Nsets the line countrequest.securitycontexts are profiled too, each with its data, timeframe, bars and script timeScriptRunner(profile_path=...)writes the same JSON profile programmatically (Python 3.13+)- Methods declared in
@udtclass bodies can now hold state (ta.*,Series,Persistent), per call site; edge profile 2026.10.2 admits them
Fixes
- Aggregating to weekly and monthly timeframes works; monthly targets were always rejected before
time("D", timeframe_bars_back=N)no longer raisesIndexErrorwithout a session template- Importing
pynecore.core.scriptbeforepynecore.libno longer fails - Generated code runs at the source line it serves, so debugger stepping, tracebacks and line timings point to the right line
- Scripts starting with a
from __future__import compile withrequest.securityand as strategies
Full release notes: https://github.com/PyneSys/pynecore/releases/tag/v6.11.0