Repository navigation
PowerBridge 0.6.0
Originally released on 2026-10-21. This release page was re-created, with its original assets, when the repository was recreated on 2026-10-22, so its timestamp shows that date. See the CHANGELOG.
Added
--max-entries-per-direction Nforpl_runandpl_oracle
(max_entries_per_direction=Ninrun_el/run_oracle): a Buy or
SellShort in the open position's direction is refused while N entries are
open; reversals still fill. N=1 follows MultiCharts' documented default
(not verified against a capture). The default stays unlimited, so existing
digests do not change. The native kernel supports it; an older kernel build
falls back to Python with a note.
Changed
transpile(src)now returns the runnable dialect by default, the same
codepl_transpilewrites andpl_runexecutes. Before, the library default
was the clean mirror dialect, which keeps no cross-bar_state: EL Variables
reset every bar, so a stateful strategy run from it silently produced zero or
wrong orders. The mirror dialect (input forel_emit) now needs
transpile(src, dialect="mirror");persist=Falsestill works. The bar loop
refuses mirror-dialect strategies with a one-line error naming the fix.
Thepl_transpileCLI is unchanged (--no-persiststill emits the mirror).- Tests: the public tier is also a set of pytest tests marked
public_tier, so
pytestruns everything andpytest -m public_tierruns exactly the tier.
python tests/run_public_tier.pystill works (stdlib only) and shares the
same member list. run_el,load_bars_csvandget_configcan be imported from
pl_transpilerdirectly; the old module paths keep working.- The runtime finds its loud stubs from a generated static list
(tools/gen_loud_stubs.py, checked by a test) instead of parsing its own
source at import time, so it works from .pyc-only or zipped installs. The
installed stubs are unchanged. - README:
tools/build_accel.shneeds an editable install (pip install -e .)
for the console commands to see the built module. - The public API (
transpile,run_el,run_oracle,load_bars_csv,
load_bars,get_config,load_config_fileand thecatalogaccessors)
has type annotations, and the package shipspy.typed. CI runs mypy on
those modules. Runtime behaviour and digests do not change. - CI: every action in
ci.ymlandaccel.ymlis pinned to a commit SHA, the
workflows run with a read-only token, Dependabot watches actions, cargo and
pip, Python 3.14 joins the test matrix, and one pytest job uploads a
coverage report. - ruff also checks pycodestyle
E4/E7andWrules. - Dependabot runs monthly with one grouped PR per ecosystem (at most two
open) and skips major versions, which are upgraded deliberately.
Fixes
- A strategy that declares arrays but no Variables or Inputs no longer fails
withNameError: _statein the trace and runnable dialects.
Re-published on 2026-10-22, when the repository was recreated. The tag, notes and files are the originals.