Model Data Sources & Intelligence Feeds
The Midgley Forecasting Engine bridges quantitative financial futures with physical supply-chain telemetry, atmospheric hazard sensors, river navigation gages, state motor fuel tax portals, crowdsourced pump benchmarks, and real-time financial news. Explore complete technical specifications, update cadences, endpoint schemas, and caching policies across all 28 monitored feeds.
Ingestion Feeds
Paid API Cost
Failover Resiliency
Fast-Path Polling
Quantitative Commodity Futures & Energy Benchmarks
Exchange-traded financial benchmarks, government energy inventory ledgers, and biofuel credit rack series.
NYMEX RBOB Gasoline
Ticker: RB=FReformulated Blendstock for Oxygenate Blending (RBOB) delivered at New York Harbor (42,000 gal contract). Primary baseline target for national wholesale price discovery.
src/data_ingestion.pyWTI Crude Oil Futures
Ticker: CL=FWest Texas Intermediate light sweet crude physical delivery benchmark at Cushing, Oklahoma hub ($/bbl). Used to calculate raw refining crack margins: PRBOB − PWTI / 42.0.
src/data_ingestion.pyBrent Crude Futures
Ticker: BZ=FNorth Sea sea-borne crude pricing benchmark. Governs import parity costs for East Coast (PADD 1B Delaware City) and West Coast (PADD 5 CARB) waterborne crude shipments.
src/data_ingestion.pyNYMEX ULSD / Heating Oil
Ticker: HO=FUltra-Low Sulfur Diesel and heating oil benchmark. Critical for computing the industry-standard 3-2-1 refining crack margin: Crack321 = (2 × RBOB + ULSD − 3 × WTI) / 3.
src/data_ingestion.pyU.S. EIA API v2 Data
api.eia.gov/v2Official Weekly Petroleum Status Report (WPSR). Ingests regional motor gasoline inventories, crude stocks, PADD refinery capacity utilization %, and weekly retail fuel prices.
/petroleum/pri/gnd/, /petroleum/stoc/src/data_ingestion.pyFRED St. Louis Fed
api.stlouisfed.org
Federal Reserve Economic Data energy series. Tracks weekly national retail regular gasoline (GASREGW), diesel (GASDESW), and BLS CPI Gasoline index (CUUR0000SETB01).
src/data_ingestion.pyUSDA Ethanol & RIN Credits
marsapi.ams.usda.govSpot Midwest E100 ethanol rack prices and EPA Renewable Fuel Standard (RFS) D6 Renewable Identification Number (RIN) credits. Models E10 finished unleaded cost: 0.10 × E100 + 0.90 × RBOB + RIN.
src/data_ingestion.pyAlternative Physical, Upstream & Macroeconomic Telemetry
Options implied volatility skew, drilling rig lead indicators, Treasury yields, CFTC hedge fund crowding, and interstate pipeline tariffs.
Cboe OVX Volatility Index
Ticker: ^OVXCboe Crude Oil Volatility Index ("VIX for Oil") measuring 30-day implied options tail-risk volatility from USO options. Spikes indicate geopolitical panic buying and downside hedging skew.
src/alternative_data_feeds.pyBaker Hughes Rig Counts
bakerhughes.comTotal active US drilling rigs, Permian Basin oil rigs, and gas rigs. Acts as a 3-to-6 month forward upstream supply pipeline indicator into medium-term commodity baseline models.
src/alternative_data_feeds.pyEnverus Daily Rig Count
enverus.com/dailyrigcountGPS-tracked daily active rig counts across major production basins (Permian, Gulf Coast/Eagle Ford, Williston, Anadarko, Appalachia, DJ). Extracted via Cloudflare Browser Rendering API Quick Actions with zero Firecrawl quota usage.
src/enverus_rig_feed.py • workers/enverus_scraper.tsUS Treasury & TIPS Yields
^TNX / DGS10 / DFII1010-Year Treasury Yield (10Y), 10Y-2Y yield curve slope (ΔY), and 10-Year TIPS real yield. Quantifies macro demand, recession probabilities, and breakeven inflation.
src/treasury_yield_feed.pyCFTC Commitments of Traders
cftc.gov/dea/futures/Commodity Futures Trading Commission weekly positioning report. Extracts non-commercial speculative net length and 3-year rolling Z-score to diagnose hedge fund crowding.
src/alternative_data_feeds.pyFERC Form 6 Pipeline Tariffs
ferc.gov/industries-data/Federal Energy Regulatory Commission interstate pipeline tariff filings. Calibrates physical transport cost baselines for Colonial (Lines 1 & 2), Plantation, and Explorer pipelines.
src/feature_engineering.pyEnergy Sector Equities
XLE, VLO, MPC, PSXEquity valuations and intra-day returns for major independent US refiners (Valero, Marathon Petroleum, Phillips 66) and energy ETF (XLE) capturing corporate margin health.
src/energy_equities_feed.pyU.S. BTS Freight TSI & Truck Tonnage
data.bts.gov • bw6n-ddqkU.S. Bureau of Transportation Statistics Freight Transportation Services Index and Truck Tonnage Index. Serves as a leading physical commercial freight demand proxy for diesel and motor gasoline consumption.
src/bts_transportation.pyReal-Time Financial Media, Web Scraping & Event Intelligence
Gemini LLM news scoring, Firecrawl web-to-markdown extraction, push webhooks, executive social media, and SEC 8-K outage filings.
Finlight.me REST API
api.finlight.me/v1/Ingests real-time financial energy headlines from tier-1 media (Reuters, Bloomberg, Seeking Alpha, Investing.com). Hard quota ledger enforces 150 call/month limit with offline fallback.
src/finlight_feed.pyBrowser Rendering & Firecrawl
workers.cloudflare.com • Issue #640
Serverless headless Chromium execution at the edge via Cloudflare Browser Rendering API (@cloudflare/puppeteer / Quick Actions). Scrapes JavaScript-rendered dynamic news, South Coast AQMD Rule 1118 refinery flare logs, and NYSERDA weekly retail fuel surveys, bypassing bot protection while preserving metered Firecrawl quotas (800 calls/mo).
/api/v1/news/scrape-markdown, /api/v1/energy/outages/scaqmdworkers/regional_outage_scraper.ts, src/firecrawl_scraper.pyFree Energy RSS Feeds
Google News / NYT / CNBC
Zero-cost continuous RSS polling across Google News Energy (when:1d), NYT Energy, and CNBC Commodities with 24-hour timestamp deduplication.
src/intraday_event_monitor.pyPush Webhook Gateway
POST /api/v1/events/webhookREST push ingestion endpoint accepting breaking alerts from Zapier, TradingView, and IFTTT. Secured by HMAC-SHA256 signature verification and IPASIS Tor/proxy filtering.
src/api_server.pyExecutive Social Feed
Twitter / Truth SocialTracks executive posts regarding OPEC pricing pressure (-1.85% single-day shock) and tariff declarations (+2.10% shock), applying a 1.42x multiplier to weekend closed-market posts.
src/executive_social_feed.pySEC EDGAR 8-K Outages
sec.gov/edgar/Monitors SEC EDGAR Form 8-K corporate disclosures for unscheduled refinery outages, turnaround delays, pipeline force majeure declarations, and material refining equipment failures across Tier-1/Tier-2 operators. Uses ETag / If-Modified-Since HTTP conditional caching and operational title keyword gating.
src/edgar_8k_monitor.py, workers/intraday_monitor_worker.tsAtmospheric, Hydrological & Seismic Hazard Telemetry
NOAA NWS weather alerts, SPC convective outlooks, NHC hurricane cones, USGS river stages, USACE locks, and earthquake ShakeMaps.
NOAA NWS Weather Alerts
api.weather.gov • t.wxs.us
Ingests real-time NWS active alerts across 10 regional metro county zones and 6 key refining basins. Integrates t.wxs.us lightweight endpoint saving 90-95% context tokens.
src/noaa_weather.pyNOAA SPC Convective Risk
spc.noaa.govDeterministic 0-token SPC convective risk mapping (HIGH: 1.0, MDT: 0.8, ENH: 0.6, SLGT: 0.4, MRGL: 0.2) tracking severe tornado, hail, and straight-line wind threats to refineries.
src/noaa_weather.pyNOAA NHC Tropical Cones
nhc.noaa.gov/gis/National Hurricane Center active storm GIS track, 34kt/64kt wind radii swaths, and 5-day forecast cone feeds. Intersects spatial hazard boundaries with EIA-820 refinery geographic coordinates to calculate capacity-weighted PADD 3 refining exposure scores.
src/nhc_hurricane.pyBSEE Gulf Shut-in Reports
bsee.govBureau of Safety and Environmental Enforcement official tropical storm offshore Gulf of Mexico production shut-in percentages and offshore platform evacuation statistics.
src/bsee_shutins.pyUSGS Water Data Telemetry
api.waterdata.usgs.govReal-time streamflow (cfs), gage height (ft), and water temperature across the Mississippi (Cairo, Memphis), Ohio (Cincinnati), Arkansas (Tulsa), and Delaware rivers for barge draft modeling.
src/usgs_water_feed.pyUSACE Lock Performance
ndc.iwr.usace.army.milU.S. Army Corps of Engineers Lock Performance Monitoring System (LPMS). Tracks vessel queues, barge draft restrictions, and unscheduled lock chamber closures on the Ohio and MKARNS waterways.
src/usace_locks.pyUSGS Seismic Hazards
earthquake.usgs.govReal-time seismic events (≥ M3.0), ShakeMap Peak Ground Acceleration (PGA), and refinery fault proximity for the Hayward Fault (Chevron Richmond), Newport-Inglewood / Palos Verdes Faults (El Segundo / Torrance), and New Madrid Seismic Zone.
src/usgs_seismic.pyAir Quality & Flaring Index
PurpleAir • OpenAQ • AirNowMulti-feed air quality sensors monitoring fence-line particulate (PM2.5) and SO2 anomalies near refineries (e.g. Richmond, Martinez, El Segundo, Torrance, Carson/Wilmington, Delaware City, Commerce City) to detect unplanned unit flaring trips.
src/aqi_feed.pyPirate Weather Reanalysis
api.pirateweather.netDark Sky-compatible historical reanalysis processing NOAA High-Resolution Rapid Refresh (HRRR 3km) and ERA5 data across exact refining hub coordinates for backtesting freeze-off risk and heat stress.
src/noaa_weather.pyNASA FIRMS Satellite Telemetry
firms.modaps.eosdis.nasa.govNASA Fire Information for Resource Management System (FIRMS) active fire and thermal anomaly satellite telemetry (VIIRS NOAA-20/SNPP & MODIS) monitoring refining clusters for flaring upsets and emergency unit shutdowns.
src/firms_satellite_feed.py • src/knowledge_graph.pyState Open Data, Tax Portals & Crowdsourced Retail Pump Feeds
Universal 50-State open data connectors, state motor fuel excise tax rates, UST fees, Census commuter surveys, and crowdsourced pump prices.
50-State Open Data Portals
data.<state>.gov / SocrataConnects dynamically to state open data portals (Socrata), U.S. Census State Tax API, and FTA indices across all 50 states + DC for statutory excise taxes, UST fees, and inspection fees.
src/state_open_data.pyU.S. Census Demographics
api.census.govAmerican Community Survey (ACS) 5-year county demographics. Quantifies vehicles per household, commute durations, and median income to calibrate localized retail elasticity.
src/census_demographics.pyLive Retail Fuel Feeds
lykmapipo CSV • Cloudflare Browser Run • GasBuddyPrimary ingestion via lykmapipo/US-Gas-Prices daily AAA metro and state CSVs (multi-grade zero-cost observations). Secondary fallback to headless Chromium Cloudflare Browser Run edge rendering (Issue #640), hyper-local station query via GasBuddy GraphQL, and EIA benchmark calibration.
src/live_fuel_feed.pyContinuous Academic Literature & Developer Catalog Feeds
Weekly automated research paper scans, preprint monitors, and open developer directory indexing.
arXiv Research Preprints
export.arxiv.org/api/query
Queries arXiv API for newly published preprints across Quantitative Finance (q-fin.PR), Econometrics (econ.EM), and Machine Learning (cs.LG).
src/arxiv_monitor.pyCORE Open-Access Literature
api.core.ac.uk/v3/Integrates CORE API v3 to scan millions of open-access university research papers and academic journal articles covering asymmetric price transmission and rockets & feathers econometrics.
src/core_monitor.pyDeveloper Catalogs (10 Indexes)
public-apis, free-for-devMonitors 10 major open-source developer indexes (public-apis, awesome-quant, free-for-dev) for new $0 tools, automatically generating GitHub feature issues for tools scored ≥ 7.0/10.
src/catalog_monitor.pyData Ingestion & Governance Ledger Matrix
Master architectural summary table detailing protocols, caching TTLs, update cadences, and rate-limiting safeguards.
| Feed / Identifier | Domain Category | Provider / Endpoint | Protocol / Auth | Cache TTL | Update Cadence | Cost / Safeguard | Consumer Module |
|---|---|---|---|---|---|---|---|
| RB=F • NYMEX RBOB | Commodity Futures | CME / Yahoo Finance | HTTPS / Zero Auth | 6 Hours | Daily Settlement | $0 Open Access | src/data_ingestion.py |
| CL=F • WTI Crude | Commodity Futures | Cushing / Yahoo Finance | HTTPS / Zero Auth | 6 Hours | Daily Settlement | $0 Open Access | src/data_ingestion.py |
| HO=F • Heating Oil/ULSD | Commodity Futures | NYMEX / CME Group | HTTPS / Zero Auth | 6 Hours | Daily Settlement | $0 Open Access | src/data_ingestion.py |
| ^OVX • Cboe Volatility | Physical & Macro | Cboe Options Exchange | HTTPS / Zero Auth | 6 Hours | Daily Close | $0 Open Access | src/alternative_data_feeds.py |
| BTS TSI • Freight & Trucking | Physical Demand | data.bts.gov/resource/bw6n-ddqk | Open SODA REST | 7 Days | Monthly Release | $0 Open Access | src/bts_transportation.py |
| Finlight.me • Energy News | Financial News | api.finlight.me/v1/ | Bearer Key | 1 Hour | Trading Hours | 150 Call/Mo Cap | src/finlight_feed.py |
| Browser Rendering • Scraper | Dynamic Headless / Outages | workers.cloudflare.com • api.firecrawl.dev | Bearer Token / Edge | 24h D1/Disk Cache | Edge Scheduled / On-Demand | $0 Edge / Secondary Metered | workers/regional_outage_scraper.ts |
| NOAA NWS • Weather Alerts | Atmospheric Hazard | api.weather.gov • t.wxs.us | User-Agent Auth | 15 Minutes | 15-Min Polling | $0 Open API | src/noaa_weather.py |
| USGS Water • River Telemetry | Hydrology Telemetry | api.waterdata.usgs.gov | HTTPS / Zero Auth | 15 Minutes | 15-Min Polling | $0 Open REST | src/usgs_water_feed.py |
| 50-State Portals • Fuel Taxes | Regulatory Tax | data.<state>.gov / Socrata | Open SODA REST | 24 Hours | Daily Sync | $0 Open Data | src/state_open_data.py |
| arXiv API • Research Preprints | Academic Literature | export.arxiv.org/api/query | HTTPS / Zero Auth | 7 Days | Weekly Sat 08:00 CT | $0 Open API | src/arxiv_monitor.py |
Model & Architecture Documentation
Learn how these raw data feeds are transformed into 9 regularized econometric feature vectors, continuous shock memories, and ridge regression estimates.