Skip to main content

Wickra Impact — the backtester that knows you would have moved the market

CI codecov PyPI License: MIT OR Apache-2.0

Wickra Impact — Python


Part of the Wickra ecosystem: — for Python. pip install wickra-impact — prebuilt wheels for Linux, macOS and Windows, nothing to compile.

Python bindings for the Wickra Impact market-impact backtester, built with PyO3 and maturin. An Impact handle is driven over a JSON boundary, so the same request yields the byte-identical report as every other Wickra Impact binding.

Install

pip install wickra-impact

Pre-built wheels ship for Linux, macOS and Windows — there is nothing to compile and no C library to track down.

Building from this repository (contributors)

maturin develop --release

Quick start

import json
from wickra_impact import Impact

spec = {
    "strategy": { "spec_version": 1, "symbol": "IMPACT", "timeframe": "1h",
        "indicators": {},
        "entry": {"ge": [{"price": "close"}, 0]},
        "exit": {"in_position": True},
        "sizing": {"type": "fixed_qty", "qty": 10.0},
        "execution": {"order_type": "market", "fill_timing": "next_open"} },
    "book_model": {"kind": "orderbook_walk"},
    "participation_cap": 1.0, "latency_ms": 0,
}

impact = Impact(json.dumps(spec))
report = json.loads(impact.command(json.dumps({"cmd": "run", "data": data})))
print(report["impact_stats"]["avg_slippage_bps"])  # the impact a naive backtest hides

API

  • Impact(spec_json) — construct a backtest handle from an ImpactSpec JSON ("{}" defers configuration to a later set_spec). Raises ValueError on an invalid spec.
  • Impact.command(cmd_json) — apply a command JSON and return the response JSON. Commands: set_spec, run, version. Raises RuntimeError on a command failure.
  • Impact.version() / wickra_impact.__version__ — the library version.

Determinism

The fill engine lives only in the Rust core; this binding forwards the command string verbatim, so the report is byte-identical to the CLI and to every other language binding.

Benchmark

Every binding forwards to the same data-driven Rust core, so what this one adds is the call overhead of PyO3, not a different result. The core's throughput is measured by the repository's benchmark suite and the nightly bench.yml run; the numbers, the machine and how to reproduce them are in the repository BENCHMARKS.md.

Documentation

The full guide, the spec reference and the API documentation live in the main repository and the documentation site:

