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.3

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.3
File Size Uploaded Provenance Actions
bijective_strategy-0.1.3.tar.gz 10.1 kB With provenance Details for bijective_strategy-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 16.3 kB

Release files / bijective_strategy-0.1.3.tar.gz

Download URL bijective_strategy-0.1.3.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b412589c4bd103a4acdc969e8413b539a921066fbea34d21bb6be86d7da7f9f4
BLAKE2b-256 checksum
How to use checksums
343b1b5908a5cbbfb365d83599aa638daef2def167b8e5bfaf2a462d4f64470d
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.3-py3-none-any.whl

Download URL bijective_strategy-0.1.3-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82989304be1bde4c87914c0b372b16c35270354bc9d01a8a19e076893814d671
BLAKE2b-256 checksum
How to use checksums
04470a07f287b11067cceb49fd428e0ca462a11c96a939c6e2a09313e1f0d1e2
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.3

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.3.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.3 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