Skip to main content

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 four 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.5.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
quant-lab btc-weekly-allocation --out runs/allocation

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

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

  1. 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
  2. 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
  3. 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
  4. What did restoring a 50% BTC target change? At base costs, restoring the target on positive-signal Mondays cut maximum drawdown to 45.02%, compared with 64.45% for $5,000 in weekly momentum plus $5,000 held in cash. The reduction was 19.43 percentage points (paired conditional 95% interval +0.66 to +23.82). The target ended with $25,334.67 versus $29,342.96. Its BTC weight could drift between decisions. The interval uses resampled returns from the same historical paths. 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.5.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.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agenthon-quant-lab 0.5.0
File Size Uploaded Provenance Actions
agenthon_quant_lab-0.5.0.tar.gz 2.6 MB With provenance Details for agenthon_quant_lab-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agenthon-quant-lab 0.5.0
File Interpreter ABI Platform Actions
agenthon_quant_lab-0.5.0-py3-none-any.whl Python 3 none any Details for agenthon_quant_lab-0.5.0-py3-none-any.whl

Total release size: 5.2 MB

Release files / agenthon_quant_lab-0.5.0.tar.gz

Download URL agenthon_quant_lab-0.5.0.tar.gz
Size 2.6 MB
Tags Source
SHA-256 checksum
How to use checksums
08948d5967191be9f678349978d2441aab79f4bf32253f69fb9e277b56e6e6f3
BLAKE2b-256 checksum
How to use checksums
90234e29d528aaee9eee775ffe7f54d94d5145b4fbd30e8530fbee95012279fe
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 log

Release files / agenthon_quant_lab-0.5.0-py3-none-any.whl

Download URL agenthon_quant_lab-0.5.0-py3-none-any.whl
Size 2.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d926ab523fc5db37adb0af99f86cab1d67dc6489b0db8d9787f76145eac51b28
BLAKE2b-256 checksum
How to use checksums
a9374ddcac04076db82995e61fb3ec86840e000d00959aa23a26ffbcc26e9fe6
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 log

Security for agenthon-quant-lab 0.5.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.

Select from 2 files

Attestation for agenthon_quant_lab-0.5.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 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.

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