quantgap-signals
by adamgraymon
README.md
# QuantGap Signals (`quantgap-physical-v1.0`) — 100% Public-Domain Physical Energy, VLCC Tanker, SEC Form 4 & Statistical Arbitrage Telemetry
[](./LICENSE)
[-10b981)](./build_legal_signals.py)
[](https://proofmarket-z9dq.onrender.com/@quantgap)
[-f59e0b)](https://github.com/adamgraymon/Own_adam)
Deterministic, commercial-safe, compact (`~4.5 KB`, canonical `SHA-256`) macro & physical energy telemetry for **AI trading agents (`MCP` / `A2A` / `x402`)** and **quantitative researchers** — built exclusively on **100% Public-Domain U.S. Government & public crypto feeds** (zero Yahoo Finance, zero scraped paywalls).
---
## Why AI Agents & Quants Use QuantGap ("Zero-Token Burn")
Fetching and parsing 10+ U.S. EIA `.xls` workbooks + raw SEC EDGAR Form 4 XML filings + computing 60-day rolling log-ratio Z-Scores inside an LLM context burns **`25,000+` tokens** and suffers from calculation hallucinations.
**QuantGap** runs deterministically in GitHub Actions (post-EIA Wednesday + daily market close) and delivers a single **canonical `SHA-256`-sealed JSON snapshot (`signals_latest.json`)** in `< 10 ms` with **0 hallucinations**.
---
## Reproducible 15-Year Quantitative Evidence (100% U.S. EIA Spot · 2011–2026)
Do not trust marketing claims — reproduce both spreads locally in 10 seconds with **`python verify_15y_backtest.py`**:
| Physical Energy Spread (U.S. EIA Official Daily Spot) | Period | Trades | Win Rate | Gross Profit Factor | Avg Hold | Mean-Reversion Close |
|---|---|---:|---:|---:|---:|---:|
| **Brent vs. WTI** (`RBRTE` vs. `RWTC`, 60d log-ratio, `|Z| >= 2.0`, stop `4.0`, max `40d`) | `2011-03-30..2026-11-24` | `96` | **`82.3%`** | **`5.65`** | `16.7d` | `80.2%` |
| **RBOB Gasoline vs. WTI Crack** (`EER_EPMRU*42` vs. `RWTC`, same rules) | `2011-03-30..2026-11-24` | `85` | **`81.2%`** | **`5.86`** | `19.9d` | `80.0%` |
> **Honest Methodology Disclosure:** Figures above are gross daily spot mean-reversion backtests computed strictly on official U.S. EIA daily spot series before brokerage commissions, slippage, or futures roll costs. Deterministic quantitative research telemetry only — **not personalized financial or investment advice**.
---
## Data Sources Included (100% Commercial-Safe Public Domain)
1. **U.S. Energy Information Administration (EIA.gov — Public Domain):**
- Cushing, OK crude storage utilization & estimated floating-roof shadow proxy (`W_EPC0_SAX_YCUOK_MBBL`)
- Gulf Coast PADD 3 flows (`WCESTP31`), VLCC tanker arrivals/departures (`WCRIMUS2`, `WCREXUS2`), underground Natural Gas storage (`NW2_EPG0_SWO_R48_BCF`)
- U.S. Retail Gasoline (`EMM_EPM0`) & Jet Fuel demand/price (`WKJUPUS2`, `EER_EPJK`)
- Daily Spot `WTI`, `Brent`, and `RBOB Gasoline` (`RWTC`, `RBRTE`, `EER_EPMRU`)
2. **U.S. SEC EDGAR Official XML API (`data.sec.gov` — Public Domain):**
- Parses raw Form 4 XML filings over the trailing 14 days to separate real **open-market cash buys (`Code P`)** from executive sales (`Code S`) across key defense/AI/retail bellwethers (`PLTR`, `NVDA`, `LMT`, `WMT`, `COST`).
3. **Public Crypto Perpetual Feeds (`Binance` & `Hyperliquid`):**
- Live BTC Cash-and-Carry annualized funding APR.
---
## Reproduce Locally (Python 3.12)
```bash
pip install pandas numpy xlrd
# 1. Reproduce the 15-year EIA spot backtest independently
python verify_15y_backtest.py
# 2. Generate a fresh canonical SHA-256 snapshot (signals_latest.json)
python build_legal_signals.py
```
## Connect QuantGap Directly to Your AI Agent (FREE Live MCP Tool)
```json
{
"mcpServers": {
"quantgap-signals": {
"url": "https://proofmarket-z9dq.onrender.com/s/quantgap/mcp"
}
}
}
```
Call **`get_quantgap_live_pulse_free`** with `{}` (**`0 USDC`, `< 20 ms`, `readOnlyHint: true`**) to receive live U.S. EIA Cushing storage/roof shadow, 15-year reproducible `Brent/WTI` & `RBOB/WTI` Z-Score regimes, and 14-day SEC EDGAR Form 4 signal flags with canonical `SHA-256`. Unlock exact SEC insider names/USD amounts, VLCC tanker flows, Jet Fuel, Natural Gas & BTC Cash-and-Carry APR via `buy_quantgap_physical_macro_snapshot` (`$0.05 USDC` x402).
- **Official MCP Registry ID:** `io.github.adamgraymon/quantgap-signals`
- **Free Live JSON Preview:** `GET https://proofmarket-z9dq.onrender.com/api/quantgap/pulse`
- **Storefront (MCP + A2A + x402 USDC):** https://proofmarket-z9dq.onrender.com/@quantgap
- **Independent Security Auditor & Notary:** [VERITAS-8183 (`Own_adam`)](https://github.com/adamgraymon/Own_adam)
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues