Skip to main content

bijective-strategy

The strategy protocol for Python strategies. Standard library only.

from bijective_strategy import Book, EndOfWindow, answered, events, propose

for event in events():
    if isinstance(event, Book):
        if int(event.ask_price) - int(event.bid_price) < 200:
            propose(desk="alpha", instrument=event.instrument, side="buy",
                    quantity_scaled="1", price_scaled=event.bid_price,
                    client_id="c1", decided_at_ns="1")
        answered()
    elif isinstance(event, EndOfWindow):
        break

See Strategies.

Reference strategies

examples/reference/ holds strategies that exercise the platform end to end: the order path, the risk gate and the record. They are not recommendations.

File Rule
zscore_reversion.py Short above two standard deviations of the minute mid, long below, flat within half of one
momentum.py Long one unit when the 15-minute move clears one standard deviation, sold after 15 minutes

Each keeps its decision core free of input and output so it is tested without the platform, and each runs as a set over one window: bijective-backtest examples/reference/.

Metadata

Release files for bijective-strategy 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bijective-strategy 0.1.2
File Size Uploaded Provenance Actions
bijective_strategy-0.1.2.tar.gz 10.1 kB With provenance Details for bijective_strategy-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bijective-strategy 0.1.2
File Interpreter ABI Platform Actions
bijective_strategy-0.1.2-py3-none-any.whl Python 3 none any Details for bijective_strategy-0.1.2-py3-none-any.whl

Total release size: 16.2 kB

Release files / bijective_strategy-0.1.2.tar.gz

Download URL bijective_strategy-0.1.2.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7c38f48e7455bbc7a4d501d9aae5e1383b09fedaafbf1bb144f710f566d43aaf
BLAKE2b-256 checksum
How to use checksums
4e2ea22b670cba4cc9747bf6428d0a1685075694acf82e4dab9afaf74dcc6c66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / bijective_strategy-0.1.2-py3-none-any.whl

Download URL bijective_strategy-0.1.2-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c09269b8c89527ca5af4c04941b49f0725cf50364a409b63a6d4251a1aa54848
BLAKE2b-256 checksum
How to use checksums
1a510da20a465df4b15fcc54512953499f1e9ac779e9d049695c7752d0a7df6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for bijective-strategy 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bijective_strategy-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page