Wickra Impact ships native bindings for Python, Node.js, WASM and Rust, plus a C ABI hub that any C-capable language (C, C++, C#, Go, Java, R) links against — all forwarding to the same data-driven, unsafe-forbidden Rust core.

Security

Found a security issue? Please don't open a public issue. Report it privately via the repository's Security tab ("Report a vulnerability") or email support@wickra.org with a subject line starting [wickra security]. Full policy: https://github.com/wickra-lib/wickra-impact/blob/main/SECURITY.md.

Disclaimer

Wickra Impact is a research and backtesting tool. It measures the slippage an order would have paid against recorded market data; it does not place orders, and a measurement over history is not a prediction about the future. Nothing here is financial advice. Trading carries risk, including the loss of the capital committed. Use it at your own risk.

License

Licensed under either of Apache-2.0 or MIT at your option.

Metadata

Release files for wickra-impact 0.2.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 wickra-impact 0.2.3
File Size Uploaded Provenance Actions
wickra_impact-0.2.3.tar.gz 62.3 kB Without provenance Details for wickra_impact-0.2.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for wickra-impact 0.2.3
File Actions
wickra_impact-0.2.3-cp39-abi3-win_arm64.whl CPython 3.9 abi3 Windows ARM64 Details for wickra_impact-0.2.3-cp39-abi3-win_arm64.whl
wickra_impact-0.2.3-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for wickra_impact-0.2.3-cp39-abi3-win_amd64.whl
wickra_impact-0.2.3-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details for wickra_impact-0.2.3-cp39-abi3-musllinux_1_2_x86_64.whl
wickra_impact-0.2.3-cp39-abi3-musllinux_1_2_aarch64.whl CPython 3.9 abi3 Linux musl 1.2+ ARM64 Details for wickra_impact-0.2.3-cp39-abi3-musllinux_1_2_aarch64.whl
wickra_impact-0.2.3-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for wickra_impact-0.2.3-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
wickra_impact-0.2.3-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for wickra_impact-0.2.3-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
wickra_impact-0.2.3-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for wickra_impact-0.2.3-cp39-abi3-macosx_11_0_arm64.whl
wickra_impact-0.2.3-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for wickra_impact-0.2.3-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 6.0 MB

Release files / wickra_impact-0.2.3.tar.gz

Download URL wickra_impact-0.2.3.tar.gz
Size 62.3 kB
Tags Source
SHA-256 checksum
How to use checksums
14a9058144c6a238dd936fd8dfd4a47dd546e9d8049b9c1e539d71bd3bb5e42b
BLAKE2b-256 checksum
How to use checksums
28e2fc38b8cb4aaeeb2a511d28e58c185835af323e0de22f88909c7239751fec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / wickra_impact-0.2.3-cp39-abi3-win_arm64.whl

Download URL wickra_impact-0.2.3-cp39-abi3-win_arm64.whl
Size 571.5 kB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
e91e4135966986840b485046d4aabf08cd760d71904730ba2404704a03c7c34a
BLAKE2b-256 checksum
How to use checksums
b0ea2be06c5e0593c9b993b208aa93e3523dc3630e7bef69998c834384631f58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / wickra_impact-0.2.3-cp39-abi3-win_amd64.whl

Download URL wickra_impact-0.2.3-cp39-abi3-win_amd64.whl
Size 649.2 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
7089caef33943c89b3681ec2788fd23e1447c0b912e9164894b655ab37fad6bb
BLAKE2b-256 checksum
How to use checksums
9dad19baac5bc9ccf2499273e2a8576a89ed8850464589837143c127fbab0997
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / wickra_impact-0.2.3-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL wickra_impact-0.2.3-cp39-abi3-musllinux_1_2_x86_64.whl
Size 982.8 kB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
358026d32c226e168ddb57617c7dc70c0379a78f134f8d8fe36f0e3ca5d5c83e
BLAKE2b-256 checksum
How to use checksums
352e1e8ae80478a5942848568128b65ef977825da9684d7968aa407f1d3be141
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / wickra_impact-0.2.3-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL wickra_impact-0.2.3-cp39-abi3-musllinux_1_2_aarch64.whl
Size 870.6 kB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
22ae01cee4c3b1cb35521d9fc60958e1b27fd35eabad2e290c65db880a13abf3
BLAKE2b-256 checksum
How to use checksums
96bb0ee44e09f1524e260a3b75af6236b3e2a0156bf4616a917fc949c4219b95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / wickra_impact-0.2.3-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL wickra_impact-0.2.3-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 766.7 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
c3e12f1a2bd4220f9a2bce28be27f9b8e046623721d50aaf2731414e5f687fa8
BLAKE2b-256 checksum
How to use checksums
77d6c4e98892c71a46a077277d76e05d225f94dedc2d06e82e3f752e12ef5ae1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / wickra_impact-0.2.3-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL wickra_impact-0.2.3-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 693.5 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
1bdf8e37579ed56084d3c11f80b96438200585798cdd0d12a0e5b08eba70a498
BLAKE2b-256 checksum
How to use checksums
4fa21806df961440d190238a332f5fd315760f93db50c9a9977933062125fbe1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / wickra_impact-0.2.3-cp39-abi3-macosx_11_0_arm64.whl

Download URL wickra_impact-0.2.3-cp39-abi3-macosx_11_0_arm64.whl
Size 631.8 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4ebd8dfa77f04aeeb7b603c6c10a6c939c396d5e7af4d3c6afc748ef9a0ef948
BLAKE2b-256 checksum
How to use checksums
3dbec1d9ca87c9458a3b538f09a01d08e9dbab0ecd9708f614cb26892999c43b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / wickra_impact-0.2.3-cp39-abi3-macosx_10_12_x86_64.whl

Download URL wickra_impact-0.2.3-cp39-abi3-macosx_10_12_x86_64.whl
Size 732.0 kB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
d4023eed795df59fcfe7430bf788d8df198c9afaed491515cbe6985cf76faa5c
BLAKE2b-256 checksum
How to use checksums
91d4fa613e09a338243a47fba474634feb33b1eccf648ff73d70523565604740
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for wickra-impact 0.2.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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