A plain-English walkthrough: what problem we're solving, how each piece works, what the numbers mean, and how long each step takes.
If you build a grid battery in Germany — say 10 MW / 20 MWh (it can push or pull 10 MW of power, and holds enough energy to do that for 2 hours) — how much money will it make per year?
We give two answers:
Upper bound — the most the battery could possibly have earned if it had known every price in advance. Nobody can achieve this. It's a ceiling.
Realistic — what a real operator would have earned, making decisions without knowing the future. This is the number you would put in a business plan.
All results are quoted as € per MW per year, so you can scale them to any battery size.
There are three families of income. A battery can't do everything at once — every MW it promises to one market can't be used in another — so the hard part is deciding how to split it, every hour of every day.
The grid frequency must stay at 50 Hz. The grid operators (TSOs) pay batteries to be ready to help:
Redispatch 2.0, inertia, black start, reactive power and a future capacity market. These are entered as simple € per MW per year assumptions because there's no market price history to model them from.
Everything is real, historical, public market data, every 15 minutes, from January 2025 to September 2026:
| What | Why we need it | Source |
|---|---|---|
| Day-ahead prices | The main trading price | ENTSO-E (European grid operators' platform) |
| Intraday prices | The "real-time" trading price | EPEX, via Energy-Charts (Fraunhofer) |
| FCR / aFRR / mFRR auction results | What standby capacity paid, and which bids won | regelleistung.net (German TSOs) |
| aFRR activation prices | What the grid paid when it actually called on batteries | ENTSO-E (free API key) |
| Activated reserves, imbalance price | How much reserve was actually used | netztransparenz.de (free API login) |
| Grid operators' wind, solar and demand forecasts | To forecast prices the way a trader would | Energy-Charts |
Once downloaded, everything is cached locally so it never needs downloading again.
For each day, we hand a computer optimiser all of that day's actual prices and ask: "what was the best possible plan?" — how many MW to put into FCR, aFRR and mFRR in each 4-hour block, and when to charge and discharge.
The optimiser respects the physics: the battery can't hold more than 20 MWh, loses ~12% of energy on a round trip, must keep enough energy in reserve for any standby it has promised, and can do at most 2 full cycles a day (warranty limit).
It's also paid the best price in each standby auction. So it's a ceiling — useful to know how much is on the table, but not achievable.
This is the important one. We built a simulated battery operator and let it run through every day of the 17 months, making each decision at the moment a real operator would, using only what they'd know then. Then it's paid what the market actually paid.
A model is only useful if it matches reality. The website bess-index.com publishes the actual monthly earnings of enspired, a company that trades real batteries in Germany (2-hour batteries, same as ours).
We ran the simulated operator over the same 17 months and compared month by month — without tuning anything to make it fit:
| Average earnings (€k / MW / yr, before costs) | |
|---|---|
| enspired — real trading results | 225 |
| Our realistic case (simulated operator) | 216 (7% lower) |
| Our upper bound (perfect hindsight) | 481 |
| Old model with haircuts, for comparison | 183 (19% lower) |
It also follows the ups and downs month to month very closely (correlation 0.95; typical monthly miss 12%). So the realistic case is a fair, slightly cautious estimate of what a professional operator achieves.
We can't simulate the future directly, so we take the last 12 months of real prices, reshape them for each future year, and re-run the whole simulation:
There are three scenarios: low, base, high. These reshaping factors are my assumptions, not a full market model — this is the least certain part of the work.
After costs (trading fees and battery wear), per MW per year, at 2 cycles a day:
| Battery | Realistic | Upper bound |
|---|---|---|
| 1-hour | €143k | €281k |
| 2-hour | €171k | €385k |
| 4-hour | €201k | €451k |
So a 10 MW / 20 MWh battery would have made about €1.7 million in the last year, realistically. In the base forecast this falls to about €116k per MW by 2035 as more batteries compete for the same income.
One thing that looks odd: the intraday line is slightly negative. That's because when the grid calls on the battery for aFRR, the battery later has to buy back the energy it used — that cost shows up under intraday, while the payment shows up under aFRR energy. Read the two together.
| Download | Time | |
|---|---|---|
| aFRR activation prices (ENTSO-E) — 21 months | ~30 min | |
| Standby auction results (regelleistung.net) | ~5 min | |
| Day-ahead, intraday, netztransparenz, forecasts | ~3 min |
ENTSO-E is slow because it only returns about a week per request (~20 seconds each). After this, everything is saved locally.
| Task | Time | |
|---|---|---|
| Simulated operator, one day | ~0.1 s | |
One year, both answers (run.py) | ~36 s | |
17-month check vs enspired (validate.py) | ~48 s | |
| Interactive app, one run | ~40 s | |
| Interactive app, with forecast to 2035 | ~15 min | |
Building the website data (export_web.py) | ~25 min |
The website lets visitors pick 9 battery types (1, 2 or 4 hours × 1, 1.5 or 2 cycles a day). For each one we run:
That's roughly 9 × 28 ≈ 250 year-long simulations at ~35 seconds each ≈ 2½ hours of computing, spread across 9 processor cores at once → about 25 minutes.
The website itself then loads instantly, because visitors just read those pre-computed results (a 76 kB file) — nothing runs in their browser except simple rescaling for power, battery wear cost and grid services.