Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions docs/additional-dashboards.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Public price and supply/demand snapshots

`tinyercot.public.additional_dashboards.AdditionalDashboardClient` adds two
anonymous captures: `system_prices()` and `supply_demand()`. It inherits the
existing dashboard transport budgets and connection lifetime. Each method
makes one logical capture with bounded retries. It does not request historical
dates, poll continuously, interpolate missing observations, or compute forecasts.

```python
from tinyercot.public.additional_dashboards import AdditionalDashboardClient

with AdditionalDashboardClient() as client:
prices = client.system_prices()
supply = client.supply_demand()

print(prices.real_time[-1].hbHouston)
print(supply.data[-1].forecast, supply.source_last_updated)
```

Website prices preserve every source hub/load-zone price as a Decimal, keeping
real-time and day-ahead rows in separate tuples. Day-ahead rows can describe
future intervals; those intervals are not confused with source publication or
retrieval time. The source hour-ending value 24 remains 24, alongside the
following midnight's explicit offset-bearing timestamp and epoch.

Supply/demand has three observed shapes. Actual data rows carry integer
`forecast=0` and have no `available` field. Same-day forecast rows carry
`forecast=1` and require the source `available` value. The separate multi-day
`forecast` section preserves published capacity/demand, local begin/end text,
operating-day text, hour-ending labels, and offset-bearing end-time evidence.
No `available=None` is manufactured for actual rows. Published forecasts remain
source values; this client does not predict reserve sufficiency or demand.

The decoders reject unknown fields, missing columns, numeric strings, booleans
in integer fields, nulls, nonfinite prices, unknown forecast discriminators,
conflicting epoch/time evidence, and repeated or reversed rows. Offset checks
use America/Chicago. Repeated fall-hour observations remain distinct by their
explicit offsets; DST flags are retained without interpretation. The local
outlook start text has no offset, so no UTC start instant is invented.

Original response bytes and receipt hashes remain available. Freshness uses
the source update time and retrieval time, separately from forecast intervals.
The caller-selected ten-minute default is not an ERCOT service guarantee.
These snapshots do not prove complete-day coverage, historical availability,
stable publication latency, or equivalence with Public Reports API rows.

## Primary evidence

