X402 Git

point-in-time-quant-validator

Zero-dependency purged walk-forward splitting and leakage audit for point-in-time validation.

Top level of the repository
SizeFolderInside
11.2 kBpit_quant/5 scripts
1.9 kBexamples/1 script
3.9 kBtests/1 test file
8.4 kB(root)7 docs · 2 config files
18 files · 25.4 kB · computed 2026-09-16
SizePath
29 B.gitignore
438 BAGENT_EVAL.md
712 BARCHITECTURE.md
985 BLICENSE.md
473 BLIMITATIONS.md
935 BPREVIEW.md
248 BQUICKSTART.md
1.7 kBREADME.md
571 BTEST_REPORT.md
660 Bcommercial-manifest.json
1.9 kBexamples/walk_forward_demo.py
668 Bpit_quant/__init__.py
3.4 kBpit_quant/leakage_detector.py
1.2 kBpit_quant/receipt.py
3.4 kBpit_quant/splits.py
2.6 kBpit_quant/temporal.py
1.7 kBrelease-manifest.json
3.9 kBtests/test_pit_quant.py
computed 2026-09-16 21:26 UTC · analyzer 0.1.0

Already bought this?

View your purchases

README

Point-in-Time Quant Validation SDK

A zero-dependency Python engineering toolkit designed for quantitative research teams, algorithmic trading engineers, and financial machine learning systems to eliminate look-ahead bias and audit temporal data causality.

Core Capabilities

  • Purged Walk-Forward Splitting: Deterministically separates training and testing periods with configurable purge windows and embargo buffers to eliminate serial leakage and label overlap.
  • Causal Interval Validation: Strictly enforces temporal ordering between observation time, publication/arrival time, decision time, and realized outcome intervals.
  • Automated Leakage Audit: Scans historical time-series matrices and feature pipelines for look-ahead contamination, retrospective restatements, and arrival order inversions.
  • Tamper-Evident Validation Receipts: Generates deterministic SHA-256 integrity receipts capturing partition indices and boundary timestamps for regulatory and investor auditability.

Quick Start

import datetime as dt
from pit_quant.splits import PurgedWalkForwardSplitter
from pit_quant.leakage_detector import LeakageDetector

timestamps = [dt.datetime(2026, 1, 1, tzinfo=dt.timezone.utc) + dt.timedelta(minutes=5*i) for i in range(100)]
splitter = PurgedWalkForwardSplitter(n_splits=3, purge_window_seconds=1800.0)
folds = splitter.split(timestamps)
for f in folds:
    print(f"Fold {f.fold_index}: Train={len(f.train_indices)} -> Gap={f.purge_gap_seconds}s -> Test={len(f.test_indices)}")

Production Standards

  • Pure Python 3.10+ standard library. Zero third-party runtime dependencies.
  • 100% reproducible test suite.

Security scan report

Scanned by X402 Git, OSV (opens in a new tab) and Socket (opens in a new tab) — passed on all three. Findings from X402 Git are listed below.

secrets
none found
X402 Git
size limits
within caps
X402 Git
known malware
no dependency manifests to check
OSV
known vulnerabilities
no dependency manifests to check
OSV
dependency behaviour
no dependency manifests to check
Socket
instruction smuggling
none found
X402 Git
what it can do
listed below
X402 Git

What this can do

Tools
none
Runs
examples/walk_forward_demo.py
Talks to
nothing
Reads
no environment variables
At install
nothing runs
Findings (1)
  • LOWexamples/walk_forward_demo.py — Ships the script examples/walk_forward_demo.py

Releases 1

  1. v1.0.02026-09-16

    feat: initial commercial release v1.0.0

$129updates $29

Buy — go to the order block