Europe's energy system is evolving quickly. As wind and solar grow, the grid needs more flexibility. The ability to adjust generation or consumption when reality doesn't match forecasts. This creates a concrete challenge for aggregators, energy communities and technology providers that need to design, test and validate market strategies before real participation is possible. That's where market emulators come in.
In the STUNNED project, R&D NESTER developed a Market Emulator: a modular, reproducible simulation environment that replicates the clearing behaviour of key European markets, so we can stress test ideas, train bidding strategies and validate system integration before deployment.
THE STUNNED MARKET EMULATOR
At a high level, R&D NESTER's Market Emulator receives bids, applies the clearing rules of each market layer and then return market outputs, including the accepted quantities and clearing prices, matched trades or balancing activations/rejections.
This is especially useful for countries where flexibility market structures are still developing, because it gives stakeholders a safe way to explore "what would happen if...?" scenarios without the risk.
WHY SIMULATE MARKETS AT ALL?
Electricity trading is not a single market. It's a stack of markets operating on different timescales. Participants may buy or sell energy day ahead, adjust positions intraday and then try to provide balancing services to keep the system stable when last minute deviations occur.
For flexibility service providers and aggregators, value often comes from revenue stacking, which means using the same physical flexibility (e.g., batteries, HVAC, industrial loads) to earn income across multiple markets, while staying compliant with market rules.
A good emulator allows teams to answer practical questions such as:
* What happens if an aggregator shifts capacity from intraday into balancing market?
* How do execution rules like "Fill or Kill" change the outcome of a trade?
* Can our software reliably submit bids and interpret results in the formats used by real systems?
Because R&D Nester's Market Emulator is deterministic and reproducible, the same scenario can be replayed many times, making it ideal for development, training and interoperability testing.
In STUNNED, the Market Emulator reproduces the clearing behaviour of three main components used by the pilots: SDAC (day ahead energy market), XBID (intraday continuous energy market) and Balancing Markets - mFRR (Manual Frequency Restauration Reserve) and RR (Replacement Reserves) ancillary services.
Each component has its own rules, timing and outputs. However, they share the same goal: translating bids into a set of accepted volumes, prices, trades or activations, which will ultimately result in revenues.
SDAC (DAY AHEAD): PLANNING TOMORROW WITH AN AUCTION
The day ahead market works as a coordinated auction. Bids for supply and demand are collected for each 15 minute Market Time Unit (MTU), then cleared after gate closure (midday on D 1). Supply bids are sorted from lower to higher prices, demand bids from higher to lower prices and the intersection of the curves yields the Market Clearing Price (MCP) and the traded quantity for each MTU. At the clearing price, bids "in the money" are accepted, bids "out of the money" are rejected and bids exactly at the clearing price can be accepted pro rata when needed.

Figure 1 - Simulated Supply and Demand aggregated curves for 12h15, October 1st, 2025, in Spain.
XBID (Intraday Continuous): trading like a live exchange
Intraday continuous trading works differently: it's a peer to peer model based on a shared Order Book. Participants submit buy and sell orders that can match continuously, often using a price time priority logic similar to financial markets.
The Market Emulator supports common intraday order behaviours such as:
* NON (can match immediately or rest in the Order Book),
* IOC (match now or cancel),
* FOK (must fully match now or cancel),
* ICE (iceberg) where only part of the volume is visible and replenishes as it trades.
Outcomes can be immediate trades, a rejection or insertion into the Order Book (where the order remains until it matches later or expires at gate closure).

Figure 2 - High-level XBID clearing process of the STUNNED Market Emulator showing bid submission, clearing engine and result publication.
BALANCING (MFRR / RR): STABILITY WHEN REALITY DEVIATES
Balancing markets exist to keep the power system stable when production and consumption drift from scheduled plans. In STUNNED, R&D NESTER's Market Emulator covers mFRR and RR balancing services and clears bids against TSO needs.
Bids are aggregated by MTU and direction ("Up" and "Down"), then the Market Emulator determines a marginal activation price and accepts cheaper bids first, using pro rata activation when multiple bids sit at the marginal price. Outputs are produced using message structures aligned with ENTSO E CIM style reserve bid and activation/rejection documents, supporting downstream integration and automation.

Figure 3 - Example of mFRR Availability and Activation in Portugal (Source: REN 18/02/2026)
FROM SANDBOX TO PILOTS: WHAT COMES NEXT
The Market Emulator includes a practical interface, which allows the submission of bids for SDAC, XBID, mFRR and RR, enabling other STUNNED components to interact with it like they would with real market systems.

Figure 4 - Market Emulator Bid Submission Endpoint Details for mFRR bid
R&D Nester's Market Emulator let us test energy and flexibility market participation safely, repeatedly and realistically, building confidence in strategies and software before the real grid is ever involved.
For more information:

STUNNED Project website
STUNNNED Project @ R&D Nester
website