Agenthon Quant Lab
A local Python toolkit for asking whether a financial idea survives trading costs and comparison with a simple alternative. It grew out of Team 166’s Agenthon 2026 Track 1 work on independently checking generated financial programs. The package includes three reproducible BTC studies, European option pricing, spot-portfolio examples and a searchable research archive.
Install and reproduce
Use an activated Python 3.12+ virtual environment and a writable working directory. The CLI runs independently of Git, Codex and API credentials. Each study uses bundled inputs and writes to a fresh folder.
python -m pip install agenthon-quant-lab==0.4.0
quant-lab doctor
quant-lab btc-study --out runs/momentum
quant-lab btc-cost-break-even --out runs/costs
quant-lab btc-weekly-cadence --out runs/weekly
Open runs/momentum/report.md and its offline dashboard.html to explore the original daily decisions. The follow-ups write README.md and a figure in each output folder. Their verification.json and run.json record accounting checks and artifact hashes. Output guide · Release qualification
Three questions on the same BTC history
The evaluation covers five previously examined calendar years, 2020–2024, on Bitstamp BTC/USD spot. At base costs every fill incurs a 50 bp fee and 10 bp adverse slippage. Prices are delayed minute-candle proxies. There are zero prospective observations.
- Did daily momentum beat passive BTC/cash? A $10,000 daily momentum account finished at $39,414 after costs. The passive account finished at $70,715. Adding the fixed FFT filter reduced cumulative net return from +294.14% to +41.83%. The predictive-return and momentum-minus-passive Sharpe intervals both include zero. Report · Protocol
- Where did costs reverse the comparison? Increasing both fee and slippage along the declared cost path erased daily momentum’s net-Sharpe advantage over passive near 0.3071× base costs. Their ending wealth crossed near 0.4781×. These descriptive thresholds are conditional on that sample and cost ratio. Report and figure · Protocol
- Did weekly decisions help? Monday execution using the completed Sunday signal cut fills from 188 to 80. Weekly finished at $48,686, above daily and below passive. Weekly maximum drawdown reached 73.34%, compared with daily’s 71.82%. Both weekly Sharpe comparisons have paired intervals spanning zero. Report and figure · Protocol
The independent checks cover information timing, trades, fees, BTC holdings, cash and closing marks. The economic evidence remains retrospective and inconclusive. Portfolio walkthrough
Other commands
quant-lab example options --out option-example
quant-lab example historical --out historical-example
quant-lab archive papers FFT
quant-lab --help
CSV works with the base package. For Parquet input use python -m pip install 'agenthon-quant-lab[parquet]==0.4.0'. The optional Codex skill installs from its own tagged checkout. Skill guide
Software carries the Team 166 MIT notice. The 2017–2024 BTC study extract and financial derivatives use CC BY-SA 4.0. The separate Q2 2025 example uses CC BY 4.0. Data sources, credits and licenses
Metadata
Release files for agenthon-quant-lab 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agenthon_quant_lab-0.4.0.tar.gz | 2.6 MB | With provenance | Details for agenthon_quant_lab-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agenthon_quant_lab-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for agenthon_quant_lab-0.4.0-py3-none-any.whl |
Total release size: 5.2 MB
Release files / agenthon_quant_lab-0.4.0.tar.gz
| Download URL | agenthon_quant_lab-0.4.0.tar.gz |
|---|---|
| Size | 2.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
504f21c9f283afee78cbe9fdcd4a13675bc7fc97f43983a3a31d1dbfe19df3b9
|
|
BLAKE2b-256 checksum How to use checksums |
bc7873eacf723bd25e93194d6e8fe598d09e956c01bba3e81d2f2a41011128b1
|
| 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 26, 2026.
Transparency logRelease files / agenthon_quant_lab-0.4.0-py3-none-any.whl
| Download URL | agenthon_quant_lab-0.4.0-py3-none-any.whl |
|---|---|
| Size | 2.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
228921a63c4330cb3ad420710564067473aa9364f4fa0a0ffb6d2e7f5a0993a8
|
|
BLAKE2b-256 checksum How to use checksums |
4fd354ab10ecc59d406df01a247b0acdc9ef4115bc60c1942dc149030d76257f
|
| 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 26, 2026.
Transparency logSecurity for agenthon-quant-lab 0.4.0
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.
Attestation for agenthon_quant_lab-0.4.0.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 26, 2026.
Transparency logA 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.