diff --git a/FINDINGS.md b/FINDINGS.md index b7fb349..20d984b 100644 --- a/FINDINGS.md +++ b/FINDINGS.md @@ -10,11 +10,11 @@ figure here drifts from the committed results. Distributed energy resources are usually discussed as a control problem: how well does the scheduler dispatch, how smart is the inverter, how good is the -forecast. Four independent studies here, each with its own data and method, +forecast. Five independent studies here, each with its own data and method, converge on the same structural answer. **What gates a DER project's value is its context, not the sophistication of -the control layered on top.** Across all four tracks, the context variable +the control layered on top.** Across all five tracks, the context variable dominates by a margin that control improvements cannot close: | Track | Context variable | Spread it produces | @@ -22,6 +22,7 @@ dominates by a margin that control improvements cannot close: | 1 | whether the project survives the queue at all | 68.0% withdraw vs 23.8% complete in PJM | | 2 | which feeder it connects to | 5.7x to 17.1x gap between screen and physics | | 3 | which rate structure the utility picked | 69 percentage point swing on one customer | +| 4 | which zone it sits in, and which capacity regime it lands in | zone mean LMP spread of $7.23/MWh; one capacity auction moved 9.33x | | 6 | which carbon signal the controller reads | sign flip: -2.9% becomes +10.5% | This is not a claim that control does not matter. It is a claim about @@ -35,7 +36,7 @@ as given is working on the wrong variable. These bound every number below. They are stated once here rather than repeated. -1. **Region.** Tracks 1 and 6 are PJM-specific in their headline numbers. +1. **Region.** Tracks 1, 4 and 6 are PJM-specific in their headline numbers. Track 1 reports all nine US balancing areas but the PPL and PJM cuts are the ones emphasized. Nothing here establishes behavior in other RTOs. 2. **Synthetic models where stated.** Track 2's feeders and track 3's load @@ -49,7 +50,12 @@ These bound every number below. They are stated once here rather than repeated. small hand-picked set of archetypes. Direction is better supported than magnitude. See "Known weaknesses" below. 5. **Point-in-time data.** LBNL Queued Up runs through end of 2024; CarbonCast - covers 2020-2021; the PJM queue snapshot is a single 2026-05-05 export. + covers 2020-2021; the PJM queue snapshot is a single 2026-05-05 export; + track 4's prices are day-ahead zonal LMP for 2017 to 2021 and the ten Base + Residual Auctions for 2018/19 through 2027/28. +6. **Mirrored public data.** pjm.com, emp.lbl.gov and puc.pa.gov were not + reachable from the build environment. Each dataset taken from a public + GitHub copy instead is named, with its commit, in NOTICE. --- @@ -244,6 +250,73 @@ units contradicts the overnight peak. --- +## 8. The locational part of the energy price is mostly congestion, earned in few hours + +**Claim.** Across PJM's 20 load zones, 2017 to 2021, congestion is a median +**81.1%** of the locational part of day-ahead LMP (mean absolute congestion +over mean absolute congestion plus loss), and no less than **61.0%** in any +zone. In the median zone the largest **10.5%** of hours carry half of all +absolute congestion, and the top 5% of hours carry **34.1%** of it. The zone +ranking is persistent: year-over-year Spearman rank correlation of zone mean +congestion runs from **0.85 to 0.97**. + +**Why it matters.** Which zone a DER sits in moves its average energy value by +up to **$7.23/MWh** (highest minus lowest zone mean LMP), about **24%** of the +mean system energy price, and most of that difference is collected in a small +minority of hours. Zone is a stable, first-order term; a dispatch strategy +that ignores the few congested hours forgoes most of it. + +**Scope.** Day-ahead only. Zonal prices average many buses, so this is a floor +on how concentrated congestion is at a single node. 2017 to 2021 predates +recent large-load growth and includes the 2020 demand dip; 2021 runs through +November. + +**Prior art.** This corroborates rather than discovers. PJM's Independent +Market Monitor (Monitoring Analytics) decomposes LMP into energy, congestion +and loss components by zone in every annual *State of the Market Report for +PJM*. Those reports could not be read from the build environment, so the +figures here were not checked against them line by line. + +**Falsified if.** Real-time or nodal data over the same period show half of +absolute congestion spread over more than a fifth of hours in most zones, or a +later five-year window shows year-over-year zone rank correlation below 0.5. + +**Code.** `pjm-market-tools/pjmmkt/congestion.py`. + +--- + +## 9. A history-only forecast of the capacity price misses the moves that matter + +**Claim.** Scored one Base Residual Auction at a time on the RTO clearing price, +using only earlier auctions, persistence is off by a median factor of +**1.46x** and missed 2025/26 by **9.33x**. An 80% range built from every earlier +year-over-year change contained the actual price in **4 of 6** auctions it could +be scored on, and both misses were the large moves (2022/23 down, 2025/26 up). +In **8 of 10** delivery years at least one zone cleared above the RTO price, by +up to **3.33x**. + +**Why no forecast is published.** The 2026/27 and 2027/28 prices were set at a +FERC-approved cap, per PJM's own announcement, not by the supply and demand the +earlier history reflects. A range fitted to ten auctions under changing rules +describes a different market than the next auction. + +**Scope.** Ten auctions is a short series; six scored ranges cannot establish +or reject calibration. Base Residual Auction prices only. + +**Prior art.** Capacity price drivers are analyzed directly in the periodic +reviews of PJM's Variable Resource Requirement curve (for example Brattle's +2022 study for PJM) and in the New Jersey BPU's 2026 investigation of PJM's +capacity market. This finding only measures how far price history alone gets +without that market-design analysis. + +**Falsified if.** A history-only method, fixed before the 2028/29 auction and +scored the same way, contains the next several results at close to its stated +rate across a rule change. + +**Code.** `pjm-market-tools/pjmmkt/rpm.py`. + +--- + ## Retracted Every superseded claim in the repository is listed here, and each is also @@ -301,5 +374,8 @@ treating withdrawal as a competing risk leaves no median at all. the screen binding above the physical limit. - Track 3: real metered load shapes replacing the synthetic archetypes, and a filed tariff replacing the representative rate levels. +- Track 4: nodal or real-time LMP showing congestion spread evenly across + hours, or a history-only capacity price method that holds its stated coverage + through a rule change. - Track 6: measured marginal dispatch response for PJM, or interchange-adjusted generation data, replacing the system-level regression. diff --git a/Makefile b/Makefile index 98611bf..1d2c7f8 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,15 @@ -.PHONY: help test claims verify queue hosting carbon tariff dashboard report clean +.PHONY: help test claims verify queue hosting carbon tariff market dockets dashboard report clean help: - @echo "make test run the full test suite (155 tests)" + @echo "make test run the full test suite (191 tests)" @echo "make claims verify every quoted figure recomputes from results" @echo "make verify test + claims, what CI runs" @echo "make report regenerate every figure and table" @echo "make queue regenerate interconnection-analytics" @echo "make hosting regenerate hosting-capacity-sim" @echo "make tariff regenerate tariff-explorer" + @echo "make market regenerate pjm-market-tools" + @echo "make dockets run docket-tracker on its synthetic fixture" @echo "make carbon regenerate carbon-aware-der" @echo "make dashboard launch the tariff-explorer Streamlit app" @@ -28,10 +30,16 @@ hosting: tariff: cd tariff-explorer && python run_analysis.py +market: + cd pjm-market-tools && python run_analysis.py + +dockets: + cd docket-tracker && python run_tracker.py + carbon: cd carbon-aware-der && python run_analysis.py -report: queue hosting tariff carbon +report: queue hosting tariff market dockets carbon dashboard: cd tariff-explorer && streamlit run app.py diff --git a/NOTICE b/NOTICE index b87bd93..eb8d560 100644 --- a/NOTICE +++ b/NOTICE @@ -49,6 +49,51 @@ THIRD-PARTY DATA REDISTRIBUTED IN THIS REPOSITORY Used by: interconnection-analytics. +4. PJM day-ahead hourly zonal LMP (energy, congestion and loss components), + January 2017 through November 2021 + File: data/raw/pjm-market-tools/zonal_da_lmp_2017_2021.parquet + Original source: PJM Data Miner, da_hrl_lmps feed (type ZONE) + Obtained from: COVID-EMDA (Texas A&M University), + https://github.com/tamu-engineering-research/COVID-EMDA + commit f066e2d89d4581ec1cab224402d94ee35713915d, + directory data_source/pjm/lmp + License of the redistributing repository: MIT + The extract keeps PJM's published values exactly (stored as integer + micro-dollars per MWh, lossless at Data Miner's six decimals) and drops + only columns this repository does not use. PJM is the authoritative + source; pjm.com was not reachable from the build environment. + + Used by: pjm-market-tools. + +5. PJM RPM Base Residual Auction clearing prices and final zonal capacity + prices, delivery years 2018/19 through 2026/27 + File: data/raw/pjm-market-tools/rpm_capacity_prices.csv + Original source: PJM RPM auction result workbooks (per-row source URLs + are kept in the file) + Obtained from: Switchbox, rate-design-platform, + https://github.com/switchbox-data/rate-design-platform + commit f724f44ce525d7eed43579cc7f1b5aff7b15e882, + file data/pjm/capacity/rpm/rpm_capacity_prices.csv + License of the redistributing repository: MIT + Copied verbatim. + + Used by: pjm-market-tools. + +6. PJM RPM Base Residual Auction clearing price, delivery year 2027/28 + File: data/raw/pjm-market-tools/rpm_bra_2027_28.csv + Original source: PJM Inside Lines, "PJM Auction Procures 134,479 MW of + Generation Resources", December 17, 2025 + Read from a public archived copy of that announcement in + https://github.com/jwt625/PlayGround. Only the single published clearing + price is taken; the file header quotes the sentence it comes from. + + Used by: pjm-market-tools. + +7. docket-tracker fixture + File: data/raw/docket-tracker/synthetic_filings.json + Synthetic. Written for this repository; it contains no text from any real + commission filing. + -------------------------------------------------------------------------- No data in this repository originates from any utility's internal, diff --git a/README.md b/README.md index ea70b96..ec931ee 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,11 @@ [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE) [![Citation](https://img.shields.io/badge/cite-CITATION.cff-green.svg)](CITATION.cff) -**What actually gates distributed energy resource value: four studies of -interconnection queues, hosting capacity screens, retail rate structures, and -grid carbon signals.** +**What actually gates distributed energy resource value: five studies of +interconnection queues, hosting capacity screens, retail rate structures, PJM +market prices, and grid carbon signals, plus a utility docket tracker.** -DER is usually discussed as a control problem. Four independent studies here, +DER is usually discussed as a control problem. Five independent studies here, each with its own data and method, land on the same structural answer: the context a project sits in dominates the control layered on top, and it is not close. @@ -18,6 +18,7 @@ close. | 1 interconnection queues | whether the project survives the queue | 68% withdraw vs 24% complete in PJM | | 2 hosting capacity | which feeder it connects to | 5.7x to 17.1x gap between screen and physics | | 3 tariff design | which rate structure the utility picked | 69 point bill swing on one customer | +| 4 PJM market prices | which zone it sits in, which capacity regime it lands in | half of congestion in 10.5% of hours; one auction moved 9.33x | | 6 carbon-aware dispatch | which carbon signal the controller reads | sign flip: -2.9% becomes +10.5% | > **Read this before quoting tracks 2 or 6.** Tracks 2, 3 and 6 continue in @@ -40,8 +41,8 @@ Full numbered argument with scope conditions and falsification criteria: ```bash pip install -r requirements.txt -make test # 155 tests -make claims # 170 prose checks, recomputed from results +make test # 191 tests +make claims # 245 prose checks, recomputed from results make report # regenerate every figure and table make dashboard # tariff-explorer Streamlit app ``` @@ -82,16 +83,17 @@ green run. | 1 | `interconnection-analytics` | **Complete** | LBNL Queued Up 2025, 36,441 real requests. 32 tests, 6 figures | | 2 | `hosting-capacity-sim` | **Complete** | pandapower, 3 synthetic feeder archetypes. 41 tests, 5 figures | | 3 | `tariff-explorer` | **Complete** | 5 structures x 5 archetypes, Streamlit app. 27 tests, 4 figures | -| 4 | `pjm-market-tools` | Not built | Blocked: needs PJM Data Miner LMP and RPM auction data | -| 5 | `docket-tracker` | Not built | Blocked: needs the PA PUC e-filing site | +| 4 | `pjm-market-tools` | **Complete** | Real PJM zonal LMP 2017-2021 and 10 capacity auctions, from public mirrors. 18 tests, 4 figures | +| 5 | `docket-tracker` | **Built, not validated** | Tool runs on a synthetic fixture; the PA PUC adapter is not written. 18 tests | | 6 | `carbon-aware-der` | **Complete** | Real PJM carbon data, MILP dispatch. 35 tests, 6 figures | **The blocker, stated once.** `pjm.com` and `puc.pa.gov` return HTTP 403 at the -egress proxy of the environment this was built in, so tracks 4 and 5 cannot be -validated against real data. They carry status READMEs describing exactly what -to fetch and the target schema, rather than fabricated ingest code. Tracks 1 -and 6 were unblocked by finding their primary sources mirrored on GitHub, which -is documented per track and in [NOTICE](NOTICE). +egress proxy of the environment this was built in. Tracks 1, 4 and 6 were +unblocked by finding their primary sources redistributed unmodified on GitHub, +which is documented per track and in [NOTICE](NOTICE). Track 5 has no such +copy: the docket tracker is built and tested end to end on a clearly labeled +synthetic fixture, and its Pennsylvania PUC adapter refuses to run rather than +parse a page structure nobody has seen. ## Findings @@ -126,6 +128,21 @@ lands at 20:00 when PV output is zero. Load factor predicts demand-charge impact at only r = -0.59, with solar the outlier precisely because net metering decouples energy from peak. +**PJM market prices (track 4).** Across PJM's 20 load zones, 2017 to 2021, +congestion is a median 81.1% of the locational part of day-ahead LMP, and in +the median zone the largest 10.5% of hours carry half of it. Zone rankings +barely move year to year, and the spread between the highest and lowest zone +mean LMP is $7.23/MWh. On capacity, a history-only forecast of the RTO auction +price missed 2025/26 by 9.33x, and the two most recent auctions cleared at a +FERC-approved cap rather than at anything the history could predict, so no +forecast is published. Both results corroborate the market monitor's published +work rather than discover anything new. + +**Docket tracker (track 5).** A tool, not a study. It reads filings politely +(robots.txt, ten seconds between requests), matches interconnection and tariff +terms, quotes rather than invents its summaries, and writes a weekly digest. +For personal awareness only, not for filing deadlines or legal reliance. + **Carbon-aware DER (track 6).** Which carbon signal a controller reads matters more than how well it optimizes. Scheduling a home battery and EV against PJM's *published average* carbon intensity scores -2.9% on the average yardstick and @@ -181,7 +198,7 @@ gatingfactor/ data/processed/ derived parquet, regenerated by `make report` outputs// figures, CSVs, summaries shared/ paths, units, plotting theme, cached I/O, load shapes - tests/ 155 tests: 135 across the four tracks, 20 on the guards + tests/ 191 tests: 171 across the six tracks, 20 on the guards tools/check_claims.py prose guard: recomputes every quoted figure / one directory per track, each with its own README ``` diff --git a/data/processed/pjm-market-tools/lda_separation.parquet b/data/processed/pjm-market-tools/lda_separation.parquet new file mode 100644 index 0000000..fed443b Binary files /dev/null and b/data/processed/pjm-market-tools/lda_separation.parquet differ diff --git a/data/processed/pjm-market-tools/rank_stability.parquet b/data/processed/pjm-market-tools/rank_stability.parquet new file mode 100644 index 0000000..4c4d3f9 Binary files /dev/null and b/data/processed/pjm-market-tools/rank_stability.parquet differ diff --git a/data/processed/pjm-market-tools/rpm_backtest.parquet b/data/processed/pjm-market-tools/rpm_backtest.parquet new file mode 100644 index 0000000..56b2a22 Binary files /dev/null and b/data/processed/pjm-market-tools/rpm_backtest.parquet differ diff --git a/data/processed/pjm-market-tools/yearly_zone_congestion.parquet b/data/processed/pjm-market-tools/yearly_zone_congestion.parquet new file mode 100644 index 0000000..c31c8bd Binary files /dev/null and b/data/processed/pjm-market-tools/yearly_zone_congestion.parquet differ diff --git a/data/processed/pjm-market-tools/zone_summary.parquet b/data/processed/pjm-market-tools/zone_summary.parquet new file mode 100644 index 0000000..383c652 Binary files /dev/null and b/data/processed/pjm-market-tools/zone_summary.parquet differ diff --git a/data/raw/docket-tracker/synthetic_filings.json b/data/raw/docket-tracker/synthetic_filings.json new file mode 100644 index 0000000..a7e3686 --- /dev/null +++ b/data/raw/docket-tracker/synthetic_filings.json @@ -0,0 +1,69 @@ +{ + "_notice": "SYNTHETIC FIXTURE. Every filing below is invented to exercise the tracker's code paths. Docket numbers use a SYN- prefix that no commission uses, filers are placeholders, and no text is copied from any real filing.", + "filings": [ + { + "docket_number": "SYN-2026-0001", + "filing_date": "2026-11-16", + "title": "Proposed rulemaking on small generator interconnection procedures", + "filer": "Example Commission Staff", + "document_url": "https://example.invalid/SYN-2026-0001/notice.pdf", + "text": "The Commission proposes to revise its small generator interconnection procedures. Comments are due within 60 days of publication. The proposal would add a supplemental review screen for projects that fail the initial screens." + }, + { + "docket_number": "SYN-2026-0001", + "filing_date": "2026-11-16", + "title": "Proposed rulemaking on small generator interconnection procedures", + "filer": "Example Commission Staff", + "document_url": "https://example.invalid/SYN-2026-0001/notice.pdf", + "text": "Duplicate row: same docket, date and title as the row above. The store must keep only one." + }, + { + "docket_number": "SYN-2026-0001", + "filing_date": "2026-11-16", + "title": "Certificate of service", + "filer": "Example Commission Staff", + "document_url": "https://example.invalid/SYN-2026-0001/cos.pdf", + "text": null + }, + { + "docket_number": "SYN-2026-0002", + "filing_date": "2026-11-17", + "title": "Supplement to retail tariff", + "filer": "Example Distribution Company", + "document_url": "https://example.invalid/SYN-2026-0002/supplement.pdf", + "text": null + }, + { + "docket_number": "SYN-2026-0003", + "filing_date": "2026-11-18", + "title": "Comments of an example solar developer", + "filer": "Example Solar Developer LLC", + "document_url": "https://example.invalid/SYN-2026-0003/comments.pdf", + "text": "We support the proposal. Customer-sited DERs should be studied on the feeder they connect to. Hosting capacity maps should be refreshed at least quarterly." + }, + { + "docket_number": "SYN-2026-0004", + "filing_date": "2026-11-19", + "title": "Secretarial letter regarding procedural order", + "filer": "Example Commission Staff", + "document_url": "https://example.invalid/SYN-2026-0004/letter.pdf", + "text": "The order considered under this docket is procedural. Parties shall file under the schedule set out below." + }, + { + "docket_number": "SYN-2026-0005", + "filing_date": "2026-11-20", + "title": "Petition concerning net metering credits", + "filer": "Example Consumer Advocate", + "document_url": "https://example.invalid/SYN-2026-0005/petition.pdf", + "text": "The petitioner asks the Commission to open an investigation. This sentence names no tracked term." + }, + { + "docket_number": "SYN-2026-0006", + "filing_date": "2026-11-09", + "title": "Interconnection queue status report", + "filer": "Example Distribution Company", + "document_url": "https://example.invalid/SYN-2026-0006/report.pdf", + "text": "This interconnection status report covers the prior quarter." + } + ] +} diff --git a/data/raw/pjm-market-tools/rpm_bra_2027_28.csv b/data/raw/pjm-market-tools/rpm_bra_2027_28.csv new file mode 100644 index 0000000..8038dd2 --- /dev/null +++ b/data/raw/pjm-market-tools/rpm_bra_2027_28.csv @@ -0,0 +1,33 @@ +# PJM RPM Base Residual Auction, delivery year 2027/28. +# Source: PJM Inside Lines, "PJM Auction Procures 134,479 MW of Generation +# Resources", Dec. 17, 2025, +# https://insidelines.pjm.com/pjm-auction-procures-134479-mw-of-generation-resources/ +# "The price came in at the FERC-approved cap, $333.44/MW-day (UCAP) for the +# entire PJM footprint". One price for every zone, so every row is lda=RTO. +# pjm.com was not reachable from the build environment; the announcement text +# was read from a public archived copy at github.com/jwt625/PlayGround +# (20260225_grid/references/md/pjm_2027_2028_bra.md, retrieved by that repo +# 2026-03-01). Only the clearing price is taken from it. +# The final zonal price is left blank: the 2027/28 incremental auctions had not +# all run when this file was written. +delivery_year,dy_start,dy_end,zone,lda,bra_price_per_mw_day,final_zonal_capacity_price_per_mw_day,source_url,bra_source_url,final_price_as_of,notes +2027/28,2027-06-01,2028-05-31,AECO,RTO,333.44,,,https://insidelines.pjm.com/pjm-auction-procures-134479-mw-of-generation-resources/,,price at FERC-approved cap +2027/28,2027-06-01,2028-05-31,AEP,RTO,333.44,,,https://insidelines.pjm.com/pjm-auction-procures-134479-mw-of-generation-resources/,,price at FERC-approved cap +2027/28,2027-06-01,2028-05-31,APS,RTO,333.44,,,https://insidelines.pjm.com/pjm-auction-procures-134479-mw-of-generation-resources/,,price at FERC-approved cap +2027/28,2027-06-01,2028-05-31,ATSI,RTO,333.44,,,https://insidelines.pjm.com/pjm-auction-procures-134479-mw-of-generation-resources/,,price at FERC-approved cap +2027/28,2027-06-01,2028-05-31,BGE,RTO,333.44,,,https://insidelines.pjm.com/pjm-auction-procures-134479-mw-of-generation-resources/,,price at FERC-approved cap +2027/28,2027-06-01,2028-05-31,COMED,RTO,333.44,,,https://insidelines.pjm.com/pjm-auction-procures-134479-mw-of-generation-resources/,,price at FERC-approved cap +2027/28,2027-06-01,2028-05-31,DAY,RTO,333.44,,,https://insidelines.pjm.com/pjm-auction-procures-134479-mw-of-generation-resources/,,price at FERC-approved cap +2027/28,2027-06-01,2028-05-31,DEOK,RTO,333.44,,,https://insidelines.pjm.com/pjm-auction-procures-134479-mw-of-generation-resources/,,price at FERC-approved cap +2027/28,2027-06-01,2028-05-31,DOM,RTO,333.44,,,https://insidelines.pjm.com/pjm-auction-procures-134479-mw-of-generation-resources/,,price at FERC-approved cap +2027/28,2027-06-01,2028-05-31,DPL,RTO,333.44,,,https://insidelines.pjm.com/pjm-auction-procures-134479-mw-of-generation-resources/,,price at FERC-approved cap +2027/28,2027-06-01,2028-05-31,DUQ,RTO,333.44,,,https://insidelines.pjm.com/pjm-auction-procures-134479-mw-of-generation-resources/,,price at FERC-approved cap +2027/28,2027-06-01,2028-05-31,EKPC,RTO,333.44,,,https://insidelines.pjm.com/pjm-auction-procures-134479-mw-of-generation-resources/,,price at FERC-approved cap +2027/28,2027-06-01,2028-05-31,JCPL,RTO,333.44,,,https://insidelines.pjm.com/pjm-auction-procures-134479-mw-of-generation-resources/,,price at FERC-approved cap +2027/28,2027-06-01,2028-05-31,METED,RTO,333.44,,,https://insidelines.pjm.com/pjm-auction-procures-134479-mw-of-generation-resources/,,price at FERC-approved cap +2027/28,2027-06-01,2028-05-31,PECO,RTO,333.44,,,https://insidelines.pjm.com/pjm-auction-procures-134479-mw-of-generation-resources/,,price at FERC-approved cap +2027/28,2027-06-01,2028-05-31,PENELEC,RTO,333.44,,,https://insidelines.pjm.com/pjm-auction-procures-134479-mw-of-generation-resources/,,price at FERC-approved cap +2027/28,2027-06-01,2028-05-31,PEPCO,RTO,333.44,,,https://insidelines.pjm.com/pjm-auction-procures-134479-mw-of-generation-resources/,,price at FERC-approved cap +2027/28,2027-06-01,2028-05-31,PPL,RTO,333.44,,,https://insidelines.pjm.com/pjm-auction-procures-134479-mw-of-generation-resources/,,price at FERC-approved cap +2027/28,2027-06-01,2028-05-31,PSEG,RTO,333.44,,,https://insidelines.pjm.com/pjm-auction-procures-134479-mw-of-generation-resources/,,price at FERC-approved cap +2027/28,2027-06-01,2028-05-31,RECO,RTO,333.44,,,https://insidelines.pjm.com/pjm-auction-procures-134479-mw-of-generation-resources/,,price at FERC-approved cap diff --git a/data/raw/pjm-market-tools/rpm_capacity_prices.csv b/data/raw/pjm-market-tools/rpm_capacity_prices.csv new file mode 100644 index 0000000..0125ce6 --- /dev/null +++ b/data/raw/pjm-market-tools/rpm_capacity_prices.csv @@ -0,0 +1,211 @@ +# PJM RPM capacity prices: BRA Resource Clearing Prices + Final Zonal Capacity +# Prices, one row per (delivery_year, zone). +# +# GENERATED FILE - do not edit by hand. Regenerate with: +# just -f data/pjm/capacity/rpm/Justfile convert +# The source of record is the per-DY markdown intermediates under +# sources/rpm_YYYY_YY.md (one citation header + a per-zone price table each). +# To add or revise a DY, edit the intermediate and re-run convert; review the +# git diff of this CSV before committing. +# +# Sources (recorded per DY in each intermediate header and copied to the +# source_url / bra_source_url columns below): +# - source_url: " Final Zonal UCAP Obligations, Capacity Prices and CTR +# Credit Rates" XLS (for DY 2023/24+ the FZSF-FZCP sheet ships inside the +# " 3IA Results" XLSX) -> final_zonal_capacity_price_per_mw_day. +# - bra_source_url: " Base Residual Auction Results" XLS(X) +# -> bra_price_per_mw_day (per LDA; copied to each member zone). +# +# As-of: the BRA clears once, so the BRA price's as-of is the fixed BRA posting +# date implied by the DY and is not tracked in its own column; only the Final +# Zonal price (which drifts as IAs settle) carries a final_price_as_of column. +# +# Zones are canonical labels (see data/pjm/README.md crosswalk). UGI is not +# separately reported (inside the PPL LDA); OVEC is excluded (no retail LSE +# load). lda is the most-specific LDA that cleared separately for the zone that +# DY (a per-row attribute; zones at the system price get lda=RTO). +# +# IA true-ups: when an Incremental Auction changes a DY's Final Zonal price, +# update the intermediate, bump final_price_as_of, re-run convert. Git history +# is the revision trail. +delivery_year,dy_start,dy_end,zone,lda,bra_price_per_mw_day,final_zonal_capacity_price_per_mw_day,source_url,bra_source_url,final_price_as_of,notes +2018/19,2018-06-01,2019-05-31,AECO,EMAAC,225.42,225.914062,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-base-residual-auction-results-xls.xls,2024-12-12,CP resource clearing price (CP/base transition DY) +2018/19,2018-06-01,2019-05-31,AEP,RTO,164.77,164.704537,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-base-residual-auction-results-xls.xls,2024-12-12,CP resource clearing price (CP/base transition DY) +2018/19,2018-06-01,2019-05-31,APS,RTO,164.77,164.704537,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-base-residual-auction-results-xls.xls,2024-12-12,CP resource clearing price (CP/base transition DY) +2018/19,2018-06-01,2019-05-31,ATSI,RTO,164.77,164.704537,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-base-residual-auction-results-xls.xls,2024-12-12,CP resource clearing price (CP/base transition DY) +2018/19,2018-06-01,2019-05-31,BGE,RTO,164.77,158.203169,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-base-residual-auction-results-xls.xls,2024-12-12,CP resource clearing price (CP/base transition DY) +2018/19,2018-06-01,2019-05-31,COMED,COMED,215.00,213.913458,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-base-residual-auction-results-xls.xls,2024-12-12,CP resource clearing price (CP/base transition DY) +2018/19,2018-06-01,2019-05-31,DAY,RTO,164.77,164.704537,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-base-residual-auction-results-xls.xls,2024-12-12,CP resource clearing price (CP/base transition DY) +2018/19,2018-06-01,2019-05-31,DEOK,RTO,164.77,164.704537,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-base-residual-auction-results-xls.xls,2024-12-12,CP resource clearing price (CP/base transition DY) +2018/19,2018-06-01,2019-05-31,DOM,RTO,164.77,164.704537,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-base-residual-auction-results-xls.xls,2024-12-12,CP resource clearing price (CP/base transition DY) +2018/19,2018-06-01,2019-05-31,DPL,EMAAC,225.42,226.222949,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-base-residual-auction-results-xls.xls,2024-12-12,CP resource clearing price (CP/base transition DY) +2018/19,2018-06-01,2019-05-31,DUQ,RTO,164.77,164.704537,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-base-residual-auction-results-xls.xls,2024-12-12,CP resource clearing price (CP/base transition DY) +2018/19,2018-06-01,2019-05-31,EKPC,RTO,164.77,164.704537,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-base-residual-auction-results-xls.xls,2024-12-12,CP resource clearing price (CP/base transition DY) +2018/19,2018-06-01,2019-05-31,JCPL,EMAAC,225.42,225.914062,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-base-residual-auction-results-xls.xls,2024-12-12,CP resource clearing price (CP/base transition DY) +2018/19,2018-06-01,2019-05-31,METED,RTO,164.77,164.704537,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-base-residual-auction-results-xls.xls,2024-12-12,CP resource clearing price (CP/base transition DY) +2018/19,2018-06-01,2019-05-31,PECO,EMAAC,225.42,225.914062,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-base-residual-auction-results-xls.xls,2024-12-12,CP resource clearing price (CP/base transition DY) +2018/19,2018-06-01,2019-05-31,PENELEC,RTO,164.77,164.704537,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-base-residual-auction-results-xls.xls,2024-12-12,CP resource clearing price (CP/base transition DY) +2018/19,2018-06-01,2019-05-31,PEPCO,RTO,164.77,156.904630,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-base-residual-auction-results-xls.xls,2024-12-12,CP resource clearing price (CP/base transition DY) +2018/19,2018-06-01,2019-05-31,PPL,RTO,164.77,155.114657,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-base-residual-auction-results-xls.xls,2024-12-12,CP resource clearing price (CP/base transition DY) +2018/19,2018-06-01,2019-05-31,PSEG,EMAAC,225.42,225.914062,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-base-residual-auction-results-xls.xls,2024-12-12,CP resource clearing price (CP/base transition DY) +2018/19,2018-06-01,2019-05-31,RECO,EMAAC,225.42,225.914062,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2018-2019-base-residual-auction-results-xls.xls,2024-12-12,CP resource clearing price (CP/base transition DY) +2019/20,2019-06-01,2020-05-31,AECO,EMAAC,119.77,117.924934,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020/2019-2020-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xls,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020-base-residual-auction-results-xls.xls,2024-06-14,CP resource clearing price (CP/base transition DY) +2019/20,2019-06-01,2020-05-31,AEP,RTO,100.00,98.074853,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020/2019-2020-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xls,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020-base-residual-auction-results-xls.xls,2024-06-14,CP resource clearing price (CP/base transition DY) +2019/20,2019-06-01,2020-05-31,APS,RTO,100.00,98.074853,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020/2019-2020-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xls,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020-base-residual-auction-results-xls.xls,2024-06-14,CP resource clearing price (CP/base transition DY) +2019/20,2019-06-01,2020-05-31,ATSI,RTO,100.00,98.074853,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020/2019-2020-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xls,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020-base-residual-auction-results-xls.xls,2024-06-14,CP resource clearing price (CP/base transition DY) +2019/20,2019-06-01,2020-05-31,BGE,BGE,100.30,97.222304,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020/2019-2020-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xls,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020-base-residual-auction-results-xls.xls,2024-06-14,CP resource clearing price (CP/base transition DY); BGE constrained LDA this DY +2019/20,2019-06-01,2020-05-31,COMED,COMED,202.77,195.994360,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020/2019-2020-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xls,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020-base-residual-auction-results-xls.xls,2024-06-14,CP resource clearing price (CP/base transition DY) +2019/20,2019-06-01,2020-05-31,DAY,RTO,100.00,98.074853,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020/2019-2020-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xls,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020-base-residual-auction-results-xls.xls,2024-06-14,CP resource clearing price (CP/base transition DY) +2019/20,2019-06-01,2020-05-31,DEOK,RTO,100.00,98.074853,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020/2019-2020-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xls,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020-base-residual-auction-results-xls.xls,2024-06-14,CP resource clearing price (CP/base transition DY) +2019/20,2019-06-01,2020-05-31,DOM,RTO,100.00,98.074853,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020/2019-2020-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xls,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020-base-residual-auction-results-xls.xls,2024-06-14,CP resource clearing price (CP/base transition DY) +2019/20,2019-06-01,2020-05-31,DPL,EMAAC,119.77,117.924934,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020/2019-2020-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xls,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020-base-residual-auction-results-xls.xls,2024-06-14,CP resource clearing price (CP/base transition DY) +2019/20,2019-06-01,2020-05-31,DUQ,RTO,100.00,98.074853,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020/2019-2020-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xls,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020-base-residual-auction-results-xls.xls,2024-06-14,CP resource clearing price (CP/base transition DY) +2019/20,2019-06-01,2020-05-31,EKPC,RTO,100.00,98.074853,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020/2019-2020-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xls,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020-base-residual-auction-results-xls.xls,2024-06-14,CP resource clearing price (CP/base transition DY) +2019/20,2019-06-01,2020-05-31,JCPL,EMAAC,119.77,117.924934,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020/2019-2020-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xls,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020-base-residual-auction-results-xls.xls,2024-06-14,CP resource clearing price (CP/base transition DY) +2019/20,2019-06-01,2020-05-31,METED,RTO,100.00,98.074853,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020/2019-2020-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xls,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020-base-residual-auction-results-xls.xls,2024-06-14,CP resource clearing price (CP/base transition DY) +2019/20,2019-06-01,2020-05-31,PECO,EMAAC,119.77,117.924934,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020/2019-2020-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xls,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020-base-residual-auction-results-xls.xls,2024-06-14,CP resource clearing price (CP/base transition DY) +2019/20,2019-06-01,2020-05-31,PENELEC,RTO,100.00,98.074853,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020/2019-2020-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xls,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020-base-residual-auction-results-xls.xls,2024-06-14,CP resource clearing price (CP/base transition DY) +2019/20,2019-06-01,2020-05-31,PEPCO,RTO,100.00,92.895932,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020/2019-2020-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xls,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020-base-residual-auction-results-xls.xls,2024-06-14,CP resource clearing price (CP/base transition DY) +2019/20,2019-06-01,2020-05-31,PPL,RTO,100.00,98.074853,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020/2019-2020-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xls,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020-base-residual-auction-results-xls.xls,2024-06-14,CP resource clearing price (CP/base transition DY) +2019/20,2019-06-01,2020-05-31,PSEG,EMAAC,119.77,118.175493,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020/2019-2020-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xls,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020-base-residual-auction-results-xls.xls,2024-06-14,CP resource clearing price (CP/base transition DY) +2019/20,2019-06-01,2020-05-31,RECO,EMAAC,119.77,117.924934,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020/2019-2020-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xls,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2019-2020-base-residual-auction-results-xls.xls,2024-06-14,CP resource clearing price (CP/base transition DY) +2020/21,2020-06-01,2021-05-31,AECO,EMAAC,187.87,187.128703,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021/2020-2021-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021-base-residual-auction-results.xlsx,2024-06-14, +2020/21,2020-06-01,2021-05-31,AEP,RTO,76.53,77.308670,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021/2020-2021-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021-base-residual-auction-results.xlsx,2024-06-14, +2020/21,2020-06-01,2021-05-31,APS,RTO,76.53,77.308670,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021/2020-2021-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021-base-residual-auction-results.xlsx,2024-06-14, +2020/21,2020-06-01,2021-05-31,ATSI,RTO,76.53,77.308670,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021/2020-2021-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021-base-residual-auction-results.xlsx,2024-06-14, +2020/21,2020-06-01,2021-05-31,BGE,MAAC,86.04,86.980662,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021/2020-2021-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021-base-residual-auction-results.xlsx,2024-06-14, +2020/21,2020-06-01,2021-05-31,COMED,COMED,188.12,190.038183,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021/2020-2021-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021-base-residual-auction-results.xlsx,2024-06-14, +2020/21,2020-06-01,2021-05-31,DAY,RTO,76.53,77.308670,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021/2020-2021-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021-base-residual-auction-results.xlsx,2024-06-14, +2020/21,2020-06-01,2021-05-31,DEOK,DEOK,130.00,128.734584,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021/2020-2021-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021-base-residual-auction-results.xlsx,2024-06-14, +2020/21,2020-06-01,2021-05-31,DOM,RTO,76.53,77.308670,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021/2020-2021-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021-base-residual-auction-results.xlsx,2024-06-14, +2020/21,2020-06-01,2021-05-31,DPL,EMAAC,187.87,187.128703,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021/2020-2021-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021-base-residual-auction-results.xlsx,2024-06-14, +2020/21,2020-06-01,2021-05-31,DUQ,RTO,76.53,77.308670,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021/2020-2021-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021-base-residual-auction-results.xlsx,2024-06-14, +2020/21,2020-06-01,2021-05-31,EKPC,RTO,76.53,77.308670,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021/2020-2021-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021-base-residual-auction-results.xlsx,2024-06-14, +2020/21,2020-06-01,2021-05-31,JCPL,EMAAC,187.87,187.128703,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021/2020-2021-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021-base-residual-auction-results.xlsx,2024-06-14, +2020/21,2020-06-01,2021-05-31,METED,MAAC,86.04,86.980662,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021/2020-2021-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021-base-residual-auction-results.xlsx,2024-06-14, +2020/21,2020-06-01,2021-05-31,PECO,EMAAC,187.87,187.128703,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021/2020-2021-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021-base-residual-auction-results.xlsx,2024-06-14, +2020/21,2020-06-01,2021-05-31,PENELEC,MAAC,86.04,86.980662,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021/2020-2021-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021-base-residual-auction-results.xlsx,2024-06-14, +2020/21,2020-06-01,2021-05-31,PEPCO,MAAC,86.04,86.980662,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021/2020-2021-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021-base-residual-auction-results.xlsx,2024-06-14, +2020/21,2020-06-01,2021-05-31,PPL,MAAC,86.04,86.980662,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021/2020-2021-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021-base-residual-auction-results.xlsx,2024-06-14, +2020/21,2020-06-01,2021-05-31,PSEG,EMAAC,187.87,187.128703,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021/2020-2021-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021-base-residual-auction-results.xlsx,2024-06-14, +2020/21,2020-06-01,2021-05-31,RECO,EMAAC,187.87,187.128703,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021/2020-2021-final-zonal-ucap-obligations-capacity-prices-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2020-2021-base-residual-auction-results.xlsx,2024-06-14, +2021/22,2021-06-01,2022-05-31,AECO,EMAAC,165.73,167.684989,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-final-zonal-ucap-obligations-capacity-prices-and-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-base-residual-auction-results.xlsx,2024-06-14, +2021/22,2021-06-01,2022-05-31,AEP,RTO,140.00,142.164063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-final-zonal-ucap-obligations-capacity-prices-and-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-base-residual-auction-results.xlsx,2024-06-14, +2021/22,2021-06-01,2022-05-31,APS,RTO,140.00,142.164063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-final-zonal-ucap-obligations-capacity-prices-and-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-base-residual-auction-results.xlsx,2024-06-14, +2021/22,2021-06-01,2022-05-31,ATSI,ATSI,171.33,167.988480,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-final-zonal-ucap-obligations-capacity-prices-and-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-base-residual-auction-results.xlsx,2024-06-14, +2021/22,2021-06-01,2022-05-31,BGE,BGE,200.30,204.459034,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-final-zonal-ucap-obligations-capacity-prices-and-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-base-residual-auction-results.xlsx,2024-06-14,BGE constrained LDA this DY +2021/22,2021-06-01,2022-05-31,COMED,COMED,195.55,198.430388,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-final-zonal-ucap-obligations-capacity-prices-and-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-base-residual-auction-results.xlsx,2024-06-14, +2021/22,2021-06-01,2022-05-31,DAY,RTO,140.00,142.164063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-final-zonal-ucap-obligations-capacity-prices-and-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-base-residual-auction-results.xlsx,2024-06-14, +2021/22,2021-06-01,2022-05-31,DEOK,RTO,140.00,142.164063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-final-zonal-ucap-obligations-capacity-prices-and-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-base-residual-auction-results.xlsx,2024-06-14, +2021/22,2021-06-01,2022-05-31,DOM,RTO,140.00,142.164063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-final-zonal-ucap-obligations-capacity-prices-and-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-base-residual-auction-results.xlsx,2024-06-14, +2021/22,2021-06-01,2022-05-31,DPL,EMAAC,165.73,167.684989,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-final-zonal-ucap-obligations-capacity-prices-and-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-base-residual-auction-results.xlsx,2024-06-14, +2021/22,2021-06-01,2022-05-31,DUQ,RTO,140.00,142.164063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-final-zonal-ucap-obligations-capacity-prices-and-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-base-residual-auction-results.xlsx,2024-06-14, +2021/22,2021-06-01,2022-05-31,EKPC,RTO,140.00,142.164063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-final-zonal-ucap-obligations-capacity-prices-and-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-base-residual-auction-results.xlsx,2024-06-14, +2021/22,2021-06-01,2022-05-31,JCPL,EMAAC,165.73,167.684989,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-final-zonal-ucap-obligations-capacity-prices-and-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-base-residual-auction-results.xlsx,2024-06-14, +2021/22,2021-06-01,2022-05-31,METED,RTO,140.00,142.164063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-final-zonal-ucap-obligations-capacity-prices-and-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-base-residual-auction-results.xlsx,2024-06-14, +2021/22,2021-06-01,2022-05-31,PECO,EMAAC,165.73,167.684989,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-final-zonal-ucap-obligations-capacity-prices-and-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-base-residual-auction-results.xlsx,2024-06-14, +2021/22,2021-06-01,2022-05-31,PENELEC,RTO,140.00,142.164063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-final-zonal-ucap-obligations-capacity-prices-and-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-base-residual-auction-results.xlsx,2024-06-14, +2021/22,2021-06-01,2022-05-31,PEPCO,RTO,140.00,142.164063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-final-zonal-ucap-obligations-capacity-prices-and-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-base-residual-auction-results.xlsx,2024-06-14, +2021/22,2021-06-01,2022-05-31,PPL,RTO,140.00,142.164063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-final-zonal-ucap-obligations-capacity-prices-and-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-base-residual-auction-results.xlsx,2024-06-14, +2021/22,2021-06-01,2022-05-31,PSEG,PSEG,204.29,209.886995,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-final-zonal-ucap-obligations-capacity-prices-and-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-base-residual-auction-results.xlsx,2024-06-14, +2021/22,2021-06-01,2022-05-31,RECO,EMAAC,165.73,167.684989,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-final-zonal-ucap-obligations-capacity-prices-and-ctr-credit-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2021-2022/2021-2022-base-residual-auction-results.xlsx,2024-06-14, +2022/23,2022-06-01,2023-05-31,AECO,EMAAC,97.86,98.192272,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-final-zonal-ucap-obligations-capacity-prices-and-ctr-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-base-residual-auction-results.xlsx,2024-06-14, +2022/23,2022-06-01,2023-05-31,AEP,RTO,50.00,50.048666,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-final-zonal-ucap-obligations-capacity-prices-and-ctr-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-base-residual-auction-results.xlsx,2024-06-14, +2022/23,2022-06-01,2023-05-31,APS,RTO,50.00,50.048666,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-final-zonal-ucap-obligations-capacity-prices-and-ctr-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-base-residual-auction-results.xlsx,2024-06-14, +2022/23,2022-06-01,2023-05-31,ATSI,RTO,50.00,50.048666,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-final-zonal-ucap-obligations-capacity-prices-and-ctr-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-base-residual-auction-results.xlsx,2024-06-14, +2022/23,2022-06-01,2023-05-31,BGE,BGE,126.50,125.120983,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-final-zonal-ucap-obligations-capacity-prices-and-ctr-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-base-residual-auction-results.xlsx,2024-06-14,BGE constrained LDA this DY +2022/23,2022-06-01,2023-05-31,COMED,COMED,68.96,67.404065,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-final-zonal-ucap-obligations-capacity-prices-and-ctr-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-base-residual-auction-results.xlsx,2024-06-14, +2022/23,2022-06-01,2023-05-31,DAY,RTO,50.00,50.048666,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-final-zonal-ucap-obligations-capacity-prices-and-ctr-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-base-residual-auction-results.xlsx,2024-06-14, +2022/23,2022-06-01,2023-05-31,DEOK,DEOK,71.69,72.581461,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-final-zonal-ucap-obligations-capacity-prices-and-ctr-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-base-residual-auction-results.xlsx,2024-06-14, +2022/23,2022-06-01,2023-05-31,DOM,RTO,50.00,50.048666,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-final-zonal-ucap-obligations-capacity-prices-and-ctr-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-base-residual-auction-results.xlsx,2024-06-14, +2022/23,2022-06-01,2023-05-31,DPL,EMAAC,97.86,98.192272,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-final-zonal-ucap-obligations-capacity-prices-and-ctr-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-base-residual-auction-results.xlsx,2024-06-14, +2022/23,2022-06-01,2023-05-31,DUQ,RTO,50.00,50.048666,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-final-zonal-ucap-obligations-capacity-prices-and-ctr-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-base-residual-auction-results.xlsx,2024-06-14, +2022/23,2022-06-01,2023-05-31,EKPC,RTO,50.00,50.048666,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-final-zonal-ucap-obligations-capacity-prices-and-ctr-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-base-residual-auction-results.xlsx,2024-06-14, +2022/23,2022-06-01,2023-05-31,JCPL,EMAAC,97.86,98.192272,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-final-zonal-ucap-obligations-capacity-prices-and-ctr-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-base-residual-auction-results.xlsx,2024-06-14, +2022/23,2022-06-01,2023-05-31,METED,MAAC,95.79,96.612461,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-final-zonal-ucap-obligations-capacity-prices-and-ctr-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-base-residual-auction-results.xlsx,2024-06-14, +2022/23,2022-06-01,2023-05-31,PECO,EMAAC,97.86,98.192272,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-final-zonal-ucap-obligations-capacity-prices-and-ctr-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-base-residual-auction-results.xlsx,2024-06-14, +2022/23,2022-06-01,2023-05-31,PENELEC,MAAC,95.79,96.612461,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-final-zonal-ucap-obligations-capacity-prices-and-ctr-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-base-residual-auction-results.xlsx,2024-06-14, +2022/23,2022-06-01,2023-05-31,PEPCO,MAAC,95.79,96.147794,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-final-zonal-ucap-obligations-capacity-prices-and-ctr-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-base-residual-auction-results.xlsx,2024-06-14, +2022/23,2022-06-01,2023-05-31,PPL,MAAC,95.79,96.612461,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-final-zonal-ucap-obligations-capacity-prices-and-ctr-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-base-residual-auction-results.xlsx,2024-06-14, +2022/23,2022-06-01,2023-05-31,PSEG,EMAAC,97.86,98.192272,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-final-zonal-ucap-obligations-capacity-prices-and-ctr-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-base-residual-auction-results.xlsx,2024-06-14, +2022/23,2022-06-01,2023-05-31,RECO,EMAAC,97.86,98.192272,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-final-zonal-ucap-obligations-capacity-prices-and-ctr-rates.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2022-2023/2022-2023-base-residual-auction-results.xlsx,2024-06-14, +2023/24,2023-06-01,2024-05-31,AECO,MAAC,49.49,51.110953,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-base-residual-auction-results.xlsx,2024-06-14, +2023/24,2023-06-01,2024-05-31,AEP,RTO,34.13,34.179865,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-base-residual-auction-results.xlsx,2024-06-14, +2023/24,2023-06-01,2024-05-31,APS,RTO,34.13,34.179865,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-base-residual-auction-results.xlsx,2024-06-14, +2023/24,2023-06-01,2024-05-31,ATSI,RTO,34.13,34.179865,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-base-residual-auction-results.xlsx,2024-06-14, +2023/24,2023-06-01,2024-05-31,BGE,BGE,69.95,72.147265,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-base-residual-auction-results.xlsx,2024-06-14,BGE constrained LDA this DY +2023/24,2023-06-01,2024-05-31,COMED,RTO,34.13,34.179865,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-base-residual-auction-results.xlsx,2024-06-14, +2023/24,2023-06-01,2024-05-31,DAY,RTO,34.13,34.179865,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-base-residual-auction-results.xlsx,2024-06-14, +2023/24,2023-06-01,2024-05-31,DEOK,RTO,34.13,34.179865,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-base-residual-auction-results.xlsx,2024-06-14, +2023/24,2023-06-01,2024-05-31,DOM,RTO,34.13,34.179865,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-base-residual-auction-results.xlsx,2024-06-14, +2023/24,2023-06-01,2024-05-31,DPL,MAAC,49.49,57.140698,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-base-residual-auction-results.xlsx,2024-06-14,DPL-S sub-LDA cleared separately at $69.95; zone assigned to containing LDA +2023/24,2023-06-01,2024-05-31,DUQ,RTO,34.13,34.179865,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-base-residual-auction-results.xlsx,2024-06-14, +2023/24,2023-06-01,2024-05-31,EKPC,RTO,34.13,34.179865,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-base-residual-auction-results.xlsx,2024-06-14, +2023/24,2023-06-01,2024-05-31,JCPL,MAAC,49.49,51.110953,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-base-residual-auction-results.xlsx,2024-06-14, +2023/24,2023-06-01,2024-05-31,METED,MAAC,49.49,49.582878,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-base-residual-auction-results.xlsx,2024-06-14, +2023/24,2023-06-01,2024-05-31,PECO,MAAC,49.49,51.110953,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-base-residual-auction-results.xlsx,2024-06-14, +2023/24,2023-06-01,2024-05-31,PENELEC,MAAC,49.49,49.582878,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-base-residual-auction-results.xlsx,2024-06-14, +2023/24,2023-06-01,2024-05-31,PEPCO,MAAC,49.49,49.582878,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-base-residual-auction-results.xlsx,2024-06-14, +2023/24,2023-06-01,2024-05-31,PPL,MAAC,49.49,49.582878,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-base-residual-auction-results.xlsx,2024-06-14, +2023/24,2023-06-01,2024-05-31,PSEG,MAAC,49.49,51.110953,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-base-residual-auction-results.xlsx,2024-06-14, +2023/24,2023-06-01,2024-05-31,RECO,MAAC,49.49,51.110953,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2023-2024/2023-2024-base-residual-auction-results.xlsx,2024-06-14, +2024/25,2024-06-01,2025-05-31,AECO,EMAAC,53.60,57.357147,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-base-residual-auction-results.xlsx,2024-12-12, +2024/25,2024-06-01,2025-05-31,AEP,RTO,28.92,29.504571,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-base-residual-auction-results.xlsx,2024-12-12, +2024/25,2024-06-01,2025-05-31,APS,RTO,28.92,29.504571,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-base-residual-auction-results.xlsx,2024-12-12, +2024/25,2024-06-01,2025-05-31,ATSI,RTO,28.92,29.504571,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-base-residual-auction-results.xlsx,2024-12-12, +2024/25,2024-06-01,2025-05-31,BGE,BGE,73.00,76.755373,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-base-residual-auction-results.xlsx,2024-12-12,BGE constrained LDA this DY +2024/25,2024-06-01,2025-05-31,COMED,RTO,28.92,29.504571,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-base-residual-auction-results.xlsx,2024-12-12, +2024/25,2024-06-01,2025-05-31,DAY,RTO,28.92,29.504571,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-base-residual-auction-results.xlsx,2024-12-12, +2024/25,2024-06-01,2025-05-31,DEOK,DEOK,96.24,98.478609,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-base-residual-auction-results.xlsx,2024-12-12, +2024/25,2024-06-01,2025-05-31,DOM,RTO,28.92,29.504571,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-base-residual-auction-results.xlsx,2024-12-12, +2024/25,2024-06-01,2025-05-31,DPL,EMAAC,53.60,169.105126,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-base-residual-auction-results.xlsx,2024-12-12,DPL-S sub-LDA cleared separately at $426.17; final zonal price blends sub-LDA pricing +2024/25,2024-06-01,2025-05-31,DUQ,RTO,28.92,29.504571,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-base-residual-auction-results.xlsx,2024-12-12, +2024/25,2024-06-01,2025-05-31,EKPC,RTO,28.92,29.504571,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-base-residual-auction-results.xlsx,2024-12-12, +2024/25,2024-06-01,2025-05-31,JCPL,EMAAC,53.60,57.357147,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-base-residual-auction-results.xlsx,2024-12-12, +2024/25,2024-06-01,2025-05-31,METED,MAAC,49.49,50.221051,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-base-residual-auction-results.xlsx,2024-12-12, +2024/25,2024-06-01,2025-05-31,PECO,EMAAC,53.60,57.357147,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-base-residual-auction-results.xlsx,2024-12-12, +2024/25,2024-06-01,2025-05-31,PENELEC,MAAC,49.49,50.221051,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-base-residual-auction-results.xlsx,2024-12-12, +2024/25,2024-06-01,2025-05-31,PEPCO,MAAC,49.49,50.221051,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-base-residual-auction-results.xlsx,2024-12-12, +2024/25,2024-06-01,2025-05-31,PPL,MAAC,49.49,50.221051,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-base-residual-auction-results.xlsx,2024-12-12, +2024/25,2024-06-01,2025-05-31,PSEG,EMAAC,53.60,57.357147,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-base-residual-auction-results.xlsx,2024-12-12, +2024/25,2024-06-01,2025-05-31,RECO,EMAAC,53.60,57.357147,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2024-2025/2024-2025-base-residual-auction-results.xlsx,2024-12-12, +2025/26,2025-06-01,2026-05-31,AECO,RTO,269.92,270.432933,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-base-residual-auction-results.xlsx,2025-03-11, +2025/26,2025-06-01,2026-05-31,AEP,RTO,269.92,270.432933,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-base-residual-auction-results.xlsx,2025-03-11, +2025/26,2025-06-01,2026-05-31,APS,RTO,269.92,270.432933,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-base-residual-auction-results.xlsx,2025-03-11, +2025/26,2025-06-01,2026-05-31,ATSI,RTO,269.92,270.432933,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-base-residual-auction-results.xlsx,2025-03-11, +2025/26,2025-06-01,2026-05-31,BGE,BGE,466.35,471.328782,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-base-residual-auction-results.xlsx,2025-03-11,BGE constrained LDA this DY +2025/26,2025-06-01,2026-05-31,COMED,RTO,269.92,270.432933,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-base-residual-auction-results.xlsx,2025-03-11, +2025/26,2025-06-01,2026-05-31,DAY,RTO,269.92,270.432933,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-base-residual-auction-results.xlsx,2025-03-11, +2025/26,2025-06-01,2026-05-31,DEOK,RTO,269.92,270.432933,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-base-residual-auction-results.xlsx,2025-03-11, +2025/26,2025-06-01,2026-05-31,DOM,DOM,444.26,446.810272,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-base-residual-auction-results.xlsx,2025-03-11,DOM constrained LDA this DY +2025/26,2025-06-01,2026-05-31,DPL,RTO,269.92,270.432933,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-base-residual-auction-results.xlsx,2025-03-11, +2025/26,2025-06-01,2026-05-31,DUQ,RTO,269.92,270.432933,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-base-residual-auction-results.xlsx,2025-03-11, +2025/26,2025-06-01,2026-05-31,EKPC,RTO,269.92,270.432933,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-base-residual-auction-results.xlsx,2025-03-11, +2025/26,2025-06-01,2026-05-31,JCPL,RTO,269.92,270.432933,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-base-residual-auction-results.xlsx,2025-03-11, +2025/26,2025-06-01,2026-05-31,METED,RTO,269.92,270.432933,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-base-residual-auction-results.xlsx,2025-03-11, +2025/26,2025-06-01,2026-05-31,PECO,RTO,269.92,270.432933,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-base-residual-auction-results.xlsx,2025-03-11, +2025/26,2025-06-01,2026-05-31,PENELEC,RTO,269.92,270.432933,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-base-residual-auction-results.xlsx,2025-03-11, +2025/26,2025-06-01,2026-05-31,PEPCO,RTO,269.92,270.432933,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-base-residual-auction-results.xlsx,2025-03-11, +2025/26,2025-06-01,2026-05-31,PPL,RTO,269.92,270.432933,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-base-residual-auction-results.xlsx,2025-03-11, +2025/26,2025-06-01,2026-05-31,PSEG,RTO,269.92,270.432933,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-base-residual-auction-results.xlsx,2025-03-11, +2025/26,2025-06-01,2026-05-31,RECO,RTO,269.92,270.432933,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2025-2026/2025-2026-base-residual-auction-results.xlsx,2025-03-11, +2026/27,2026-06-01,2027-05-31,AECO,RTO,329.17,329.077063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-bra-results.xlsx,2026-03-09,No LDA constraints bound; all zones at system price +2026/27,2026-06-01,2027-05-31,AEP,RTO,329.17,329.077063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-bra-results.xlsx,2026-03-09,No LDA constraints bound; all zones at system price +2026/27,2026-06-01,2027-05-31,APS,RTO,329.17,329.077063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-bra-results.xlsx,2026-03-09,No LDA constraints bound; all zones at system price +2026/27,2026-06-01,2027-05-31,ATSI,RTO,329.17,329.077063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-bra-results.xlsx,2026-03-09,No LDA constraints bound; all zones at system price +2026/27,2026-06-01,2027-05-31,BGE,RTO,329.17,329.077063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-bra-results.xlsx,2026-03-09,No LDA constraints bound; all zones at system price +2026/27,2026-06-01,2027-05-31,COMED,RTO,329.17,329.077063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-bra-results.xlsx,2026-03-09,No LDA constraints bound; all zones at system price +2026/27,2026-06-01,2027-05-31,DAY,RTO,329.17,329.077063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-bra-results.xlsx,2026-03-09,No LDA constraints bound; all zones at system price +2026/27,2026-06-01,2027-05-31,DEOK,RTO,329.17,329.077063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-bra-results.xlsx,2026-03-09,No LDA constraints bound; all zones at system price +2026/27,2026-06-01,2027-05-31,DOM,RTO,329.17,329.077063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-bra-results.xlsx,2026-03-09,No LDA constraints bound; all zones at system price +2026/27,2026-06-01,2027-05-31,DPL,RTO,329.17,329.077063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-bra-results.xlsx,2026-03-09,No LDA constraints bound; all zones at system price +2026/27,2026-06-01,2027-05-31,DUQ,RTO,329.17,329.077063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-bra-results.xlsx,2026-03-09,No LDA constraints bound; all zones at system price +2026/27,2026-06-01,2027-05-31,EKPC,RTO,329.17,329.077063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-bra-results.xlsx,2026-03-09,No LDA constraints bound; all zones at system price +2026/27,2026-06-01,2027-05-31,JCPL,RTO,329.17,329.077063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-bra-results.xlsx,2026-03-09,No LDA constraints bound; all zones at system price +2026/27,2026-06-01,2027-05-31,METED,RTO,329.17,329.077063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-bra-results.xlsx,2026-03-09,No LDA constraints bound; all zones at system price +2026/27,2026-06-01,2027-05-31,PECO,RTO,329.17,329.077063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-bra-results.xlsx,2026-03-09,No LDA constraints bound; all zones at system price +2026/27,2026-06-01,2027-05-31,PENELEC,RTO,329.17,329.077063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-bra-results.xlsx,2026-03-09,No LDA constraints bound; all zones at system price +2026/27,2026-06-01,2027-05-31,PEPCO,RTO,329.17,329.077063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-bra-results.xlsx,2026-03-09,No LDA constraints bound; all zones at system price +2026/27,2026-06-01,2027-05-31,PPL,RTO,329.17,329.077063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-bra-results.xlsx,2026-03-09,No LDA constraints bound; all zones at system price +2026/27,2026-06-01,2027-05-31,PSEG,RTO,329.17,329.077063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-bra-results.xlsx,2026-03-09,No LDA constraints bound; all zones at system price +2026/27,2026-06-01,2027-05-31,RECO,RTO,329.17,329.077063,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-3ia-results.xlsx,https://www.pjm.com/-/media/DotCom/markets-ops/rpm/rpm-auction-info/2026-2027/2026-2027-bra-results.xlsx,2026-03-09,No LDA constraints bound; all zones at system price diff --git a/data/raw/pjm-market-tools/zonal_da_lmp_2017_2021.parquet b/data/raw/pjm-market-tools/zonal_da_lmp_2017_2021.parquet new file mode 100644 index 0000000..0f8cdd7 Binary files /dev/null and b/data/raw/pjm-market-tools/zonal_da_lmp_2017_2021.parquet differ diff --git a/docket-tracker/README.md b/docket-tracker/README.md index 00e0dce..0a0b231 100644 --- a/docket-tracker/README.md +++ b/docket-tracker/README.md @@ -1,30 +1,69 @@ -# docket-tracker (not yet built) +# docket-tracker -Monitors PA PUC filings for interconnection and tariff keywords, with a -weekly digest. +**A polite, non-fabricating monitor for state utility commission filings, +with a weekly digest.** Built for the Pennsylvania PUC; runs today only on a +synthetic fixture. -**Blocked on network egress.** `puc.pa.gov` was unreachable, so the site -structure could not be inspected and writing a scraper against a guessed DOM -would be worse than writing nothing. +> **Not validated against the real site.** puc.pa.gov was unreachable from +> the environment this was built in, so its page structure was never +> inspected. The Pennsylvania adapter (`PaPucSource`) raises rather than +> parse a guessed page, because a scraper written blind would fail silently. +> Everything else is built and tested against a synthetic fixture. -## To build it +> For personal awareness only. Not for filing deadlines or legal reliance. -Keywords per the plan: interconnection, tariff, net metering, DER, PA's -interconnection rulemaking docket, and whichever electric distribution company -you care about (set it in config rather than hardcoding a name, so the tool is -reusable and the repo stays free of a single-utility framing). +## What it does -Requirements that matter: +1. Pulls filings from a source: docket number, filing date, title, filer, + document link and, where retrieved, the document text. +2. Matches tracked terms: interconnection, tariff, net metering, distributed + energy resource, hosting capacity, rulemaking, and the acronym DER. Phrases + match case-insensitively across whitespace; acronyms match case-sensitively + on word boundaries, so "DER" does not fire on "order". A watched docket + number always matches. +3. Summarizes without fabricating. A summary is up to two sentences quoted + verbatim from the retrieved text, chosen because they contain a tracked + term. With no text it says the summary is unavailable. It never expands a + title into a guess. +4. Stores to SQLite, keyed on docket number, filing date and title, so a + rerun adds nothing it has already seen. Title is in the key because docket + plus date alone would merge two documents filed in one docket on one day. +5. Writes a weekly Markdown digest for the seven days ending yesterday. -- Respect `robots.txt` and rate limit conservatively. This hits a government - site on a schedule; being a good citizen is not optional. -- SQLite with dedup on docket number plus filing date, so repeated runs only - add new filings. -- The summarization layer must not fabricate. If a filing's content cannot be - verified from the source, record the metadata and say the summary is - unavailable rather than guessing from the title. -- README should note this is for personal awareness only, not for filing - deadlines or legal reliance. +The company to watch is a config setting, empty by default, so nothing in +the repository is framed around one utility. -If the PUC site proves impractical to scrape, fall back to an analogous state -PUC docket system and document why. +## Being a good citizen + +`PoliteFetcher` reads `robots.txt` before the first request to a host and +refuses to fetch if it is disallowed or cannot be read. Requests to one host +are at least 10 seconds apart, longer if `robots.txt` sets a crawl delay. +Both rules are tested with a fake clock and a fake site. + +## Synthetic fixture + +`data/raw/docket-tracker/synthetic_filings.json` is invented. Docket numbers +carry a `SYN-` prefix, filers are placeholders, links point at `.invalid`, +and no text is copied from a real filing. It covers a duplicate row, two +documents in one docket on one day, a filing with no retrieved text, an +acronym trap, a matched filing whose text has no matching sentence, and a +filing outside the digest window. See +[the example digest](../outputs/docket-tracker/digest_example.md). + +## To make it real + +1. From a machine that can reach puc.pa.gov, read its `robots.txt` and the + document search pages. +2. Implement `PaPucSource.filings()` with `PoliteFetcher`, save a few real + responses as test fixtures, and add a recorded-response test. +3. If the PUC site proves impractical to read politely, use another state + commission's docket system and say why here. + +## Run + +```bash +python run_tracker.py # demo on the synthetic fixture +python run_tracker.py --config my.json --db dockets.sqlite --today 2026-11-30 +``` + +There are no findings in this track. It is a tool. diff --git a/docket-tracker/dockettracker/__init__.py b/docket-tracker/dockettracker/__init__.py new file mode 100644 index 0000000..c43e767 --- /dev/null +++ b/docket-tracker/dockettracker/__init__.py @@ -0,0 +1 @@ +"""docket-tracker: a polite, non-fabricating state PUC filing monitor.""" diff --git a/docket-tracker/dockettracker/config.py b/docket-tracker/dockettracker/config.py new file mode 100644 index 0000000..eb30439 --- /dev/null +++ b/docket-tracker/dockettracker/config.py @@ -0,0 +1,48 @@ +"""Tracker configuration. + +Nothing here names a utility. The electric distribution company to watch is a +user setting (``company``), empty by default, so the tool is reusable and the +repository carries no single-utility framing. +""" + +from __future__ import annotations + +import json +from dataclasses import dataclass, field +from pathlib import Path + +# Case-insensitive phrases. Short acronyms go in ACRONYMS instead, where they +# are matched case-sensitively on word boundaries: matched case-insensitively, +# "DER" would hit "order", "under" and "considered". +DEFAULT_KEYWORDS = [ + "interconnection", + "tariff", + "net metering", + "distributed energy resource", + "hosting capacity", + "rulemaking", +] +DEFAULT_ACRONYMS = ["DER", "DERs"] + + +@dataclass +class TrackerConfig: + keywords: list[str] = field(default_factory=lambda: list(DEFAULT_KEYWORDS)) + acronyms: list[str] = field(default_factory=lambda: list(DEFAULT_ACRONYMS)) + company: str = "" # set by the user; never defaulted + docket_numbers: list[str] = field(default_factory=list) # always included + min_seconds_between_requests: float = 10.0 + user_agent: str = "gatingfactor-docket-tracker/0.1 (personal research)" + database: str = "dockets.sqlite" + + def all_terms(self) -> list[str]: + terms = list(self.keywords) + if self.company.strip(): + terms.append(self.company.strip()) + return terms + + @classmethod + def load(cls, path: Path | None) -> "TrackerConfig": + if path is None: + return cls() + return cls(**json.loads(Path(path).read_text())) diff --git a/docket-tracker/dockettracker/digest.py b/docket-tracker/dockettracker/digest.py new file mode 100644 index 0000000..bda12ad --- /dev/null +++ b/docket-tracker/dockettracker/digest.py @@ -0,0 +1,40 @@ +"""Weekly digest as Markdown.""" + +from __future__ import annotations + +from datetime import date, timedelta + +from .store import Store + +DISCLAIMER = ( + "For personal awareness only. Not for filing deadlines or legal reliance: " + "check the docket itself before acting on anything listed here." +) + + +def week_window(today: date) -> tuple[date, date]: + """The seven days ending yesterday.""" + end = today - timedelta(days=1) + return end - timedelta(days=6), end + + +def render(store: Store, start: date, end: date, source_note: str = "") -> str: + rows = store.between(start, end) + lines = [f"# Docket digest, {start.isoformat()} to {end.isoformat()}", "", f"> {DISCLAIMER}", ""] + if source_note: + lines += [f"> {source_note}", ""] + if not rows: + lines.append("No new filings matched a tracked term this week.") + return "\n".join(lines) + "\n" + lines.append(f"{len(rows)} filing(s) matched.") + lines.append("") + for r in rows: + lines.append(f"## {r['docket_number']}: {r['title']}") + lines.append("") + lines.append(f"- Filed: {r['filing_date']}" + (f" by {r['filer']}" if r["filer"] else "")) + lines.append(f"- Matched: {r['matched_terms']}") + if r["document_url"]: + lines.append(f"- Document: {r['document_url']}") + lines.append(f"- Summary: {r['summary']}") + lines.append("") + return "\n".join(lines) diff --git a/docket-tracker/dockettracker/fetch.py b/docket-tracker/dockettracker/fetch.py new file mode 100644 index 0000000..a5e2c43 --- /dev/null +++ b/docket-tracker/dockettracker/fetch.py @@ -0,0 +1,82 @@ +"""Polite HTTP access for a government site polled on a schedule. + +Two rules that are not optional: + +- ``robots.txt`` is read before the first request to a host and obeyed. If it + cannot be read, the fetcher refuses rather than assuming permission. +- Requests to one host are spaced at least ``min_interval`` seconds apart. + +The clock and the transport are injectable so both rules are tested without a +network. +""" + +from __future__ import annotations + +import time +import urllib.error +import urllib.request +import urllib.robotparser +from typing import Callable +from urllib.parse import urlsplit + + +class FetchRefused(RuntimeError): + """robots.txt disallows the URL, or could not be read.""" + + +class SourceUnavailable(RuntimeError): + """The site could not be reached.""" + + +def _default_get(url: str, user_agent: str, timeout: float = 30) -> str: + req = urllib.request.Request(url, headers={"User-Agent": user_agent}) + try: + with urllib.request.urlopen(req, timeout=timeout) as resp: + return resp.read().decode("utf-8", errors="replace") + except (urllib.error.URLError, TimeoutError, OSError) as exc: + raise SourceUnavailable(f"{url}: {exc}") from exc + + +class PoliteFetcher: + def __init__(self, user_agent: str, min_interval: float = 10.0, + get: Callable[[str, str], str] | None = None, + clock: Callable[[], float] = time.monotonic, + sleep: Callable[[float], None] = time.sleep): + self.user_agent = user_agent + self.min_interval = min_interval + self._get = get or _default_get + self._clock = clock + self._sleep = sleep + self._robots: dict[str, urllib.robotparser.RobotFileParser] = {} + self._last: dict[str, float] = {} + + def _wait(self, host: str) -> None: + last = self._last.get(host) + if last is not None: + gap = self._clock() - last + if gap < self.min_interval: + self._sleep(self.min_interval - gap) + self._last[host] = self._clock() + + def _robots_for(self, scheme: str, host: str) -> urllib.robotparser.RobotFileParser: + if host not in self._robots: + self._wait(host) + try: + body = self._get(f"{scheme}://{host}/robots.txt", self.user_agent) + except SourceUnavailable as exc: + raise FetchRefused(f"robots.txt for {host} unreadable; not fetching") from exc + rp = urllib.robotparser.RobotFileParser() + rp.parse(body.splitlines()) + self._robots[host] = rp + return self._robots[host] + + def get(self, url: str) -> str: + parts = urlsplit(url) + rp = self._robots_for(parts.scheme, parts.netloc) + if not rp.can_fetch(self.user_agent, url): + raise FetchRefused(f"robots.txt disallows {url}") + delay = rp.crawl_delay(self.user_agent) + if delay and delay > self.min_interval: + self.min_interval = float(delay) + self._wait(parts.netloc) + return self._get(url, self.user_agent) diff --git a/docket-tracker/dockettracker/match.py b/docket-tracker/dockettracker/match.py new file mode 100644 index 0000000..48734d3 --- /dev/null +++ b/docket-tracker/dockettracker/match.py @@ -0,0 +1,29 @@ +"""Keyword matching against a filing's title and, if retrieved, its text.""" + +from __future__ import annotations + +import re + +from .config import TrackerConfig +from .models import Filing + + +def _phrase_re(term: str, case_sensitive: bool) -> re.Pattern[str]: + flags = 0 if case_sensitive else re.IGNORECASE + words = [re.escape(w) for w in term.split()] + return re.compile(r"\b" + r"\s+".join(words) + r"\b", flags) + + +def matched_terms(filing: Filing, cfg: TrackerConfig) -> list[str]: + """Terms that occur in the filing, in config order, without duplicates.""" + haystack = filing.title + "\n" + (filing.text or "") + hits: list[str] = [] + for term in cfg.all_terms(): + if _phrase_re(term, case_sensitive=False).search(haystack): + hits.append(term) + for acro in cfg.acronyms: + if _phrase_re(acro, case_sensitive=True).search(haystack): + hits.append(acro) + if filing.docket_number in cfg.docket_numbers: + hits.append(f"docket {filing.docket_number}") + return hits diff --git a/docket-tracker/dockettracker/models.py b/docket-tracker/dockettracker/models.py new file mode 100644 index 0000000..0d765e9 --- /dev/null +++ b/docket-tracker/dockettracker/models.py @@ -0,0 +1,29 @@ +"""One filing in a docket.""" + +from __future__ import annotations + +from dataclasses import dataclass +from datetime import date + + +@dataclass(frozen=True) +class Filing: + docket_number: str + filing_date: date + title: str + filer: str = "" + document_url: str = "" + # Body text of the filed document, when the source could retrieve it. + # None means "not retrieved", which is different from an empty document. + text: str | None = None + + @property + def key(self) -> tuple[str, str, str]: + """Dedup key: docket number plus filing date, plus the title. + + The plan called for docket number plus filing date. That alone would + collapse two different documents filed in one docket on one day (a + petition and its certificate of service, say) into one row, so the + title is part of the key. + """ + return (self.docket_number.strip(), self.filing_date.isoformat(), self.title.strip()) diff --git a/docket-tracker/dockettracker/pipeline.py b/docket-tracker/dockettracker/pipeline.py new file mode 100644 index 0000000..1d47758 --- /dev/null +++ b/docket-tracker/dockettracker/pipeline.py @@ -0,0 +1,22 @@ +"""Pull, match, summarize, store.""" + +from __future__ import annotations + +from .config import TrackerConfig +from .match import matched_terms +from .sources import Source +from .store import Store +from .summarize import summarize + + +def run(source: Source, store: Store, cfg: TrackerConfig) -> dict: + seen = matched = added = 0 + for filing in source.filings(): + seen += 1 + terms = matched_terms(filing, cfg) + if not terms: + continue + matched += 1 + if store.add(filing, terms, summarize(filing, terms), source.name): + added += 1 + return {"seen": seen, "matched": matched, "added": added} diff --git a/docket-tracker/dockettracker/sources.py b/docket-tracker/dockettracker/sources.py new file mode 100644 index 0000000..0556387 --- /dev/null +++ b/docket-tracker/dockettracker/sources.py @@ -0,0 +1,62 @@ +"""Where filings come from. + +``FixtureSource`` reads a JSON list of filings. The committed fixture is +synthetic and labeled as such; it exercises every code path. + +``PaPucSource`` is deliberately not a scraper. The Pennsylvania PUC site was +unreachable from the environment this was built in, so its page structure +could not be inspected, and a parser written against a guessed structure would +silently return wrong or empty results. It raises until someone with access +writes ``parse`` against the real pages and adds a recorded-response test. +""" + +from __future__ import annotations + +import json +from datetime import date +from pathlib import Path +from typing import Iterable, Protocol + +from .fetch import PoliteFetcher +from .models import Filing + + +class Source(Protocol): + name: str + + def filings(self) -> Iterable[Filing]: ... + + +class FixtureSource: + def __init__(self, path: Path): + self.path = Path(path) + self.name = f"fixture:{self.path.name}" + + def filings(self) -> Iterable[Filing]: + payload = json.loads(self.path.read_text()) + for row in payload["filings"]: + yield Filing( + docket_number=row["docket_number"], + filing_date=date.fromisoformat(row["filing_date"]), + title=row["title"], + filer=row.get("filer", ""), + document_url=row.get("document_url", ""), + text=row.get("text"), + ) + + +class PaPucSource: + """Pennsylvania PUC document search. Not validated; see module docstring.""" + + name = "pa-puc" + BLOCKER = ( + "PA PUC adapter not validated: puc.pa.gov was unreachable from the build " + "environment, so the page structure was never inspected. Write parse() " + "against the live site and add a recorded-response test before use." + ) + + def __init__(self, fetcher: PoliteFetcher): + self.fetcher = fetcher + + def filings(self) -> Iterable[Filing]: + raise NotImplementedError(self.BLOCKER) diff --git a/docket-tracker/dockettracker/store.py b/docket-tracker/dockettracker/store.py new file mode 100644 index 0000000..1997776 --- /dev/null +++ b/docket-tracker/dockettracker/store.py @@ -0,0 +1,57 @@ +"""SQLite store. Repeated runs only add filings not already seen.""" + +from __future__ import annotations + +import sqlite3 +from datetime import date, datetime, timezone +from pathlib import Path + +from .models import Filing + +SCHEMA = """ +CREATE TABLE IF NOT EXISTS filings ( + docket_number TEXT NOT NULL, + filing_date TEXT NOT NULL, + title TEXT NOT NULL, + filer TEXT, + document_url TEXT, + matched_terms TEXT, + summary TEXT, + source TEXT NOT NULL, + first_seen TEXT NOT NULL, + PRIMARY KEY (docket_number, filing_date, title) +); +""" + + +class Store: + def __init__(self, path: str | Path = ":memory:"): + self.conn = sqlite3.connect(str(path)) + self.conn.executescript(SCHEMA) + + def add(self, filing: Filing, terms: list[str], summary: str, source: str, + now: datetime | None = None) -> bool: + """Insert if new. Returns True only when a row was added.""" + now = now or datetime.now(timezone.utc) + d, f, t = filing.key + cur = self.conn.execute( + "INSERT OR IGNORE INTO filings VALUES (?,?,?,?,?,?,?,?,?)", + (d, f, t, filing.filer, filing.document_url, "; ".join(terms), summary, + source, now.isoformat()), + ) + self.conn.commit() + return cur.rowcount == 1 + + def count(self) -> int: + return self.conn.execute("SELECT COUNT(*) FROM filings").fetchone()[0] + + def between(self, start: date, end: date) -> list[sqlite3.Row]: + """Filings whose filing date is in [start, end].""" + self.conn.row_factory = sqlite3.Row + rows = self.conn.execute( + "SELECT * FROM filings WHERE filing_date BETWEEN ? AND ? " + "ORDER BY filing_date, docket_number", + (start.isoformat(), end.isoformat()), + ).fetchall() + self.conn.row_factory = None + return rows diff --git a/docket-tracker/dockettracker/summarize.py b/docket-tracker/dockettracker/summarize.py new file mode 100644 index 0000000..c5c68e4 --- /dev/null +++ b/docket-tracker/dockettracker/summarize.py @@ -0,0 +1,39 @@ +"""Extractive summaries only. + +The rule from the plan: the summary layer must not fabricate. So it never +writes a sentence of its own. If the document text was retrieved, the summary +is up to ``max_sentences`` sentences quoted verbatim from it, chosen because +they contain a matched term. If the text was not retrieved, the summary says +so. A title is never expanded into a guess at what the filing says. +""" + +from __future__ import annotations + +import re + +from .models import Filing + +UNAVAILABLE = "Summary unavailable: the document text was not retrieved. Title and metadata only." +NO_MATCHING_SENTENCE = "Summary unavailable: no sentence in the retrieved text contains a tracked term." + +_SENTENCE = re.compile(r"(?<=[.!?])\s+(?=[A-Z\"'(])") + + +def sentences(text: str) -> list[str]: + flat = re.sub(r"\s+", " ", text).strip() + return [s for s in _SENTENCE.split(flat) if s] + + +def summarize(filing: Filing, terms: list[str], max_sentences: int = 2) -> str: + if filing.text is None: + return UNAVAILABLE + chosen = [] + for s in sentences(filing.text): + if any(re.search(r"\b" + re.escape(t) + r"\b", s, re.IGNORECASE) for t in terms + if not t.startswith("docket ")): + chosen.append(s) + if len(chosen) == max_sentences: + break + if not chosen: + return NO_MATCHING_SENTENCE + return " ".join(f"“{s}”" for s in chosen) diff --git a/docket-tracker/run_tracker.py b/docket-tracker/run_tracker.py new file mode 100644 index 0000000..9eee172 --- /dev/null +++ b/docket-tracker/run_tracker.py @@ -0,0 +1,57 @@ +"""Run the docket tracker and write a weekly digest. + + python run_tracker.py # synthetic fixture, demo + python run_tracker.py --config my.json --today 2026-11-23 + +The only source that runs today is the synthetic fixture. The Pennsylvania PUC +adapter is not validated; see dockettracker/sources.py. +""" + +from __future__ import annotations + +import argparse +import json +import sys +from datetime import date +from pathlib import Path + +sys.path.insert(0, str(Path(__file__).resolve().parent)) +sys.path.insert(0, str(Path(__file__).resolve().parents[1])) + +from dockettracker import digest, pipeline # noqa: E402 +from dockettracker.config import TrackerConfig # noqa: E402 +from dockettracker.sources import FixtureSource # noqa: E402 +from dockettracker.store import Store # noqa: E402 +from shared import paths # noqa: E402 + +TRACK = "docket-tracker" +FIXTURE = paths.raw(TRACK, "synthetic_filings.json") +FIXTURE_NOTE = "Demo run on a SYNTHETIC fixture. None of these filings exist." + + +def main() -> None: + ap = argparse.ArgumentParser() + ap.add_argument("--config", type=Path) + ap.add_argument("--today", type=date.fromisoformat, default=date(2026, 11, 23), + help="digest covers the seven days ending the day before") + ap.add_argument("--db", default=":memory:") + args = ap.parse_args() + + cfg = TrackerConfig.load(args.config) + store = Store(args.db) + stats = pipeline.run(FixtureSource(FIXTURE), store, cfg) + rerun = pipeline.run(FixtureSource(FIXTURE), store, cfg) + start, end = digest.week_window(args.today) + md = digest.render(store, start, end, source_note=FIXTURE_NOTE) + out = paths.output(TRACK, "digest_example.md") + out.write_text(md) + summary = {**stats, "added_on_rerun": rerun["added"], "stored": store.count(), + "min_seconds_between_requests": cfg.min_seconds_between_requests, + "digest_start": start.isoformat(), "digest_end": end.isoformat()} + paths.output(TRACK, "run_summary.json").write_text(json.dumps(summary, indent=2)) + print(json.dumps(summary, indent=2)) + print(" ", out.relative_to(paths.REPO_ROOT)) + + +if __name__ == "__main__": + main() diff --git a/outputs/docket-tracker/digest_example.md b/outputs/docket-tracker/digest_example.md new file mode 100644 index 0000000..d340122 --- /dev/null +++ b/outputs/docket-tracker/digest_example.md @@ -0,0 +1,35 @@ +# Docket digest, 2026-11-16 to 2026-11-22 + +> For personal awareness only. Not for filing deadlines or legal reliance: check the docket itself before acting on anything listed here. + +> Demo run on a SYNTHETIC fixture. None of these filings exist. + +4 filing(s) matched. + +## SYN-2026-0001: Proposed rulemaking on small generator interconnection procedures + +- Filed: 2026-11-16 by Example Commission Staff +- Matched: interconnection; rulemaking +- Document: https://example.invalid/SYN-2026-0001/notice.pdf +- Summary: “The Commission proposes to revise its small generator interconnection procedures.” + +## SYN-2026-0002: Supplement to retail tariff + +- Filed: 2026-11-17 by Example Distribution Company +- Matched: tariff +- Document: https://example.invalid/SYN-2026-0002/supplement.pdf +- Summary: Summary unavailable: the document text was not retrieved. Title and metadata only. + +## SYN-2026-0003: Comments of an example solar developer + +- Filed: 2026-11-18 by Example Solar Developer LLC +- Matched: hosting capacity; DERs +- Document: https://example.invalid/SYN-2026-0003/comments.pdf +- Summary: “Customer-sited DERs should be studied on the feeder they connect to.” “Hosting capacity maps should be refreshed at least quarterly.” + +## SYN-2026-0005: Petition concerning net metering credits + +- Filed: 2026-11-20 by Example Consumer Advocate +- Matched: net metering +- Document: https://example.invalid/SYN-2026-0005/petition.pdf +- Summary: Summary unavailable: no sentence in the retrieved text contains a tracked term. diff --git a/outputs/docket-tracker/run_summary.json b/outputs/docket-tracker/run_summary.json new file mode 100644 index 0000000..3c453f2 --- /dev/null +++ b/outputs/docket-tracker/run_summary.json @@ -0,0 +1,10 @@ +{ + "seen": 8, + "matched": 6, + "added": 5, + "added_on_rerun": 0, + "stored": 5, + "min_seconds_between_requests": 10.0, + "digest_start": "2026-11-16", + "digest_end": "2026-11-22" +} \ No newline at end of file diff --git a/outputs/pjm-market-tools/basis_components.png b/outputs/pjm-market-tools/basis_components.png new file mode 100644 index 0000000..dbfdbdd Binary files /dev/null and b/outputs/pjm-market-tools/basis_components.png differ diff --git a/outputs/pjm-market-tools/congestion_concentration.png b/outputs/pjm-market-tools/congestion_concentration.png new file mode 100644 index 0000000..4016a07 Binary files /dev/null and b/outputs/pjm-market-tools/congestion_concentration.png differ diff --git a/outputs/pjm-market-tools/headline.json b/outputs/pjm-market-tools/headline.json new file mode 100644 index 0000000..265a884 --- /dev/null +++ b/outputs/pjm-market-tools/headline.json @@ -0,0 +1,23 @@ +{ + "lmp_hours": 43080, + "lmp_zones": 20, + "median_congestion_share_of_basis": 0.8107774846209399, + "min_congestion_share_of_basis": 0.6101578817827, + "median_hours_for_half_congestion": 0.10465413184772517, + "median_top5pct_share": 0.34135986874806845, + "rank_rho_min": 0.8466165413533834, + "rank_rho_max": 0.9744360902255638, + "location_spread_per_mwh": 7.2313663436165285, + "location_mean_energy_per_mwh": 29.676092154131847, + "location_spread_share_of_energy": 0.24367650248753167, + "rpm_delivery_years": 10, + "rpm_years_with_zone_above_rto": 8, + "rpm_max_zone_ratio": 3.3278008298755184, + "backtest_targets": 9, + "backtest_scored_ranges": 6, + "backtest_ranges_containing_actual": 4, + "backtest_nominal_coverage": 0.8, + "backtest_worst_target_year": 2025, + "backtest_worst_persistence_ratio": 9.333333333333334, + "backtest_median_persistence_error_factor": 1.4649868151186638 +} \ No newline at end of file diff --git a/outputs/pjm-market-tools/rpm_backtest.png b/outputs/pjm-market-tools/rpm_backtest.png new file mode 100644 index 0000000..4278f5e Binary files /dev/null and b/outputs/pjm-market-tools/rpm_backtest.png differ diff --git a/outputs/pjm-market-tools/rpm_history.png b/outputs/pjm-market-tools/rpm_history.png new file mode 100644 index 0000000..6c9d30c Binary files /dev/null and b/outputs/pjm-market-tools/rpm_history.png differ diff --git a/pjm-market-tools/README.md b/pjm-market-tools/README.md index 8f784b0..6e3f09a 100644 --- a/pjm-market-tools/README.md +++ b/pjm-market-tools/README.md @@ -1,21 +1,132 @@ -# pjm-market-tools (not yet built) +# pjm-market-tools -LMP congestion analysis for the PPL zone, plus a capacity auction (RPM) -clearing price forecast framed as a prediction market question. +**Where PJM's locational price signal lives, and how much of the capacity +price its own history can predict.** -**Blocked on network egress.** `dataminer2.pjm.com` was unreachable. +Two studies on measured PJM market data. Both ask what a DER project's +market value depends on before any dispatch logic is applied: which hours the +energy price carries a locational premium, and which capacity price regime +the project lands in. -## To build it +## Data -- Real-time and day-ahead LMP with energy / congestion / loss decomposition -- Historical RPM base residual auction clearing prices -- Fundamentals: reserve margin, load forecast, announced retirements +| Dataset | Coverage | Source | +|---|---|---| +| Day-ahead hourly zonal LMP with energy, congestion and loss components | Jan 2017 to Nov 2021, 20 load zones, 43,080 hours | PJM Data Miner `da_hrl_lmps`, redistributed unmodified in the MIT-licensed COVID-EMDA repository (Texas A&M) | +| RPM Base Residual Auction clearing prices by zone | Delivery years 2018/19 to 2026/27 | Transcribed from PJM's auction result workbooks in the MIT-licensed Switchbox `rate-design-platform` repository | +| 2027/28 BRA clearing price | One price for the whole footprint | PJM's December 17, 2025 announcement | -Note for the forecasting module: report a probability-weighted range with -stated assumptions and confidence bands, not a point estimate. RPM clearing -prices are famously regime-dependent (rule changes have repeatedly broken -historical relationships), so a regression on price history alone will be -overconfident. Say so in the README rather than burying it. +pjm.com and PJM Data Miner were not reachable from the environment this was +built in, so both datasets come from public GitHub copies. Provenance, commit +hashes and licenses are in [NOTICE](../NOTICE). The LMP extract is committed +as integer micro-dollars per MWh, which is lossless because Data Miner +publishes six decimals; `run_analysis.py --mirror PATH` rebuilds it from a +COVID-EMDA checkout. -`data/raw/pjm/` already holds hourly PJM generation-by-fuel for 2019 to 2021 -from the CarbonCast pull, which is a usable fundamentals input. +All of it is measured market data. Nothing in this track is synthetic. + +## Results + +### 1. The locational part of the price is mostly congestion, and it arrives in few hours + +A zone's LMP is the system energy price, which is the same everywhere in a +given hour, plus a congestion component and a marginal loss component. Only +the last two are locational. + +- **Congestion is most of the locational signal.** Measured as mean absolute + value, congestion is a median **81.1%** of the locational component across + the 20 zones, and no less than **61.0%** in any zone. +- **It is concentrated in time.** In the median zone, the largest **10.5%** + of hours carry half of all absolute congestion, and the top 5% of hours + carry **34.1%** of it. Evenly spread congestion would need half the hours for + half the total. +- **The ranking of zones is persistent.** The Spearman rank correlation of + zone mean congestion between consecutive years runs from **0.85 to 0.97** + over 2017 to 2021, and in only one of the four year pairs did any zone's + mean congestion change sign. +- **The location spread is not small.** The highest and lowest zone mean LMP + differ by **$7.23/MWh**, about **24%** of the mean system energy price over + the period. + +So for an energy-market DER, which zone it sits in is a stable, first-order +term, and most of that term is earned in a small minority of hours. + +![](../outputs/pjm-market-tools/congestion_concentration.png) + +**Scope.** Day-ahead only; real-time congestion is not in the extract. +Zonal prices are load-weighted averages over many buses, so nodal congestion +is larger and spikier than this; zonal concentration is a floor, not an +estimate of what a single node sees. 2017 to 2021 predates the recent growth +in large new loads, and 2020 to 2021 includes the pandemic demand dip. 2021 +covers January through November. + +**Falsified if.** Real-time or nodal data over the same period show +congestion spread across more than a fifth of hours for half its total in +most zones, or a later five-year window shows zone rankings with year-on-year +rank correlation below 0.5. + +### 2. History-only forecasts of the capacity price miss the moves that matter + +The RTO-wide BRA clearing price, $/MW-day UCAP: + +| DY | 2018/19 | 2019/20 | 2020/21 | 2021/22 | 2022/23 | 2023/24 | 2024/25 | 2025/26 | 2026/27 | 2027/28 | +|---|---|---|---|---|---|---|---|---|---|---| +| RTO | 164.77 | 100.00 | 76.53 | 140.00 | 50.00 | 34.13 | 28.92 | 269.92 | 329.17 | 333.44 | + +Scored one auction at a time, using only earlier auctions: + +- **Persistence** (next price equals last price) is off by a median factor of + **1.46x**, and missed 2025/26 by **9.33x**. +- **An 80% range** built from every earlier year-over-year change contained + the actual price in **4 of 6** auctions it could be scored on. That is too + few auctions to call the range calibrated or not. What it shows is where it + failed: the two large moves, 2022/23 down and 2025/26 up, both landed outside. +- **The two most recent prices were not set by the history at all.** PJM's + 2027/28 announcement says the price "came in at the FERC-approved cap" that + applies to the 2026/27 and 2027/28 auctions. Persistence looks good there + because both auctions hit the same administrative cap. + +No forward forecast is published here. A range estimated from ten auctions +under changing rules is estimated from a different market than the next one, +and the backtest above is the evidence. Anyone framing the next auction as a +prediction market question should start from the rules in force for it, not +from this series. + +**Zones that clear above the system price.** In **8 of 10** delivery years at +least one zone's locational deliverability area separated and cleared above +the RTO price. The widest gap was **3.33x** (DEOK, 2024/25). In the two capped +auctions no LDA separated. + +![](../outputs/pjm-market-tools/rpm_backtest.png) + +**Scope.** Base Residual Auction prices only; incremental auctions and final +zonal prices are carried in the data but not analyzed. Ten auctions is a +short series, and the backtest says nothing about why any price moved. + +**Falsified if.** A history-only method, fixed before the 2028/29 auction and +scored the same way, contains the next several auction results at close to +its stated rate across a rule change. + +## Prior art + +PJM's Independent Market Monitor (Monitoring Analytics) decomposes zonal LMP +into energy, congestion and loss components in every annual *State of the +Market Report for PJM*, and tracks congestion cost by zone and constraint. The +component shares here overlap that work and corroborate rather than discover; +the IMM reports were not reachable from the build environment, so the figures +were not checked against them one by one. On capacity prices, the periodic +reviews of PJM's Variable Resource Requirement curve (for example Brattle's +2022 VRR curve study for PJM) and the New Jersey BPU's 2026 investigation of +PJM's capacity market analyze the market design that drives the series; this +track only measures how far a history-only forecast gets without it. + +## Run + +```bash +python run_analysis.py +``` + +Writes `data/processed/pjm-market-tools/*.parquet`, +`outputs/pjm-market-tools/headline.json` and four figures. Code: +`pjmmkt/congestion.py` (zone summary, concentration, rank stability) and +`pjmmkt/rpm.py` (LDA separation, rolling-origin backtest). diff --git a/pjm-market-tools/pjmmkt/__init__.py b/pjm-market-tools/pjmmkt/__init__.py new file mode 100644 index 0000000..a84f091 --- /dev/null +++ b/pjm-market-tools/pjmmkt/__init__.py @@ -0,0 +1,2 @@ +"""pjm-market-tools: where PJM's locational price signal lives, and how +forecastable its capacity price is from its own history.""" diff --git a/pjm-market-tools/pjmmkt/congestion.py b/pjm-market-tools/pjmmkt/congestion.py new file mode 100644 index 0000000..cdd2636 --- /dev/null +++ b/pjm-market-tools/pjmmkt/congestion.py @@ -0,0 +1,94 @@ +"""Where PJM's day-ahead locational price signal lives. + +A zone's LMP is the system energy price plus a congestion component and a +marginal loss component. The energy component is the same in every zone in a +given hour, so everything locational about the price is in the other two. The +questions here: + +1. How much of the locational part is congestion rather than losses? +2. Is congestion spread across the year or concentrated in a few hours? +3. Does a zone's congestion in one year say much about the next? + +All of it is measured day-ahead zonal data. Zonal prices are load-weighted +averages over many buses, so nodal congestion is larger and spikier than what +is measured here; zonal results are a floor on concentration, not a ceiling. +""" + +from __future__ import annotations + +import numpy as np +import pandas as pd + +TOP_SHARE_HOURS = 0.05 + + +def hours_for_share(x: np.ndarray, share: float = 0.5) -> float: + """Fraction of hours that, taken largest first, hold ``share`` of sum |x|.""" + a = np.sort(np.abs(np.asarray(x, dtype=float)))[::-1] + total = a.sum() + if total == 0: + return float("nan") + k = int(np.searchsorted(np.cumsum(a), share * total) + 1) + return k / len(a) + + +def top_hours_share(x: np.ndarray, frac: float = TOP_SHARE_HOURS) -> float: + """Share of sum |x| that falls in the top ``frac`` of hours by |x|.""" + a = np.sort(np.abs(np.asarray(x, dtype=float)))[::-1] + k = max(1, int(round(frac * len(a)))) + return float(a[:k].sum() / a.sum()) + + +def zone_summary(lmp: pd.DataFrame) -> pd.DataFrame: + """One row per zone over the full 2017-01 to 2021-11 record.""" + rows = [] + for zone, g in lmp.groupby("node"): + c, l = g.congestion.to_numpy(), g.loss.to_numpy() + abs_c, abs_l = np.abs(c).mean(), np.abs(l).mean() + rows.append({ + "zone": zone, + "hours": len(g), + "mean_lmp": g.lmp.mean(), + "mean_energy": g.energy.mean(), + "mean_basis": g.basis.mean(), + "mean_congestion": c.mean(), + "mean_loss": l.mean(), + "mean_abs_congestion": abs_c, + "mean_abs_loss": abs_l, + "congestion_share_of_basis": abs_c / (abs_c + abs_l), + "hours_for_half_congestion": hours_for_share(c, 0.5), + "top5pct_hours_congestion_share": top_hours_share(c), + }) + return pd.DataFrame(rows).sort_values("zone").reset_index(drop=True) + + +def yearly_zone_congestion(lmp: pd.DataFrame) -> pd.DataFrame: + """Mean congestion component by zone and calendar year (UTC). + + 2021 covers January through November only. + """ + return lmp.groupby(["year", "node"]).congestion.mean().unstack("node") + + +def rank_stability(yearly: pd.DataFrame) -> pd.DataFrame: + """Spearman rank correlation of zone mean congestion, year t vs t+1.""" + years = list(yearly.index) + rows = [] + for a, b in zip(years[:-1], years[1:]): + rho = yearly.loc[a].rank().corr(yearly.loc[b].rank()) + flips = int((np.sign(yearly.loc[a]) != np.sign(yearly.loc[b])).sum()) + rows.append({"year": a, "next_year": b, "spearman_rho": rho, + "zones_changing_sign": flips, "zones": yearly.shape[1]}) + return pd.DataFrame(rows) + + +def location_spread(summary: pd.DataFrame) -> dict: + """Highest minus lowest zone mean LMP, against the mean energy price.""" + hi = summary.loc[summary.mean_lmp.idxmax()] + lo = summary.loc[summary.mean_lmp.idxmin()] + energy = float(summary.mean_energy.iloc[0]) + return { + "spread_per_mwh": float(hi.mean_lmp - lo.mean_lmp), + "mean_energy_per_mwh": energy, + "spread_share_of_energy": float((hi.mean_lmp - lo.mean_lmp) / energy), + } diff --git a/pjm-market-tools/pjmmkt/ingest.py b/pjm-market-tools/pjmmkt/ingest.py new file mode 100644 index 0000000..b84e145 --- /dev/null +++ b/pjm-market-tools/pjmmkt/ingest.py @@ -0,0 +1,172 @@ +"""Load the two public PJM datasets this track uses. + +Both are measured market data, not models. + +1. Day-ahead hourly zonal LMP with its energy, congestion and loss components, + January 2017 through November 2021. These are PJM Data Miner + ``da_hrl_lmps`` exports (``type = ZONE``) as redistributed, unmodified, in + the MIT-licensed COVID-EMDA repository. PJM Data Miner itself was not + reachable from the build environment. See NOTICE. + +2. RPM Base Residual Auction clearing prices by zone, delivery years 2018/19 + through 2026/27, as transcribed from PJM's auction result workbooks in the + MIT-licensed Switchbox rate-design-platform repository, plus the 2027/28 + result from PJM's own announcement. See NOTICE. + +``extract_lmp_from_mirror`` rebuilds the committed LMP extract from a checkout +of the mirror. Everything downstream reads the committed extract, so the +analysis runs from a clean clone without the network. +""" + +from __future__ import annotations + +import sys +from pathlib import Path + +import numpy as np +import pandas as pd + +sys.path.insert(0, str(Path(__file__).resolve().parents[2])) + +from shared import paths # noqa: E402 + +TRACK = "pjm-market-tools" + +LMP_EXTRACT = "zonal_da_lmp_2017_2021.parquet" +RPM_TRANSCRIBED = "rpm_capacity_prices.csv" +RPM_LATEST = "rpm_bra_2027_28.csv" + +# Mirror provenance, pinned so a rebuild is checkable. +EMDA_REPO = "https://github.com/tamu-engineering-research/COVID-EMDA" +EMDA_COMMIT = "f066e2d89d4581ec1cab224402d94ee35713915d" +EMDA_LMP_DIR = "data_source/pjm/lmp" +SWITCHBOX_REPO = "https://github.com/switchbox-data/rate-design-platform" +SWITCHBOX_COMMIT = "f724f44ce525d7eed43579cc7f1b5aff7b15e882" +SWITCHBOX_RPM_PATH = "data/pjm/capacity/rpm/rpm_capacity_prices.csv" + +# Pricing nodes in the zonal feed that are not transmission zones: the RTO +# average, the Mid-Atlantic/APS aggregate, and OVEC, which has no retail load +# and is missing from the feed for about 40% of the period. +NON_ZONES = {"PJM-RTO", "MID-ATL/APS", "OVEC"} + +# Raw Data Miner columns. In these exports the ``zone`` column is empty for +# zone-type rows, so the price columns sit where their headers say; the +# component identity below is checked rather than assumed. +_RAW_COLS = { + "datetime_beginning_utc": "utc", + "pnode_name": "node", + "system_energy_price_da": "energy", + "total_lmp_da": "lmp", + "congestion_price_da": "congestion", + "marginal_loss_price_da": "loss", + "row_is_current": "row_is_current", + "version_nbr": "version", +} + + +def extract_lmp_from_mirror(mirror_root: Path) -> pd.DataFrame: + """Collapse the mirror's daily and range CSVs into one hourly table. + + Two cleaning rules, both checked: + + - PJM republishes a corrected price as a new ``version_nbr`` and marks the + superseded row ``row_is_current = False``. Only current rows are kept. + - Two of the mirror's range files overlap by one day. Overlapping rows must + agree exactly; they are then dropped as duplicates. + """ + lmp_dir = Path(mirror_root) / EMDA_LMP_DIR + files = sorted(lmp_dir.glob("da_hrl_lmps_ZONE_*.csv")) + if not files: + raise FileNotFoundError(f"no da_hrl_lmps_ZONE_*.csv under {lmp_dir}") + raw = pd.concat( + [pd.read_csv(f, usecols=list(_RAW_COLS), dtype=str) for f in files], + ignore_index=True, + ).rename(columns=_RAW_COLS) + raw = raw[raw.row_is_current.str.lower() == "true"].drop(columns=["row_is_current"]) + raw["utc"] = pd.to_datetime(raw.utc, format="%m/%d/%Y %I:%M:%S %p", utc=True) + for c in ("energy", "lmp", "congestion", "loss"): + raw[c] = raw[c].astype(float) + raw["version"] = raw.version.astype(int) + + key = ["utc", "node"] + dupes = raw[raw.duplicated(key, keep=False)] + if len(dupes): + spread = dupes.groupby(key)[["energy", "lmp", "congestion", "loss"]].agg( + lambda s: s.max() - s.min() + ) + if float(spread.to_numpy().max()) > 1e-9: + raise ValueError("overlapping mirror files disagree on a current price") + out = raw.drop_duplicates(key).sort_values(key).reset_index(drop=True) + return out[["utc", "node", "energy", "lmp", "congestion", "loss", "version"]] + + +PRICE_COLS = ("energy", "lmp", "congestion", "loss") + + +def write_lmp_extract(mirror_root: Path) -> Path: + """Store prices as integer micro-dollars per MWh. + + Data Miner publishes six decimal places, so this is lossless (checked + before writing) and roughly halves the committed file. + """ + df = extract_lmp_from_mirror(mirror_root) + for c in PRICE_COLS: + micro = np.round(df[c].to_numpy() * 1e6) + if np.abs(df[c].to_numpy() * 1e6 - micro).max() > 1e-3: + raise ValueError(f"{c} has more than six decimal places; integer storage would round") + df[c] = micro.astype("int64") + df["node"] = df.node.astype("category") + dest = paths.raw(TRACK, LMP_EXTRACT) + df.to_parquet(dest, index=False, compression="zstd", compression_level=19) + return dest + + +def load_lmp() -> pd.DataFrame: + """Hourly day-ahead LMP for the 20 load zones, with components. + + Adds ``basis`` = LMP minus the system energy price, which is exactly the + congestion plus loss components (verified to the cent in tests). + """ + src = paths.raw(TRACK, LMP_EXTRACT) + if not src.exists(): + raise FileNotFoundError( + f"{src} missing. Rebuild with: python run_analysis.py --mirror " + ) + df = pd.read_parquet(src) + df["node"] = df.node.astype(str) + df = df[~df.node.isin(NON_ZONES)].copy() + for c in PRICE_COLS: + df[c] = df[c].astype(float) / 1e6 + df["basis"] = df.lmp - df.energy + df["year"] = df.utc.dt.year + return df.reset_index(drop=True) + + +def load_rpm() -> pd.DataFrame: + """BRA clearing price by delivery year and zone, 2018/19 through 2027/28. + + ``bra_price`` is the Resource Clearing Price of the zone's LDA in the Base + Residual Auction, $/MW-day UCAP. Final zonal prices, which move with the + incremental auctions, are kept for 2018/19 to 2026/27 only. + """ + frames = [pd.read_csv(paths.raw(TRACK, f), comment="#") for f in (RPM_TRANSCRIBED, RPM_LATEST)] + df = pd.concat(frames, ignore_index=True).rename(columns={ + "bra_price_per_mw_day": "bra_price", + "final_zonal_capacity_price_per_mw_day": "final_zonal_price", + }) + df["dy_start_year"] = df.delivery_year.str.slice(0, 4).astype(int) + return df[["delivery_year", "dy_start_year", "zone", "lda", "bra_price", + "final_zonal_price"]].sort_values(["dy_start_year", "zone"]).reset_index(drop=True) + + +def rto_price_series(rpm: pd.DataFrame) -> pd.Series: + """The unconstrained (RTO) BRA clearing price per delivery year. + + Taken from zones whose LDA is RTO; every such zone carries the same price + within a year, which is asserted. + """ + r = rpm[rpm.lda == "RTO"].groupby("dy_start_year").bra_price + if (r.nunique() != 1).any(): + raise ValueError("RTO-priced zones disagree within a delivery year") + return r.first().astype(float) + diff --git a/pjm-market-tools/pjmmkt/rpm.py b/pjm-market-tools/pjmmkt/rpm.py new file mode 100644 index 0000000..045e29e --- /dev/null +++ b/pjm-market-tools/pjmmkt/rpm.py @@ -0,0 +1,91 @@ +"""How forecastable is PJM's capacity price from its own history? + +The RPM Base Residual Auction sets a capacity price per delivery year. The +track asks the question a forecaster or a prediction market would face: given +every earlier auction, what would you have said about the next one, and how +often would your stated range have contained the answer? + +The answer the code is built to expose is a negative one. Ten auctions are a +short series, and the rules changed between several of them, so any range +estimated from the history is estimated from a different market. No forward +forecast is published here for that reason. + +Also measured: how often a zone clears above the system price because its +locational deliverability area (LDA) separated, and by how much. +""" + +from __future__ import annotations + +import numpy as np +import pandas as pd + +INTERVAL = 0.80 +MIN_HISTORY_CHANGES = 3 + + +def lda_separation(rpm: pd.DataFrame, rto: pd.Series) -> pd.DataFrame: + """Per delivery year: how many zones cleared above the RTO price, and the + largest zone-to-RTO ratio.""" + rows = [] + for y, g in rpm.groupby("dy_start_year"): + r = float(rto.loc[y]) + above = g[g.bra_price > r + 1e-9] + top = g.loc[g.bra_price.idxmax()] + rows.append({ + "dy_start_year": y, + "delivery_year": g.delivery_year.iloc[0], + "rto_price": r, + "zones": len(g), + "zones_above_rto": len(above), + "max_zone_price": float(top.bra_price), + "max_lda": top.lda, + "max_ratio_to_rto": float(top.bra_price / r), + }) + return pd.DataFrame(rows) + + +def backtest(rto: pd.Series, interval: float = INTERVAL) -> pd.DataFrame: + """Rolling-origin backtest of two history-only forecasts of the RTO price. + + For each target delivery year, using only earlier auctions: + + - persistence: next price equals last price + - empirical range: last price times the ``interval`` central quantiles of + every earlier year-over-year log change. Starts once at least + ``MIN_HISTORY_CHANGES`` changes exist. + """ + years = list(rto.index) + p = rto.to_numpy(dtype=float) + lo_q, hi_q = (1 - interval) / 2, 1 - (1 - interval) / 2 + rows = [] + for i in range(1, len(p)): + changes = np.diff(np.log(p[:i])) + row = { + "target_year": years[i], + "actual": p[i], + "persistence": p[i - 1], + "persistence_ratio": p[i] / p[i - 1], + "abs_log_error": abs(np.log(p[i] / p[i - 1])), + "history_changes": len(changes), + } + if len(changes) >= MIN_HISTORY_CHANGES: + lo = p[i - 1] * np.exp(np.quantile(changes, lo_q)) + hi = p[i - 1] * np.exp(np.quantile(changes, hi_q)) + row.update(range_low=lo, range_high=hi, + inside=bool(lo <= p[i] <= hi)) + rows.append(row) + return pd.DataFrame(rows) + + +def backtest_summary(bt: pd.DataFrame) -> dict: + scored = bt.dropna(subset=["range_low"]) + worst = bt.loc[bt.abs_log_error.idxmax()] + return { + "targets": int(len(bt)), + "scored_ranges": int(len(scored)), + "ranges_containing_actual": int(scored.inside.sum()), + "nominal_coverage": INTERVAL, + "worst_target_year": int(worst.target_year), + "worst_persistence_ratio": float(worst.persistence_ratio), + "median_persistence_error_factor": float(np.exp(bt.abs_log_error.median())), + } diff --git a/pjm-market-tools/run_analysis.py b/pjm-market-tools/run_analysis.py new file mode 100644 index 0000000..f40ea64 --- /dev/null +++ b/pjm-market-tools/run_analysis.py @@ -0,0 +1,155 @@ +"""Regenerate every pjm-market-tools artifact. + + python run_analysis.py # from the committed extract + python run_analysis.py --mirror PATH # first rebuild the LMP extract + # from a COVID-EMDA checkout +""" + +from __future__ import annotations + +import argparse +import json +import sys +import warnings +from pathlib import Path + +warnings.filterwarnings("ignore") + +sys.path.insert(0, str(Path(__file__).resolve().parent)) +sys.path.insert(0, str(Path(__file__).resolve().parents[1])) + +import matplotlib.pyplot as plt # noqa: E402 +import numpy as np # noqa: E402 +import pandas as pd # noqa: E402 + +from pjmmkt import congestion as cg, ingest, rpm # noqa: E402 +from shared import io, paths, plotting # noqa: E402 + +TRACK = ingest.TRACK +SUB_LMP = ( + "gatingfactor / pjm-market-tools. PJM Data Miner day-ahead hourly zonal LMP, " + "Jan 2017 to Nov 2021, 20 load zones, via the COVID-EMDA mirror. Measured, day-ahead only." +) +SUB_RPM = ( + "gatingfactor / pjm-market-tools. PJM RPM Base Residual Auction clearing prices, " + "DY 2018/19 to 2027/28, via the Switchbox transcription and PJM's 2027/28 announcement." +) + + +def fig_concentration(lmp: pd.DataFrame, summary: pd.DataFrame) -> Path: + fig, ax = plt.subplots(figsize=(9, 6)) + for _, g in lmp.groupby("node"): + a = np.sort(np.abs(g.congestion.to_numpy()))[::-1] + y = np.cumsum(a) / a.sum() + x = np.arange(1, len(a) + 1) / len(a) + ax.plot(100 * x, 100 * y, color=plotting.COLOR_NEUTRAL, lw=0.8, alpha=0.6) + ax.plot([0, 100], [0, 100], color="black", lw=1, ls="--", label="evenly spread") + med = summary.hours_for_half_congestion.median() + ax.axhline(50, color=plotting.PALETTE[1], lw=1) + ax.axvline(100 * med, color=plotting.PALETTE[1], lw=1) + ax.text(100 * med + 1, 46, f"median zone: half its congestion\nin {100 * med:.0f}% of hours", + fontsize=9, va="top", color=plotting.PALETTE[1]) + ax.set_xlabel("Share of hours, largest |congestion| first (%)") + ax.set_ylabel("Cumulative share of |congestion component| (%)") + ax.set_title("Zonal congestion arrives in a small share of hours (one line per zone)") + ax.legend(loc="lower right") + return plotting.finish(fig, paths.output(TRACK, "congestion_concentration.png"), SUB_LMP) + + +def fig_components(summary: pd.DataFrame) -> Path: + s = summary.sort_values("mean_basis") + fig, ax = plt.subplots(figsize=(11, 6)) + x = np.arange(len(s)) + ax.bar(x - 0.2, s.mean_abs_congestion, 0.4, label="mean |congestion|", color=plotting.PALETTE[0]) + ax.bar(x + 0.2, s.mean_abs_loss, 0.4, label="mean |marginal loss|", color=plotting.PALETTE[1]) + ax.set_xticks(x) + ax.set_xticklabels(s.zone, rotation=60, ha="right") + ax.set_ylabel("$/MWh (day-ahead)") + ax.set_title("The locational part of the zonal price is mostly congestion") + ax.legend() + return plotting.finish(fig, paths.output(TRACK, "basis_components.png"), SUB_LMP) + + +def fig_rpm(sep: pd.DataFrame) -> Path: + fig, ax = plt.subplots(figsize=(10, 6)) + x = np.arange(len(sep)) + ax.plot(x, sep.rto_price, marker="o", color=plotting.PALETTE[0], label="RTO clearing price") + ax.scatter(x, sep.max_zone_price, marker="^", color=plotting.COLOR_VIOLATION, + label="highest-priced zone (constrained LDA)", zorder=3) + ax.set_xticks(x) + ax.set_xticklabels(sep.delivery_year, rotation=30) + ax.set_ylabel("BRA clearing price ($/MW-day UCAP)") + ax.set_title("Capacity prices: regime moves, and zones that clear above the system price") + ax.legend() + return plotting.finish(fig, paths.output(TRACK, "rpm_history.png"), SUB_RPM) + + +def fig_backtest(bt: pd.DataFrame) -> Path: + fig, ax = plt.subplots(figsize=(10, 6)) + b = bt.dropna(subset=["range_low"]) + x = b.target_year.to_numpy() + ax.vlines(x, b.range_low, b.range_high, color=plotting.COLOR_NEUTRAL, lw=6, alpha=0.5, + label="80% range from earlier year-over-year changes") + ax.plot(bt.target_year, bt.persistence, "s", color=plotting.PALETTE[1], label="persistence forecast") + ax.plot(bt.target_year, bt.actual, "o", color=plotting.PALETTE[0], label="actual") + ax.set_yscale("log") + ax.set_xlabel("Delivery year start") + ax.set_ylabel("RTO clearing price ($/MW-day, log scale)") + ax.set_title("History-only forecasts of the capacity price, scored one auction at a time") + ax.legend(loc="lower left") + return plotting.finish(fig, paths.output(TRACK, "rpm_backtest.png"), SUB_RPM) + + +def main() -> None: + ap = argparse.ArgumentParser() + ap.add_argument("--mirror", type=Path, help="COVID-EMDA checkout to rebuild the LMP extract from") + args = ap.parse_args() + + if args.mirror: + print("[ingest] rebuilding LMP extract from", args.mirror) + ingest.write_lmp_extract(args.mirror) + + print("[congestion]") + lmp = ingest.load_lmp() + summary = cg.zone_summary(lmp) + yearly = cg.yearly_zone_congestion(lmp) + stability = cg.rank_stability(yearly) + spread = cg.location_spread(summary) + io.write_processed(summary, TRACK, "zone_summary") + io.write_processed(yearly.reset_index(), TRACK, "yearly_zone_congestion") + io.write_processed(stability, TRACK, "rank_stability") + + print("[rpm]") + r = ingest.load_rpm() + rto = ingest.rto_price_series(r) + sep = rpm.lda_separation(r, rto) + bt = rpm.backtest(rto) + io.write_processed(sep, TRACK, "lda_separation") + io.write_processed(bt, TRACK, "rpm_backtest") + + headline = { + "lmp_hours": int(lmp.utc.nunique()), + "lmp_zones": int(lmp.node.nunique()), + "median_congestion_share_of_basis": float(summary.congestion_share_of_basis.median()), + "min_congestion_share_of_basis": float(summary.congestion_share_of_basis.min()), + "median_hours_for_half_congestion": float(summary.hours_for_half_congestion.median()), + "median_top5pct_share": float(summary.top5pct_hours_congestion_share.median()), + "rank_rho_min": float(stability.spearman_rho.min()), + "rank_rho_max": float(stability.spearman_rho.max()), + **{f"location_{k}": v for k, v in spread.items()}, + "rpm_delivery_years": int(len(sep)), + "rpm_years_with_zone_above_rto": int((sep.zones_above_rto > 0).sum()), + "rpm_max_zone_ratio": float(sep.max_ratio_to_rto.max()), + **{f"backtest_{k}": v for k, v in rpm.backtest_summary(bt).items()}, + } + paths.output(TRACK, "headline.json").write_text(json.dumps(headline, indent=2)) + for k, v in headline.items(): + print(f" {k}: {v:.4f}" if isinstance(v, float) else f" {k}: {v}") + + print("[figures]") + for p in (fig_concentration(lmp, summary), fig_components(summary), fig_rpm(sep), fig_backtest(bt)): + print(" ", p.relative_to(paths.REPO_ROOT)) + + +if __name__ == "__main__": + main() diff --git a/tests/test_claim_guard.py b/tests/test_claim_guard.py index 45b578f..3a11999 100644 --- a/tests/test_claim_guard.py +++ b/tests/test_claim_guard.py @@ -70,6 +70,8 @@ def sandbox(tmp_path: Path) -> Path: "interconnection-analytics", "hosting-capacity-sim", "tariff-explorer", + "pjm-market-tools", + "docket-tracker", "carbon-aware-der", ): (dest / track).mkdir(exist_ok=True) diff --git a/tests/test_docket_tracker.py b/tests/test_docket_tracker.py new file mode 100644 index 0000000..26ceeba --- /dev/null +++ b/tests/test_docket_tracker.py @@ -0,0 +1,212 @@ +"""Tests for docket-tracker. + +The rules from the plan, each made into a test: dedup across runs, obey +robots.txt, rate limit, and never fabricate a summary. +""" + +from __future__ import annotations + +import sys +from datetime import date +from pathlib import Path + +import pytest + +REPO = Path(__file__).resolve().parents[1] +sys.path.insert(0, str(REPO)) +sys.path.insert(0, str(REPO / "docket-tracker")) + +from dockettracker import digest, pipeline # noqa: E402 +from dockettracker.config import TrackerConfig # noqa: E402 +from dockettracker.fetch import FetchRefused, PoliteFetcher, SourceUnavailable # noqa: E402 +from dockettracker.match import matched_terms # noqa: E402 +from dockettracker.models import Filing # noqa: E402 +from dockettracker.sources import FixtureSource, PaPucSource # noqa: E402 +from dockettracker.store import Store # noqa: E402 +from dockettracker.summarize import NO_MATCHING_SENTENCE, UNAVAILABLE, summarize # noqa: E402 + +FIXTURE = REPO / "data" / "raw" / "docket-tracker" / "synthetic_filings.json" + + +def f(title="t", text=None, docket="SYN-1", d=date(2026, 1, 5)): + return Filing(docket_number=docket, filing_date=d, title=title, text=text) + + +# --- fixture is labeled ----------------------------------------------------- + + +def test_fixture_is_labeled_synthetic(): + raw = FIXTURE.read_text() + assert "SYNTHETIC" in raw + for filing in FixtureSource(FIXTURE).filings(): + assert filing.docket_number.startswith("SYN-") + assert ".invalid/" in filing.document_url + + +# --- matching --------------------------------------------------------------- + + +def test_acronym_does_not_match_inside_words(): + cfg = TrackerConfig() + assert "DER" not in matched_terms(f(text="The order considered under this docket."), cfg) + assert "DER" in matched_terms(f(text="Customer DER adoption."), cfg) + + +def test_phrase_match_is_case_insensitive_and_spans_whitespace(): + cfg = TrackerConfig() + assert "net metering" in matched_terms(f(title="NET\n Metering petition"), cfg) + + +def test_company_is_unset_by_default_and_matches_when_set(): + assert TrackerConfig().company == "" + cfg = TrackerConfig(company="Example Distribution Company") + assert "Example Distribution Company" in matched_terms( + f(title="Filing of Example Distribution Company"), cfg) + + +def test_watched_docket_always_matches(): + cfg = TrackerConfig(docket_numbers=["SYN-9"]) + assert matched_terms(f(title="Certificate of service", docket="SYN-9"), cfg) == ["docket SYN-9"] + + +# --- summaries never fabricate ---------------------------------------------- + + +def test_no_text_means_no_summary(): + assert summarize(f(title="Tariff supplement", text=None), ["tariff"]) == UNAVAILABLE + + +def test_summary_is_verbatim_from_source(): + text = "Intro line. The interconnection screen changes. Unrelated closing." + s = summarize(f(text=text), ["interconnection"]) + quoted = s.strip("“”") + assert quoted in text + + +def test_no_matching_sentence_says_so(): + assert summarize(f(text="Nothing relevant here."), ["tariff"]) == NO_MATCHING_SENTENCE + + +def test_every_fixture_summary_is_verbatim_or_unavailable(): + cfg = TrackerConfig() + for filing in FixtureSource(FIXTURE).filings(): + terms = matched_terms(filing, cfg) + if not terms: + continue + s = summarize(filing, terms) + if s in (UNAVAILABLE, NO_MATCHING_SENTENCE): + continue + flat = " ".join((filing.text or "").split()) + for part in s.split("” “"): + assert part.strip("“”") in flat + + +# --- store dedups ----------------------------------------------------------- + + +def test_rerun_adds_nothing(): + store, cfg = Store(), TrackerConfig() + first = pipeline.run(FixtureSource(FIXTURE), store, cfg) + second = pipeline.run(FixtureSource(FIXTURE), store, cfg) + assert first["added"] == store.count() == 5 + assert second["added"] == 0 + + +def test_same_day_different_documents_both_kept(): + store = Store() + assert store.add(f(title="Petition"), ["x"], "s", "test") + assert store.add(f(title="Certificate of service"), ["x"], "s", "test") + assert not store.add(f(title="Petition"), ["x"], "s", "test") + assert store.count() == 2 + + +# --- polite fetching -------------------------------------------------------- + + +class FakeSite: + def __init__(self, robots: str): + self.robots = robots + self.calls: list[str] = [] + + def get(self, url, ua): + self.calls.append(url) + if url.endswith("/robots.txt"): + if self.robots is None: + raise SourceUnavailable("down") + return self.robots + return "page" + + +class FakeClock: + def __init__(self): + self.t = 0.0 + self.slept: list[float] = [] + + def now(self): + return self.t + + def sleep(self, s): + self.slept.append(s) + self.t += s + + +def fetcher(site, clock, interval=10.0): + return PoliteFetcher("ua", interval, get=site.get, clock=clock.now, sleep=clock.sleep) + + +def test_robots_disallow_is_obeyed(): + site, clock = FakeSite("User-agent: *\nDisallow: /search/\n"), FakeClock() + fx = fetcher(site, clock) + with pytest.raises(FetchRefused): + fx.get("https://example.invalid/search/documents") + assert "https://example.invalid/search/documents" not in site.calls + + +def test_unreadable_robots_means_no_fetch(): + site, clock = FakeSite(None), FakeClock() + with pytest.raises(FetchRefused): + fetcher(site, clock).get("https://example.invalid/page") + assert site.calls == ["https://example.invalid/robots.txt"] + + +def test_requests_are_spaced(): + site, clock = FakeSite("User-agent: *\nAllow: /\n"), FakeClock() + fx = fetcher(site, clock, interval=10.0) + fx.get("https://example.invalid/a") + fx.get("https://example.invalid/b") + # robots.txt, then a, then b: each gap is padded to the interval. + assert clock.slept == [pytest.approx(10.0), pytest.approx(10.0)] + + +def test_crawl_delay_lengthens_interval(): + site, clock = FakeSite("User-agent: *\nCrawl-delay: 30\n"), FakeClock() + fx = fetcher(site, clock, interval=10.0) + fx.get("https://example.invalid/a") + assert fx.min_interval == 30.0 + + +# --- unvalidated source refuses --------------------------------------------- + + +def test_pa_puc_adapter_refuses_until_validated(): + src = PaPucSource(fetcher(FakeSite("User-agent: *\nAllow: /\n"), FakeClock())) + with pytest.raises(NotImplementedError, match="not validated"): + list(src.filings()) + + +# --- digest ----------------------------------------------------------------- + + +def test_digest_carries_disclaimer_and_window(): + store, cfg = Store(), TrackerConfig() + pipeline.run(FixtureSource(FIXTURE), store, cfg) + start, end = digest.week_window(date(2026, 11, 23)) + md = digest.render(store, start, end) + assert digest.DISCLAIMER in md + assert "SYN-2026-0006" not in md # filed before the window + assert "SYN-2026-0001" in md + + +def test_empty_week_says_so(): + md = digest.render(Store(), date(2026, 1, 1), date(2026, 1, 7)) + assert "No new filings" in md diff --git a/tests/test_pjm_market_tools.py b/tests/test_pjm_market_tools.py new file mode 100644 index 0000000..cb338da --- /dev/null +++ b/tests/test_pjm_market_tools.py @@ -0,0 +1,174 @@ +"""Tests for pjm-market-tools. + +The failure modes guarded here: a column-shifted raw export read as if its +headers were right, superseded price versions counted twice, a concentration +metric that is really a sorting bug, and a backtest that peeks at the year it +is forecasting. +""" + +from __future__ import annotations + +import json +import sys +import warnings +from pathlib import Path + +import numpy as np +import pandas as pd +import pytest + +warnings.filterwarnings("ignore") + +REPO = Path(__file__).resolve().parents[1] +sys.path.insert(0, str(REPO)) +sys.path.insert(0, str(REPO / "pjm-market-tools")) + +from pjmmkt import congestion as cg, ingest, rpm # noqa: E402 + +HEADLINE = REPO / "outputs" / "pjm-market-tools" / "headline.json" + + +@pytest.fixture(scope="module") +def lmp(): + return ingest.load_lmp() + + +@pytest.fixture(scope="module") +def summary(lmp): + return cg.zone_summary(lmp) + + +@pytest.fixture(scope="module") +def rpm_df(): + return ingest.load_rpm() + + +@pytest.fixture(scope="module") +def rto(rpm_df): + return ingest.rto_price_series(rpm_df) + + +# --- LMP data integrity ----------------------------------------------------- + + +def test_components_sum_to_lmp(lmp): + """If the raw columns were read shifted, this identity would fail.""" + resid = lmp.lmp - (lmp.energy + lmp.congestion + lmp.loss) + assert resid.abs().max() < 1e-6 + + +def test_energy_component_is_system_wide(lmp): + """The system energy price is one number per hour across all zones.""" + assert lmp.groupby("utc").energy.nunique().max() == 1 + + +def test_complete_hourly_panel(lmp): + assert lmp.node.nunique() == 20 + hours = pd.date_range("2017-01-01 05:00", "2021-12-01 04:00", freq="h", tz="UTC") + assert lmp.utc.nunique() == len(hours) == 43080 + assert (lmp.groupby("node").size() == len(hours)).all() + + +def test_one_row_per_zone_hour(lmp): + assert not lmp.duplicated(["utc", "node"]).any() + + +def test_aggregates_excluded(lmp): + assert not set(lmp.node) & ingest.NON_ZONES + + +def test_prices_plausible(lmp): + assert lmp.lmp.min() > -50 + assert lmp.lmp.max() < 1000 + assert 20 < lmp.energy.mean() < 40 + + +# --- congestion metrics ----------------------------------------------------- + + +def test_hours_for_share_known_cases(): + assert cg.hours_for_share(np.ones(100), 0.5) == pytest.approx(0.5) + one_spike = np.zeros(100) + one_spike[7] = 5.0 + assert cg.hours_for_share(one_spike, 0.5) == pytest.approx(0.01) + + +def test_hours_for_share_uses_magnitude(): + """Negative congestion is still congestion; the sign must not cancel.""" + x = np.array([10.0, -10.0, 0.0, 0.0]) # signed sum is zero + assert cg.hours_for_share(x, 0.5) == pytest.approx(0.25) + + +def test_top_hours_share_uniform_is_frac(): + assert cg.top_hours_share(np.ones(1000), 0.05) == pytest.approx(0.05) + + +def test_congestion_dominates_basis_in_every_zone(summary): + assert (summary.congestion_share_of_basis > 0.5).all() + + +def test_congestion_concentrated_in_every_zone(summary): + """Evenly spread congestion would need half the hours for half the total.""" + assert (summary.hours_for_half_congestion < 0.2).all() + + +def test_rank_stability_shape(lmp): + st = cg.rank_stability(cg.yearly_zone_congestion(lmp)) + assert list(st.year) == [2017, 2018, 2019, 2020] + assert st.spearman_rho.between(-1, 1).all() + + +# --- RPM -------------------------------------------------------------------- + + +def test_rpm_covers_ten_delivery_years_and_twenty_zones(rpm_df): + assert sorted(rpm_df.dy_start_year.unique()) == list(range(2018, 2028)) + assert (rpm_df.groupby("dy_start_year").zone.nunique() == 20).all() + + +def test_rto_series_values(rto): + """Spot-check against PJM's published RTO clearing prices.""" + assert rto.loc[2024] == pytest.approx(28.92) + assert rto.loc[2025] == pytest.approx(269.92) + assert rto.loc[2027] == pytest.approx(333.44) + + +def test_no_zone_clears_below_rto_except_documented(rpm_df, rto): + """A constrained LDA can only clear at or above the system price, with + the CP transition years as the documented exception.""" + m = rpm_df.merge(rto.rename("rto"), left_on="dy_start_year", right_index=True) + below = m[m.bra_price < m.rto - 1e-9] + assert below.empty, below[["delivery_year", "zone", "bra_price", "rto"]] + + +def test_backtest_does_not_peek(rto): + """Changing the target year's price must not change that year's forecast.""" + bt = rpm.backtest(rto) + bumped = rto.copy() + bumped.loc[2025] = 1e6 + bt2 = rpm.backtest(bumped) + row, row2 = bt[bt.target_year == 2025].iloc[0], bt2[bt2.target_year == 2025].iloc[0] + assert row.persistence == row2.persistence + assert row.range_low == row2.range_low and row.range_high == row2.range_high + + +def test_backtest_range_needs_history(rto): + bt = rpm.backtest(rto) + assert bt[bt.history_changes < rpm.MIN_HISTORY_CHANGES].range_low.isna().all() + assert bt[bt.history_changes >= rpm.MIN_HISTORY_CHANGES].range_low.notna().all() + + +# --- headline pins ---------------------------------------------------------- + + +def test_headlines_pinned(): + h = json.loads(HEADLINE.read_text()) + assert h["median_congestion_share_of_basis"] == pytest.approx(0.811, abs=0.002) + assert h["median_hours_for_half_congestion"] == pytest.approx(0.105, abs=0.002) + assert h["median_top5pct_share"] == pytest.approx(0.341, abs=0.002) + assert h["rank_rho_min"] == pytest.approx(0.847, abs=0.002) + assert h["rpm_years_with_zone_above_rto"] == 8 + assert h["rpm_max_zone_ratio"] == pytest.approx(3.33, abs=0.01) + assert h["backtest_worst_persistence_ratio"] == pytest.approx(9.33, abs=0.01) + assert h["backtest_ranges_containing_actual"] == 4 + assert h["backtest_scored_ranges"] == 6 diff --git a/tools/check_claims.py b/tools/check_claims.py index d665756..6477c8b 100644 --- a/tools/check_claims.py +++ b/tools/check_claims.py @@ -290,6 +290,139 @@ def t3_ev_demand() -> float: return _rn_change("ev_home", "demand") +# track 4 +def _t4() -> dict: + return _json("pjm-market-tools", "headline") + + +def _zones() -> pd.DataFrame: + return _parquet("pjm-market-tools", "zone_summary") + + +def t4_lmp_hours() -> float: + return float(_zones().hours.max()) + + +def t4_lmp_zones() -> float: + return float(len(_zones())) + + +def t4_median_congestion_share() -> float: + return float(100 * _zones().congestion_share_of_basis.median()) + + +def t4_min_congestion_share() -> float: + return float(100 * _zones().congestion_share_of_basis.min()) + + +def t4_median_hours_for_half() -> float: + return float(100 * _zones().hours_for_half_congestion.median()) + + +def t4_median_top5_share() -> float: + return float(100 * _zones().top5pct_hours_congestion_share.median()) + + +def _rank() -> pd.DataFrame: + return _parquet("pjm-market-tools", "rank_stability") + + +def t4_rank_rho_min() -> float: + return float(_rank().spearman_rho.min()) + + +def t4_rank_rho_max() -> float: + return float(_rank().spearman_rho.max()) + + +def t4_year_pairs_with_sign_change() -> float: + return float((_rank().zones_changing_sign > 0).sum()) + + +def t4_year_pairs() -> float: + return float(len(_rank())) + + +def t4_location_spread() -> float: + z = _zones() + return float(z.mean_lmp.max() - z.mean_lmp.min()) + + +def t4_location_spread_share() -> float: + z = _zones() + return float(100 * (z.mean_lmp.max() - z.mean_lmp.min()) / z.mean_energy.mean()) + + +def _lda() -> pd.DataFrame: + return _parquet("pjm-market-tools", "lda_separation") + + +def t4_rpm_years() -> float: + return float(len(_lda())) + + +def t4_years_zone_above_rto() -> float: + return float((_lda().zones_above_rto > 0).sum()) + + +def t4_max_zone_ratio() -> float: + return float(_lda().max_ratio_to_rto.max()) + + +def _rto_price(dy_start: int) -> Callable[[], float]: + def f() -> float: + d = _lda() + return float(d.loc[d.dy_start_year == dy_start, "rto_price"].iloc[0]) + + return f + + +def _bt() -> pd.DataFrame: + return _parquet("pjm-market-tools", "rpm_backtest") + + +def t4_median_persistence_error() -> float: + return float(np.exp(_bt().abs_log_error.median())) + + +def t4_worst_persistence_ratio_2025() -> float: + b = _bt() + row = b[b.target_year == 2025].iloc[0] + worst = b.loc[b.abs_log_error.idxmax()] + assert int(worst.target_year) == 2025, "worst persistence miss is no longer 2025/26" + return float(row.actual / row.persistence) + + +def t4_ranges_scored() -> float: + return float(_bt().inside.notna().sum()) + + +def t4_ranges_containing() -> float: + return float(_bt().inside.dropna().astype(bool).sum()) + + +def t4_headline_consistent() -> float: + """headline.json and the parquets must agree; returns the worst gap.""" + h = _t4() + pairs = [ + (h["median_congestion_share_of_basis"] * 100, t4_median_congestion_share()), + (h["median_hours_for_half_congestion"] * 100, t4_median_hours_for_half()), + (h["rpm_max_zone_ratio"], t4_max_zone_ratio()), + (h["backtest_ranges_containing_actual"], t4_ranges_containing()), + (h["backtest_median_persistence_error_factor"], t4_median_persistence_error()), + ] + return float(max(abs(a - b) for a, b in pairs)) + + +# track 5 +def t5_min_seconds() -> float: + return float(_json("docket-tracker", "run_summary")["min_seconds_between_requests"]) + + +def t5_rerun_added() -> float: + return float(_json("docket-tracker", "run_summary")["added_on_rerun"]) + + # track 6 def _sig() -> dict: return _json("carbon-aware-der", "signal_comparison") @@ -370,6 +503,8 @@ class Claim: R_T1 = "interconnection-analytics/README.md" R_T2 = "hosting-capacity-sim/README.md" R_T3 = "tariff-explorer/README.md" +R_T4 = "pjm-market-tools/README.md" +R_T5 = "docket-tracker/README.md" R_T6 = "carbon-aware-der/README.md" R_FIND = "FINDINGS.md" @@ -425,6 +560,62 @@ class Claim: Claim(R_T3, "+28.8%", t3_ev_demand, 28.76, 0.05), Claim(R_FIND, "+36.2%", t3_solar_demand, 36.24, 0.05), Claim(R_ROOT, "-32.6%", t3_solar_tou, -32.60, 0.05), + # --- track 4 --- + Claim(R_T4, "43,080 hours", t4_lmp_hours, 43080, 0.0), + Claim(R_T4, "20 load zones", t4_lmp_zones, 20, 0.0), + Claim(R_T4, "median **81.1%**", t4_median_congestion_share, 81.08, 0.05), + Claim(R_T4, "less than **61.0%**", t4_min_congestion_share, 61.02, 0.05), + Claim(R_T4, "largest **10.5%**", t4_median_hours_for_half, 10.47, 0.05), + Claim(R_T4, "carry **34.1%** of it", t4_median_top5_share, 34.14, 0.05), + Claim(R_T4, "**0.85 to 0.97**", t4_rank_rho_min, 0.847, 0.005), + Claim(R_T4, "**0.85 to 0.97**", t4_rank_rho_max, 0.974, 0.005), + Claim(R_T4, "in only one of the four year pairs", t4_year_pairs_with_sign_change, 1, 0.0), + Claim(R_T4, "in only one of the four year pairs", t4_year_pairs, 4, 0.0), + Claim(R_T4, "**$7.23/MWh**", t4_location_spread, 7.231, 0.005), + Claim(R_T4, "about **24%**", t4_location_spread_share, 24.37, 0.5), + Claim(R_T4, "| RTO | 164.77 |", _rto_price(2018), 164.77, 1e-6), + Claim(R_T4, "| 100.00 |", _rto_price(2019), 100.00, 1e-6), + Claim(R_T4, "| 76.53 |", _rto_price(2020), 76.53, 1e-6), + Claim(R_T4, "| 140.00 |", _rto_price(2021), 140.00, 1e-6), + Claim(R_T4, "| 50.00 |", _rto_price(2022), 50.00, 1e-6), + Claim(R_T4, "| 34.13 |", _rto_price(2023), 34.13, 1e-6), + Claim(R_T4, "| 28.92 |", _rto_price(2024), 28.92, 1e-6), + Claim(R_T4, "| 269.92 |", _rto_price(2025), 269.92, 1e-6), + Claim(R_T4, "| 329.17 |", _rto_price(2026), 329.17, 1e-6), + Claim(R_T4, "| 333.44 |", _rto_price(2027), 333.44, 1e-6), + Claim(R_T4, "**1.46x**", t4_median_persistence_error, 1.465, 0.005), + Claim(R_T4, "**9.33x**", t4_worst_persistence_ratio_2025, 9.333, 0.005), + Claim(R_T4, "**4 of 6**", t4_ranges_containing, 4, 0.0), + Claim(R_T4, "**4 of 6**", t4_ranges_scored, 6, 0.0), + Claim(R_T4, "**8 of 10**", t4_years_zone_above_rto, 8, 0.0), + Claim(R_T4, "**8 of 10**", t4_rpm_years, 10, 0.0), + Claim(R_T4, "**3.33x**", t4_max_zone_ratio, 3.328, 0.005), + Claim(R_T4, "**3.33x**", t4_headline_consistent, 0.0, 1e-9), + Claim(R_FIND, "median **81.1%**", t4_median_congestion_share, 81.08, 0.05), + Claim(R_FIND, "less than **61.0%**", t4_min_congestion_share, 61.02, 0.05), + Claim(R_FIND, "largest **10.5%**", t4_median_hours_for_half, 10.47, 0.05), + Claim(R_FIND, "carry **34.1%** of it", t4_median_top5_share, 34.14, 0.05), + Claim(R_FIND, "**0.85 to 0.97**", t4_rank_rho_min, 0.847, 0.005), + Claim(R_FIND, "**0.85 to 0.97**", t4_rank_rho_max, 0.974, 0.005), + Claim(R_FIND, "**$7.23/MWh**", t4_location_spread, 7.231, 0.005), + Claim(R_FIND, "spread of $7.23/MWh", t4_location_spread, 7.231, 0.005), + Claim(R_FIND, "about **24%**", t4_location_spread_share, 24.37, 0.5), + Claim(R_FIND, "**1.46x**", t4_median_persistence_error, 1.465, 0.005), + Claim(R_FIND, "**9.33x**", t4_worst_persistence_ratio_2025, 9.333, 0.005), + Claim(R_FIND, "moved 9.33x", t4_worst_persistence_ratio_2025, 9.333, 0.005), + Claim(R_FIND, "**4 of 6**", t4_ranges_containing, 4, 0.0), + Claim(R_FIND, "**8 of 10**", t4_years_zone_above_rto, 8, 0.0), + Claim(R_FIND, "**3.33x**", t4_max_zone_ratio, 3.328, 0.005), + Claim(R_ROOT, "median 81.1%", t4_median_congestion_share, 81.08, 0.05), + Claim(R_ROOT, "largest 10.5% of hours", t4_median_hours_for_half, 10.47, 0.05), + Claim(R_ROOT, "half of congestion in 10.5% of hours", t4_median_hours_for_half, 10.47, 0.05), + Claim(R_ROOT, "is $7.23/MWh", t4_location_spread, 7.231, 0.005), + Claim(R_ROOT, "2025/26 by 9.33x", t4_worst_persistence_ratio_2025, 9.333, 0.005), + Claim(R_ROOT, "one auction moved 9.33x", t4_worst_persistence_ratio_2025, 9.333, 0.005), + # --- track 5 --- + Claim(R_T5, "at least 10 seconds apart", t5_min_seconds, 10, 0.0), + Claim(R_T5, "a rerun adds nothing", t5_rerun_added, 0, 0.0), + Claim(R_ROOT, "ten seconds between requests", t5_min_seconds, 10, 0.0), # --- track 6 --- Claim(R_T6, "r = -0.66", t6_profile_corr, -0.658, 0.01), Claim(R_T6, "4.1x", t6_strength_ratio, 4.114, 0.05), @@ -475,6 +666,20 @@ class Claim: (R_T1, "conditioned on success", "the survivorship mechanism must stay stated"), (R_T1, "Berkeley Lab", "LBNL data attribution"), (R_T6, "CarbonCast", "CarbonCast data attribution"), + (R_T4, "COVID-EMDA", "track 4 LMP data attribution"), + (R_T4, "Switchbox", "track 4 capacity price attribution"), + (R_T4, "Day-ahead only", "track 4 has no real-time prices"), + (R_T4, "floor, not an estimate", "zonal concentration understates nodal concentration"), + (R_T4, "No forward forecast is published here", "track 4 must not drift into forecasting"), + (R_T4, "FERC-approved cap", "the last two capacity prices were administratively set"), + (R_T4, "corroborate rather than discover", "track 4 prior art: IMM State of the Market"), + (R_FIND, "State of the Market Report for PJM", "track 4 prior art: IMM congestion decomposition"), + (R_FIND, "Variable Resource Requirement curve", "track 4 prior art: capacity market design reviews"), + (R_T5, "Not validated against the real site", "track 5 has never read the real PA PUC site"), + (R_T5, "Not for filing deadlines or legal reliance", "track 5 personal-awareness disclaimer"), + (R_T5, "is invented", "track 5 fixture is synthetic"), + (R_T5, "never expands a title into a guess", "track 5 summaries are extractive only"), + (R_ROOT, "not for filing deadlines or legal reliance", "track 5 disclaimer in the root README"), ] # Scope language this work does not support. "proves" / "always" are the @@ -483,7 +688,7 @@ class Claim: FORBIDDEN_TEXT: list[tuple[str, str]] = [ ("proves that", "no result here is a proof; they are bounded empirical findings"), ("in every grid", "track 6 covers PJM only; the 13-region test lives in another repo"), - ("for the first time", "novelty claim; prior art exists for all four tracks"), + ("for the first time", "novelty claim; prior art exists for every study track"), ("we discovered", "novelty claim"), ("novel finding", "novelty claim"), ("guaranteed", "no guarantee is established by any track"),