mktlib
Financial market toolkit built entirely on Polars.
tl;dr
- Fast enough for real work — vectorized Polars engine grid-searches thousands of parameter combos on minute-bar data without reaching for Numba or Cython
- Lightweight — pure Polars throughout, including synthetic data generation via Rust-native plugins. No pandas, no NumPy, no heavy ML stack
- Well tested — cross-validated exchange calendars, full backtest parity tests across engines, and pandera schema validation on every DataFrame-returning function to guarantee no silent column/dtype regressions
- Swiss-army knife — scheduling, rates, metrics, backtesting, reporting, and data generation in one package. Great for learning, prototyping, or production
- Apache 2.0 — use it anywhere, fork it, vendor it, no strings attached
Disclaimer: Backtesting results and any computed market returns are for educational and research purposes only. They do not constitute financial advice, and past performance does not indicate future results.
For full documentation, see polars-mktlib.readthedocs.io.
Metadata
Release files for mktlib 0.13.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mktlib-0.13.1.tar.gz | 335.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mktlib-0.13.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 723.1 kB
Release files / mktlib-0.13.1.tar.gz
| Download URL | mktlib-0.13.1.tar.gz |
|---|---|
| Size | 335.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
408ea45629653e8fffc67b900f617bf1e315f1eb4ccb250fe05b071f8f1b49d3
|
|
BLAKE2b-256 checksum How to use checksums |
9c719304e0105b390b74fa4b223e1a1bc32afcde15ea93cb35cdc10e2dd69bca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Jul 29, 2026.
Transparency logRelease files / mktlib-0.13.1-py3-none-any.whl
| Download URL | mktlib-0.13.1-py3-none-any.whl |
|---|---|
| Size | 387.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
16cbc9a91b60a522886f72d4267bf8fed0de781609faa350255ccf946dc89ac6
|
|
BLAKE2b-256 checksum How to use checksums |
13a253232e51220d8ce8be4303541b28b099eff7a88f0a71e67e1d46c48f169b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Jul 29, 2026.
Transparency log