ERCOT's [System-Wide Prices page](https://www.ercot.com/gridmktinfo/dashboards/systemwideprices)
declares the
[`system-wide-prices.json` route](https://www.ercot.com/api/1/services/read/dashboards/system-wide-prices.json).
It describes real-time/day-ahead hub and load-zone prices and cautions that
related API reports may differ from the display. This adapter does not replace
NP6-905-CD or NP4-190-CD query contracts.
The audit's public product catalog identifies this display as GEN-542-UI.

ERCOT's [Supply and Demand page](https://www.ercot.com/gridmktinfo/dashboards/supplyanddemand)
declares
[`supply-demand.json`](https://www.ercot.com/api/1/services/read/dashboards/supply-demand.json).
Only its public aggregate payload is decoded; private planning inputs and
resource telemetry remain outside the adapter.
The audit identifies this supply/demand display as GEN-530-UI; it is distinct
from the GEN-543-UI Grid Conditions display.

[Fixture provenance](evidence/additional-dashboard-fixture-provenance.json)
records two anonymous source captures, exact response hashes, source timestamps,
and compact lossless excerpt transformations. The observed response contained
80 RT price rows, 24 DAM price rows, 241 actual supply/demand rows, 48 same-day
forecast rows, and 144 published outlook rows. Those counts describe one capture,
not retention or a guaranteed feed size. No source nulls were observed.

Run the explicit installed-wheel probe with an isolated virtual environment:

```bash
/absolute/venv/bin/python -I tools/probe_additional_dashboards.py --live --output /tmp/additional-dashboard-receipts.json
```

It makes at most two anonymous attempts with retries disabled and records typed
row counts and source receipts. It never loads `.env` or performs authentication.

The [installed-wheel receipts](evidence/installed-additional-dashboard-receipts.json)
record a successful isolated Python 3.14 proof on 2026-09-06 UTC: 80 RT and
24 DAM price rows, plus 289 supply/demand and 144 outlook rows. The price source
was just over ten minutes old at retrieval and correctly reported stale;
supply/demand was fresh under the same caller policy. Successful decoding does
not imply a fresh publication. No retry or second capture was made to replace
that observation.
46 changes: 46 additions & 0 deletions docs/evidence/additional-dashboard-fixture-provenance.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"description": "Two anonymous snapshot captures; no historical selection or forecast computation.",
"source_pages": [
"https://www.ercot.com/gridmktinfo/dashboards/systemwideprices",
"https://www.ercot.com/gridmktinfo/dashboards/supplyanddemand"
],
"fixtures": [
{
"fixture": "tests/fixtures/public/system-wide-prices-live.json",
"fixture_sha256": "eb0fa529c5e5a08fe092dbee57fc6ed84461ad663c6c1f3798ad11fbd6b8b08a",
"source_receipt": {
"source_url": "https://www.ercot.com/api/1/services/read/dashboards/system-wide-prices.json",
"retrieved_at": "2026-09-06 01:04:51.647937+00:00",
"sha256": "8e38ba06d829fcee282409af8db0ac41648a4d1b5e5fdd2d8f0acbf44ead239c",
"byte_count": 35242,
"status": 200
},
"observed_rows": {
"rtSppData": 80,
"damSppData": 24
},
"transformation": "First and last two rows from rtSppData and damSppData; retain all fields and exact JSON number values.",
"authentication": "none",
"nullability": "No nulls observed; missing available is a separate actual-row shape, not a null."
},
{
"fixture": "tests/fixtures/public/supply-demand-live.json",
"fixture_sha256": "8311d571a8073e7d0183e331f77f907d34b27ef7d34edd372c762436eb91a647",
"source_receipt": {
"source_url": "https://www.ercot.com/api/1/services/read/dashboards/supply-demand.json",
"retrieved_at": "2026-09-06 01:04:53.692382+00:00",
"sha256": "21f046e85d59c4097fbc26507fcd7e12f909f4150c1b7da10e85a7a7ebaa044c",
"byte_count": 80541,
"status": 200
},
"observed_rows": {
"actual": 241,
"same_day_forecast": 48,
"outlook": 144
},
"transformation": "First and last two actual rows, same-day forecast rows, and multi-day outlook rows; all fields and source discriminator values retained.",
"authentication": "none",
"nullability": "No nulls observed; missing available is a separate actual-row shape, not a null."
}
]
}
24 changes: 24 additions & 0 deletions docs/evidence/fixture-provenance.json
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,30 @@
"status": 200
}
]
},
{
"fixture": "system-wide-prices-live.json",
"sha256": "eb0fa529c5e5a08fe092dbee57fc6ed84461ad663c6c1f3798ad11fbd6b8b08a",
"source": {
"source_url": "https://www.ercot.com/api/1/services/read/dashboards/system-wide-prices.json",
"retrieved_at": "2026-09-06 01:04:51.647937+00:00",
"sha256": "8e38ba06d829fcee282409af8db0ac41648a4d1b5e5fdd2d8f0acbf44ead239c",
"byte_count": 35242,
"status": 200
},
"transformation": "First and last two rows from rtSppData and damSppData; retain all fields and exact JSON number values."
},
{
"fixture": "supply-demand-live.json",
"sha256": "8311d571a8073e7d0183e331f77f907d34b27ef7d34edd372c762436eb91a647",
"source": {
"source_url": "https://www.ercot.com/api/1/services/read/dashboards/supply-demand.json",
"retrieved_at": "2026-09-06 01:04:53.692382+00:00",
"sha256": "21f046e85d59c4097fbc26507fcd7e12f909f4150c1b7da10e85a7a7ebaa044c",
"byte_count": 80541,
"status": 200
},
"transformation": "First and last two actual rows, same-day forecast rows, and multi-day outlook rows; all fields and source discriminator values retained."
}
]
}
43 changes: 43 additions & 0 deletions docs/evidence/installed-additional-dashboard-receipts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"distribution_version": "0.2.2",
"installed_module": "/private/tmp/tinyercot-additional-proof.NHjBTC/venv/lib/python3.14/site-packages/tinyercot/public/additional_dashboards.py",
"verified_at": "2026-09-06T01:12:09.588504+00:00",
"authentication": "none",
"scope": "Two rolling snapshots; no polling or historical extraction.",
"captures": [
{
"adapter": "system_prices",
"receipt": {
"source_url": "https://www.ercot.com/api/1/services/read/dashboards/system-wide-prices.json",
"retrieved_at": "2026-09-06T01:12:07.538235+00:00",
"sha256": "8e38ba06d829fcee282409af8db0ac41648a4d1b5e5fdd2d8f0acbf44ead239c",
"byte_count": 35242,
"status": 200
},
"source_last_updated": "2026-09-05 20:02:00-0500",
"typed_rows": {
"real_time": 80,
"day_ahead": 24
},
"stale_at_ten_minutes": true
},
{
"adapter": "supply_demand",
"receipt": {
"source_url": "https://www.ercot.com/api/1/services/read/dashboards/supply-demand.json",
"retrieved_at": "2026-09-06T01:12:09.582151+00:00",
"sha256": "6ad8925b0a0d4b0face9059fb671733efaa314fb5604fd08af12a0abc9bd46cb",
"byte_count": 80505,
"status": 200
},
"source_last_updated": "2026-09-05 20:10:00-0500",
"typed_rows": {
"data": 289,
"published_outlook": 144
},
"stale_at_ten_minutes": false
}
],
"wheel_sha256": "35a50b4a21e1d86af3b4344054b90ee0ade773710e59aaa0ba61017f005f5f02",
"command": "/tmp/tinyercot-additional-proof.NHjBTC/venv/bin/python -I tools/probe_additional_dashboards.py --live --output /tmp/tinyercot-additional-proof.NHjBTC/receipts.json"
}
Loading
Loading