From a price check to a repeatable report
Put Waha–Henry Hub basis into your spreadsheet
Fetch both daily spot histories, select the newest UTC observation date they share, and export Waha minus Henry Hub to CSV. The EIA Henry Hub spot series may arrive several days after Waha. Negative Waha prices and a negative basis are valid observations.
1. Download the Python integration
The script uses Python 3.9 or later with no extra packages. It writes a CSV only when both spot series contain valid prices on one shared as_of date within 14 days. Your key stays in your own environment.
Run the script on your computer or a trusted server. Keep the key out of shared workbooks and source control.
2. Connect your account and export
Set OILPRICEAPI_KEY in your environment, then run:
python3 waha_basis.py > waha-basis.csvEvaluation and paid access depend on your account and the requested series. A 401 response means the key needs attention; 402 or 403 requires checking entitlement; 429 requires waiting before retrying. The script reports failures without substituting a zero price.
3. Import the CSV into Excel or Google Sheets
Use your spreadsheet's CSV import. The file contains the export time, both as_of observation times, the shared UTC date, each collection time, Waha and Henry Hub prices in USD/MMBtu, and the calculated basis. With the default column order, the equivalent spreadsheet formula is =D2-E2.
Compare the shared observation date and collection times against your freshness requirement before using the result. EIA spot may be published in a later batch; matching dates does not mean both prices were collected simultaneously. A manual CSV import is a snapshot; rerun and import again when you need another observation.
Before extending this into a historical model
This integration selects the newest shared spot observation date in a 14-day window. It writes no CSV when no valid pair exists. For a backtest, verify the available history for both codes, align as_of dates, and retain missing periods rather than filling them with zero. Basis is Waha minus Henry Hub throughout this workflow; it is a price differential, not a pipeline-capacity measurement.
Video walkthrough
Why $70 Crude Oil Crashes Natural Gas Below Zero (6:1 Thermal Parity vs. Permian GOR)
How the gap between 6:1 BTU thermal parity and 20:1 market oil-to-gas ratios drives ~4,200 cf/bbl Permian associated gas into full pipelines, pushing West Texas Waha below zero.
Change monitoring pilot
Catch a change in basis or a supply constraint
For example: Waha basis crosses your threshold, or a pipeline notice changes.
Join the interest list and choose how you would want changes delivered. We’ll review your request and contact you about a pilot. Signing up does not activate alerts.