WorksEconomics, Econometrics and Finance
Modelling Regime Shifts in Continuous Intraday Electricity Markets with State-dependent Hawkes Processes
Abstract
The growing importance of intraday trading in Europe, driven by the increasing penetration of renewable energy sources, has led to higher volatility and periods of market stress. Understanding how order flow behaves under varying liquidity conditions requires models that adapt to the state of the market. This paper proposes a multivariate state-dependent Hawkes process to model the flow of orders across different liquidity regimes in the intraday continuous electricity market. The observed market states are identified using a proposed Liquidity Stress Index (LSI), which quantifies stress using the bid-ask spread in the limit order book, order book volume, and mid-price volatility. Transitions between states induce changes in the intensity parameters, resulting in piecewise dynamics that reflect regime-specific order-flow behavior. The model is calibrated on January-March 2024 Dutch intraday continuous cross-border intraday (XBID) hourly order data from EPEX SPOT. The estimated dynamics show that order flow is strongly self-exciting and near-critical, that executed trades trigger new same-side orders while the reverse effect is negligible, and that liquidity stress mainly strengthens transaction self-excitation rather than reshaping the cross-side structure. Robustness checks over the LSI composition and the state partition show that the results are driven by the regime construction itself: alternative index compositions fit within a narrow band, three states fit better than two, and removing the states clearly degrades the fit relative to a single-regime Hawkes benchmark. The results highlight both the value of conditioning order-flow models on liquidity stress and the limits of a single-exponential specification when event frequencies are highly imbalanced.
Introduction
Intraday Continuous (IDC) electricity trading has grown rapidly across Europe, with rising traded volumes and increasing market activity. This development is closely linked to the growing penetration of renewable energy sources, which introduces additional uncertainty into power systems and contributes to higher volatility in intraday electricity prices [1], [2]. Because renewable generation, especially wind and solar, is inherently intermittent and difficult to forecast perfectly, market participants increasingly rely on the intraday market to continuously adjust their positions closer to delivery. According to EPEX SPOT, one of the largest European electricity exchanges, 190 TWh was traded in the IDC market in 2024; the Netherlands ranked fourth by volume, after France, Great Britain, and Germany [3]. This rapid growth highlights the need to better understand the behavior of the intraday market at a fine temporal scale.
The impact of renewable generation on intraday electricity prices has been documented in several studies. Kulakov and Ziel show that forecast errors in wind and solar production have a nonlinear effect on intraday prices, with solar forecast errors often exerting a stronger influence because of their correlation with peak demand [4]. Similarly, Goodarzi et al. find that higher renewable forecast errors increase imbalance volumes, which translate into higher spot prices [5]. In a broader European context, Cevik and Zhao show that electricity price volatility is highly interconnected across countries, with around 73% of forecast error variance in national markets driven by cross-border volatility spillovers rather than domestic shocks [6]. Their results further indicate that a higher share of intermittent renewables is a key driver of these international spillovers. Together, these findings suggest that the increased penetration of renewables has made intraday electricity markets more active, more volatile, and more dependent on rapid rebalancing.
This evolution makes it particularly important to study IDC markets at a fine temporal scale, not only through transactions but also through the order-level dynamics that shape the Limit Order Book (LOB). Order submissions, cancellations, and executions determine the available liquidity and reflect the strategic interaction of market participants at high frequency. A recent systematic literature review also highlights the growing attention to European intraday markets and emphasizes the need for more research on high-frequency, order-level modeling [7].
In high-frequency finance, the stochastic arrival of orders and transactions is commonly modeled using Hawkes processes. Introduced by [8], Hawkes processes are self- and mutually-exciting point processes in which past events increase the probability of future events occurring. They have become a standard tool in financial econometrics for modeling irregularly spaced transactions, order arrivals, and systemic risk [9]. In the context of LOBs, Hawkes processes are particularly appealing because they capture the clustering of events and the endogenous feedback mechanisms that characterize modern electronic markets [9], [10].
Applications of Hawkes processes to electricity markets have gained traction in recent years. The work in [11] analyzed market order arrivals in the German IDC electricity market and found strong but short-lived self-excitation together with diurnal variation in the baseline intensity. In [12], the authors highlight the specific challenges of sparse IDC order books, where irregular liquidity and frequent gaps require tailored point-process models. Building on these insights, [13] integrated Hawkes processes with transient price impact models to derive optimal execution strategies for energy trading companies, explicitly accounting for the Samuelson effect and the increase in volatility as gate closure approaches. Overall, these studies demonstrate that Hawkes-type models are well suited to capturing clustering, liquidity stress, and execution dynamics in IDC electricity markets.
Despite the growing interest in IDC markets, most work focuses on realized transactions rather than orders, ignoring the full dynamics of the LOB. Moreover, Hawkes-based studies on IDC markets adopt a single-regime specification — where model parameters remain constant regardless of market conditions — and do not quantify how order arrival intensities vary jointly across liquidity regimes and/or delivery hours. Moreover, the relationship between liquidity conditions and Hawkes parameters remains underexplored for IDC products. In this paper, we address this gap by estimating a state-dependent Hawkes model for Dutch IDC XBID hourly contracts, where the baseline intensities, excitation coefficients, and decay rates all depend on an observed Liquidity Stress Index (LSI) constructed from bid–ask spread, order book volume, and mid-price volatility. Unlike the model proposed in [14], we explicitly allow the baselines to be state-dependent and use LSI to capture the different regimes in every trading session.
The main contributions of this paper are as follows:
LSI-based regimes: We construct an interpretable Liquidity Stress Index from bid–ask spread in the LOB, order book volume and mid-price volatility, and use it to define low-, mid-, and high-stress observable regimes in IDC markets.
Session-specific models: We estimate a state-dependent Hawkes model for every delivery hour from January 2024 to March 2024 with state-dependent baselines, excitations, and decay rates.
Stability by design: We add a spectral-radius penalty with the same target in every state to keep fits away from supercritical values, and derive analytical gradients for estimation.
Validation and evidence: We validate the fitted models using time-rescaled residuals and provide empirical evidence on regime-dependent order flow dynamics.
Robustness: We compare the retained specification against eleven alternative index compositions, a single-regime Hawkes benchmark, and three alternative state partitions, and show that the results are driven by the regime construction rather than by a particular component choice or discretisation.
The remainder of the paper is organized as follows. Section II introduces the European power market and describes the mechanics of the IDC market, together with empirical evidence of limit order clustering. Section III presents the mathematical formulation of the liquidity stress index LSI and the proposed state-dependent Hawkes process, including
the penalized log-likelihood and the analytical gradients. Section IV describes the training methodology, parameter initialization, and dataset used in the empirical analysis. Furthermore, Section IV presents and discusses the empirical results, including goodness-of-fit assessments, parameter estimates, and robustness checks over the index composition and the state partition. Finally, the paper is concluded in Section V.
Background on Electricity Market
This section provides the foundational context and empirical motivation for the modeling framework presented in this study. It begins with an overview of the European short-term electricity trading. We then detail the microstructural mechanics of the Intraday Continuous (IDC) market, including order types and the price-priority execution logic. Finally, we conduct an empirical analysis of Dutch market data to identify key characteristics—such as event clustering, time-to-gate effects, and overdispersion—that motivate the need for a self-exciting modeling approach.
Overall Overview
Short term electricity trading in Europe takes place in two main markets: the day-ahead and the intraday. Figure 1 shows the trading timeline at EPEX SPOT exchange platform. The day-ahead is auction-based with a uniform price for every 15 minutes and every hour, where electricity can be traded between the different European Union (EU) member states since the introduction of the Single Day-Ahead Coupling (SDAC) in 2015. In most EU countries, the trading starts 45 days in advance and closes one day before delivery at 12:00 CET. Results are published from 12:55 CET onwards. Market participants can balance out their positions in the IDC market that starts at 14:00 CET the day before and continues until delivery starts. In contrast to the day-ahead market, the IDC market does not aggregate all orders into one single price, the transactions in this case happen continuously which generates several prices during the same trading session. Market participants can continuously trade 15-minute, 30-minute, and hourly products at the same time up to 0 minutes before deliveries for Austria, Belgium, France, Finland, and the Netherlands, and 5 minutes for Germany and Switzerland [3]. These times refer to the local gate closure; cross-zonal trading on the shared order book closes earlier, as detailed in Section II-B.

Figure 1. EPEX SPOT power trading timeline overview as for February 2025.
Intraday Continuous Market
EPEX SPOT uses the M7 system from Deutsche Börse for IDC trading. For every message or entry into the LOB, an Action Code is attached to classify the event. An added order has A (added), a matched transaction has M (matched), and a user-deleted order has D (deleted). When an order is submitted, M7 first validates whether all entry requirements are met. If the validation is successful, the order is then considered for matching. For local contracts, order actions are performed on the local exchanges. For global contracts, order matching is handled by the Shared Order Book (SOB) module, regardless of the delivery area where the orders were entered. The SOB maintains a consolidated order book for all global contracts. The order book follows the price–time priority principle: orders with a better price (higher for buy orders, lower for sell orders) are executed first, and among orders at the same price, earlier submissions take precedence. When a new “aggressor” order is submitted with a price that crosses at least one existing order in the book, the system generates one or more transactions. All submitted orders are either deleted or matched before delivery, since any open order remaining at delivery is automatically removed by the system.
Two distinct closures apply to these products. The cross-zonal gate closure (GCT) occurs 60 minutes before delivery and terminates the shared order book: from that point onwards an order can no longer be matched against a counterparty in another bidding zone, and the consolidated cross-border order book for that contract ceases to exist. Any residual trading in the remaining hour is local-only and is not part of the XBID shared order book. For the XBID hourly products studied in this paper, the GCT is therefore the effective end of the observed trading session.
Figure 2 illustrates Dutch IDC transaction prices for the XBID hourly contract on the 16th of January for delivery hour 20:00. At the beginning of the trading session, the LOB is sparse and traded volumes are relatively low. As the market approaches gate closure, more accurate forecasts of renewable energy generation, system load, and cross-border capacity become available. Market participants react to this continuous flow of new information, leading to a tightening of the bid–ask spread, increased price volatility, and a noticeable intensification of trading activity. This characteristic intraday behavior is commonly referred to as the Samuelson effect [13].
Figure 2. Intraday evolution of the XBID market for the delivery hour 20:00–21:00 on the 16th of January 2024. The top panel shows the mid-price trajectory in euros, the middle panel displays the bid-ask spread, and the bottom panel displays the total volume of active orders in the LOB, computed as the average of bid and ask volumes.
Empirical Analysis
Clustering, Time-to-gate Effects, and Event-type Asymmetries
Scatter and probability density plots of interarrival times against time-to-gate in Figure 3 show that orders arrive in bursts: clusters of very short interarrival times are followed by long inactive periods. These bursts become more pronounced as delivery approaches, indicating strong dependence on time-to-gate. Moreover, the patterns are asymmetric across event types: BUY and SELL added orders, BUY and SELL transactions which can be a full match (M) or partial match (P).

Figure 3. Scatter and density plots of order interarrival times against time-to-delivery for an XBID hourly contract (2024-01-16 20:00). The x-axis shows minutes before the delivery time, and the y-axis shows the interarrival time between consecutive orders or trades. Because this is an XBID product, the arrival of orders and trades stops 60 minutes before delivery as explained in II-B.
Coefficient of Variation and Microstructural Interpretation
Before specifying a model for order-flow dynamics, we examine the temporal structure of event arrivals through
Coefficient of Variation (CV) of interarrival times:
where and denote the mean and standard deviation of interarrival times, respectively. Under a homogeneous Poisson process, where events arrive independently at a constant rate, the interarrival times are exponentially distributed and exactly. Values substantially above one indicate overdispersion, meaning that events cluster in bursts separated by quieter intervals rather than arriving uniformly over time.
Figure 4 displays computed in 10-minute bins across delivery hours and time-to-gate for all Dutch XBID hourly contracts in January 2024. Two patterns stand out. First, CV values are consistently well above one across almost the entire heatmap, confirming that overdispersion is consistent and not confined to specific hours or trading phases. Second, the degree of burstiness is heterogeneous along both axes: it intensifies as the time-to-gate decreases (i.e., as the delivery time approaches).
Figure 4. Coefficient of variation (CV) of interarrival times across delivery hours and time-to-gate for Dutch XBID hourly contracts in January 2024, computed in 10-minute bins. Values above one indicate overdispersion relative to a Poisson baseline. Burstiness intensifies as the gate closure approaches and varies across delivery hours.
From a microstructural perspective, such clustering arises naturally when the arrival of one order triggers further submissions from other participants—for instance, algorithmic strategies that react to changes in the order book by rapidly placing new orders, or participants responding to exogenous information such as updated renewable forecasts, congestion signals, or changes in available cross-border capacity. The heterogeneity across delivery hours further suggests that the intensity of these feedback loops varies with the underlying supply-demand conditions of each contract.
These empirical features are fundamentally inconsistent with a Poisson assumption and motivate the use of a multivariate Hawkes process, which explicitly models self- and cross-excitation between event types and can accommodate the regime-dependent dynamics suggested by the heterogeneous CV patterns.
Model Description
This section presents the full state-dependent Hawkes process model. We begin by introducing the Liquidity Stress Index (LSI), which serves as the regime variable governing the model dynamics. We then formulate the multivariate Hawkes process with state-dependent parameters. Next, we discuss the branching matrix and the associated stability conditions. We derive the log-likelihood used for estimation, and finally introduce a spectral-radius penalty to encourage stationarity of the models during optimization.
Liquidity Stress Index (LSI)
Liquidity is multidimensional, with no single accepted definition nor an agreed relationship between the proxies used to capture it. Hagemann and Weber [15] identify six dimensions of liquidity in continuous energy markets: tightness, resiliency, depth (or price impact), short-run price volatility, delay and search costs, and trading activity. Three of these are the most consistently used in the literature [16], [17]: the bid–ask spread [18], [19], which reflects immediacy costs (tightness); the available volume in the LOB; and the mid-price response to shocks [20], which reflects short-run volatility and resiliency. These proxies show consistent co-movements. Fleming and Remolona [21] show that around information events, spreads widen, volume surges, and volatility rises together. The role of volume, however, is less settled. [22] find an inverse relationship between volume and the bid–ask spread and a negative relationship between volatility and lagged volume in futures markets, while [23] show that once volume is split into expected and unexpected components, unexpected volume shocks raise volatility asymmetrically. Trading activity is also close to independent of tightness once active participation is controlled for, suggesting spreads are tied more to trader presence than to raw volume.
Relying on a single proxy to define market regimes may be reductive. One approach is to construct separate models for each proxy, as seen in [14]. The authors utilized the bid–ask spread and queue imbalance to demonstrate how order intensities evolve as a market transitions from wide to tight spreads or from bid-side to ask-side dominance. However, a significant limitation of such independent models is the implicit assumption that order flow dynamics are exclusively driven by a single variable. To capture a more global representation of market liquidity and stress, we propose a composite index that integrates three key proxies: the bid–ask spread, LOB volume, and mid-price volatility. In this framework, the bid–ask spread captures instantaneous liquidity, LOB volume reflects the depth of active interest, and mid-price volatility measures the velocity of short-term price movements. By combining these three metrics, we aim to identify liquidity regimes more comprehensively than models based on isolated variables. Because the components can be combined in more than one way, and because the direction of the volume–stress relationship is disputed, we do not rely on a single construction: we test alternative index compositions, including one in which volume enters with a negative sign, as part of the robustness analysis in Section IV-F.
LSI construction
To capture regime shifts in order flow within IDC markets, we define the Liquidity Stress Index (LSI) as a composite indicator of market stress based on three microstructural features: the bid–ask spread, the volatility of the mid-price, and the order book volume. Because these features are measured in different units and operate on varying scales, a direct linear summation would disproportionately weigh certain variables and complicate interpretation. To address this, we re-scale the features using -normalization before aggregation. Standardization places all three features on a common, unit-variance scale, and the LSI is simply the average standardized deviation of the three features from their respective means. The LSI is then constructed as:
where , , and denote the standardized spread, total volume in the LOB, and mid-price volatility, respectively. For each feature , the standardized signal is computed using a fixed historical benchmark:
where and are the mean and standard deviation of feature estimated over the corresponding contract. In other words, the LSI is used as an ex-post regime-classification device for the fitted contracts, not as a real-time monitoring signal.
a) Bid–ask spread.
Let and denote the best bid and best ask prices at time , defined respectively as the highest standing buy price and the lowest standing sell price in the LOB. The bid–ask spread is defined as:
measures the instantaneous cost of immediacy and serves as a proxy for market tightness. Larger spread values indicate a less liquid and more stressed market.
b) Total Volume.
To capture the displayed liquidity in the LOB, we define the total volume as the average of the cumulative volume available on both the bid and ask sides as:
where
and
with and denoting the sets of active bid and ask orders in the LOB at time , respectively, and the volume associated with order .
c) Mid-price volatility.
To measure recent price volatility, we calculate the standard deviation of the mid-price over the previous 10 minutes. This choice is motivated by the presence of negative prices in European electricity markets, which dismisses the use of logarithmic returns or percentage-based volatility measures. Because log-returns are mathematically undefined for non-positive values, and simple returns become highly unstable near zero, the standard deviation of the raw mid-price provides
a more reliable metric for capturing short-term fluctuations in these specific IDC market conditions. Let the mid-price be defined as:
We define the mid-price volatility as:
where the mid-price observations are sampled at each message time, denotes the number of such observations in the interval , and
is the corresponding local average mid-price. Larger values of indicate greater short-term price instability and therefore more stressed market conditions.
Statistical properties of the LSI
Fig. 5 shows the median LSI per minute before delivery in January 2024. The index exhibits several peaks in stress and a consistent upward trend throughout the trading session, followed by a sharp decline toward the end. Typically, in each trading session, traded volume increases as time approaches gate closure (i.e., one hour before physical delivery), then drops significantly as the trading session ends and all active orders get closed.
Figure 5. Median of the Liquidity Stress Index (LSI) over time-to-delivery per minute bin in January 2024.
State construction and robustness
The choice of the three components—bid–ask spread, total active volume, and mid-price volatility—and their combination through z-score normalization was partially motivated by their correlation during stressed periods, as discussed earlier. We validate this empirically by defining three states based on the LSI quantiles (0.33 and 0.66), computed per contract so that the thresholds adapt to each contract’s own liquidity conditions. These quantiles were selected for two reasons: first, to ensure we have enough samples for each combination of state and event type needed for stable model training; second, to avoid defining high stress as just extreme LSI values, but rather as a distinct market condition.
Table I presents summary statistics for each state. The three states show clear differences in market conditions: mean bid–ask spreads increase from 9.95 in State 0 to 47.06 in State 2, while mean mid-price volatility rises from 3.21 to 16.20 basis points. Although the standard deviations grow with the state index—reflecting heavier tails in the Stressed regime—the ordering is preserved across different quantiles: the 25th percentile, median, and 75th percentile all increase monotonically from State 0 to State 2, confirming that the state separation is not driven by a few extreme observations but holds throughout the data. This progression confirms that the states capture a range from calm and liquid periods to increasingly stressed market conditions. Total active volume reflects both liquidity and stress levels [21] and its values are close in the three states. However, it still provides additional and necessary information about the market’s microstructure.
| Feature | State | Mean | Std | P25 | Median | P75 |
| Spread () | 0 | 9.95 | 28.24 | 2.03 | 5.13 | 12.18 |
| Spread () | 1 | 13.27 | 33.42 | 2.33 | 6.06 | 15.80 |
| Spread () | 2 | 47.06 | 94.97 | 3.66 | 11.57 | 39.90 |
| Volume () | 0 | 91.59 | 18.90 | 86.05 | 93.30 | 101.35 |
| Volume () | 1 | 99.38 | 21.00 | 91.65 | 100.20 | 110.10 |
| Volume () | 2 | 103.08 | 25.10 | 89.85 | 101.85 | 116.65 |
| Volat. () | 0 | 3.21 | 9.50 | 0.54 | 1.43 | 3.05 |
| Volat. () | 1 | 5.20 | 13.41 | 0.85 | 1.95 | 4.33 |
| Volat. () | 2 | 16.20 | 25.83 | 2.16 | 5.76 | 19.63 |
| LSI | 0 | -0.51 | 0.21 | -0.60 | -0.46 | -0.36 |
| LSI | 1 | -0.13 | 0.09 | -0.21 | -0.14 | -0.06 |
| LSI | 2 | 0.57 | 0.76 | 0.16 | 0.34 | 0.68 |
Table I. STATE-WISE SUMMARY STATISTICS OF RAW FEATURES (DUTCH XBID, JANUARY-MARCH 2024, LAST FOUR HOURS OF EACH TRADING SESSION)
Table II reports the sensitivity of the LSI to each component, and, since the thresholds are defined per contract, it also shows the share of contracts in which the swept index crosses each state threshold. Each component is moved from its lower to its upper percentile while the other two are held at their median. Moved from its 5th to its 95th percentile, each component moves the LSI across the lower threshold in almost every contract (97–100%) and across the upper threshold in most (66% for spread, 90% for volume, 99% for volatility), so none of them is inert. The three span similar ranges overall: 5.1, 5.7 and 7.3 standard deviations from the 1st to the 99th percentile. They differ in where that range sits. For the spread, 68% of the range lies in the tails, against 39% for volume and 50% for volatility. This comes from the skew of the spread, whose standard deviation is inflated by extreme values. For a stress index this is what we want, since the spread is narrow most of the time and widens under stress. Within the interquartile range the upper threshold is reached in a minority of contracts by any single component (28% for spread, and about half for volume and volatility), so in normal conditions the state is set by the three components jointly rather than by any single one. The LSI and its states provide a basis for modeling the state-dependent Hawkes dynamics. Section IV-F reports a full robustness analysis of both the LSI composition and the state partition.
Model Formulation
Hawkes Process
The classical one-dimensional Hawkes process as introduced in [8] by Alan G. Hawkes, serves as a baseline for our state-dependent reformulation. In the classical setting, the system is assumed to evolve under a single, time-homogeneous regime, corresponding to the special case with no state conditioning.
In the one-dimensional case (), events are characterized by a single counting process . The conditional intensity of the classical Hawkes process is given by
where denotes the baseline intensity, which can be seen as the component accounting for exogenous events, independent of the past history and is the excitation kernel that determines how strongly past events influence future events and therefore controlling the strength of the endogenous feedback mechanism. This decomposition illustrates a central advantage of Hawkes processes which is their ability to separate endogenous, history-dependent event generation, from exogenous, history-independent components.
One of the most widely used kernels in Hawkes processes is the single exponential kernel, defined as:
where controls the magnitude of excitation induced by each event and determines the rate at which this excitation decays over time. The exponential form implies a memory that decays rapidly, making it well suited to model situations where the influence of past events diminishes quickly. To illustrate this behavior, Figure 6 presents an example of a simulated intensity trajectory. Each arrival causes an instantaneous upward jump in the intensity , followed by an exponential relaxation back toward the baseline level.
Figure 6. Realisation of the conditional intensity of a one-dimensional Hawkes process with exponential kernel, together with its stationary expected value. The process is simulated over the time horizon with baseline intensity , excitation parameter , and decay rate . Each jump in corresponds to the arrival of an event followed by exponential decay, while the horizontal line indicates the expected intensity .
| Feature | LSI from | LSI to | LSI span | Component span | % crossing (low / high) |
| Sweep from the 1st to the 99th percentile | |||||
| Spread () | −0.475 | +1.236 | 1.711 | 100 / 100 | |
| Volume () | −1.109 | +0.778 | 1.887 | 100 / 98 | |
| Volat. () | −0.456 | +1.970 | 2.425 | 100 / 100 | |
| Sweep from the 5th to the 95th percentile | |||||
| Spread () | −0.337 | +0.216 | 0.553 | 97 / 66 | |
| Volume () | −0.687 | +0.465 | 1.151 | 99 / 90 | |
| Volat. () | −0.363 | +0.860 | 1.223 | 100 / 99 | |
| Sweep from the 10th to the 90th percentile | |||||
| Spread () | −0.283 | +0.048 | 0.331 | 91 / 43 | |
| Volume () | −0.551 | +0.323 | 0.874 | 98 / 80 | |
| Volat. () | −0.317 | +0.526 | 0.843 | 100 / 92 | |
| Sweep from the 25th to the 75th percentile | |||||
| Spread () | −0.209 | −0.064 | 0.144 | 78 / 28 | |
| Volume () | −0.357 | +0.103 | 0.460 | 94 / 52 | |
| Volat. () | −0.243 | +0.127 | 0.370 | 94 / 54 |
Table II. Sensitivity of the LSI to each component (Dutch XBID, January–March 2024). Each component is moved from its lower to its upper percentile while the other two are held at their median. “LSI from” and “to” give the resulting index values and “LSI span” their difference; “component span” is the component’s own range in standard deviations. The last column reports the percentage of contracts in which the swept LSI crosses the lower (33rd-percentile) and upper (66th-percentile) threshold.
State-Dependent Hawkes Process
As observed in our empirical analysis, the microstructure of the market changes during a single trading session. Therefore, we use a different variant called State-Dependent Hawkes process following [14].
Let be the number of event types and the number of observed LSI-based states. The observed state process (i.e., low/mid/high stress) is piecewise-constant and aligned to avoid look-ahead (i.e., at event times). For event type , the conditional intensity is:
where
Baselines : Exogenous arrival rate of type in state , the intensity level in the absence of recent events; it reflects how active the market is under a given liquidity regime.
Kernel : The memory profile governs how the impact of a past event decays over elapsed time ; sets the time scale (i.e., larger faster decay). The long-run cumulative impact equals
which forms the entry of the state- branching matrix and links to stability via its spectral radius.
Excitation coefficients : Magnitude of the instantaneous increase in caused by a past event of type when the system is in state ; large diagonal terms indicate strong self-excitation, off-diagonals capture cross-excitation between event types.
Branching Matrix and Stability
For each state , define the branching matrix as:
where denotes the spectral radius. Stability (subcriticality) requires . If , the branching representation is supercritical, meaning that the expected total number of descendants per event diverges and each arrival has positive probability of having infinitely many descendants.
Log-likelihood
The standard way to estimate the parameters of any Hawkes process model is to maximize the log-likelihood function. For a given contract, let denote the event times and types on , with observed state path aligned at . The log-likelihood is defined as:
where follows (11) using . Each contract is fitted independently.
Spectral-radius Penalty
Let and . With a common target applied to all states, we discourage supercritical fits via
and minimize the penalized negative log-likelihood
Since the same target applies to every state, no regime ordering is imposed by construction. The analytical gradients used for L-BFGS-B optimization are provided in Appendix A, and details on the parameter initialization, box constraints, and multi-start procedure in Appendix § 3.4.
Experimental Analysis
Data and Experimental Setup
We estimate contract-specific state-dependent Hawkes process models following [14], and extend their framework by allowing the baseline intensities, along with the other parameters, to be state-dependent, where the states are constructed using the proposed LSI. For each hourly delivery contract in the January–March 2024 Dutch IDC XBID dataset, we collect the last four trading hours and fit an independent model to that contract’s event sequence. Each contract is thus treated as a single session with its own parameter set, yielding one fitted model per contract.
The focus on the final four trading hours is motivated by the concentration of market activity during this period. Figure 7 shows the distribution of traded volume and transaction counts across time-to-gate intervals, indicating that approximately 69% of the total traded volume and 76% of the total number of transactions occur within the last four hours before delivery.
Figure 7. Distribution of executed transaction counts and traded volume across time-to-gate intervals for Dutch XBID hourly contracts in 2024. Each bin corresponds to transactions executed between and hours before delivery. The figure illustrates how both the number of transactions and the traded volume evolve as the market approaches delivery.
Table VIII (Appendix B) reports the distribution of order events for Dutch IDC XBID hourly contracts from January to March 2024 in the last 4 trading hours of every session. Columns correspond to the total number of messages and the four event types: (Added Sell), (Added Buy), (Transaction Sell), and (Transaction Buy). As a reminder, an added order has the action code A, while a transaction corresponds to any order getting matched through a full match (M) or a partial match (P). A total of approximately 24.6 million events were used to train our models, where order submissions outnumber executed transactions by a factor of over 8:1.
| H | total | ||||
| 0 | 707434 | 274155 | 348376 | 41869 | 43034 |
| 1 | 837780 | 331260 | 418901 | 43137 | 44482 |
| 2 | 935797 | 375929 | 469371 | 43842 | 46655 |
| 3 | 950564 | 360477 | 498304 | 45704 | 46079 |
| 4 | 824343 | 333181 | 398911 | 46069 | 46182 |
| 5 | 959566 | 389721 | 478518 | 45805 | 45522 |
| 6 | 1056837 | 481709 | 481427 | 46695 | 47006 |
| 7 | 1079880 | 419937 | 556983 | 51655 | 51305 |
| 8 | 1249237 | 513330 | 622046 | 57870 | 55991 |
| 9 | 1227040 | 533448 | 571207 | 62613 | 59772 |
| 10 | 1219924 | 476016 | 608382 | 68727 | 66799 |
| 11 | 1235659 | 547454 | 545076 | 76055 | 67074 |
| 12 | 1108521 | 490894 | 477152 | 73672 | 66803 |
| 13 | 1109684 | 459253 | 514089 | 71589 | 64753 |
| 14 | 1172639 | 499873 | 540825 | 69223 | 62718 |
| 15 | 1245870 | 522508 | 603245 | 62204 | 57913 |
| 16 | 1148778 | 487709 | 534680 | 66577 | 59812 |
| 17 | 1097540 | 487035 | 484688 | 63968 | 61849 |
| 18 | 1174105 | 557048 | 494688 | 61964 | 60405 |
| 19 | 1084916 | 443973 | 535400 | 53250 | 52293 |
| 20 | 919221 | 393020 | 425648 | 52095 | 48458 |
| 21 | 881859 | 351843 | 430072 | 48424 | 51520 |
| 22 | 828158 | 353774 | 378300 | 46341 | 49743 |
| 23 | 639495 | 252467 | 311548 | 37588 | 37892 |
| Total | 24694847 | 10336014 | 11727837 | 1336936 | 1294060 |
Table VIII. Hourly order event counts (Dutch XBID, January-March 2024)
Residual Analysis
Goodness-of-fit is assessed using time-rescaled residuals. For each event type ,
which should be i.i.d. under correct specification. For regime-wise checks, we compute state-conditional residuals as:
restricting to type- events occurring in state ; these should also be [24], [14].
We evaluate model adequacy along two dimensions: distributional fit (whether residuals follow ) and temporal independence (absence of serial correlation). Since hourly contracts are fitted independently, diagnostics are computed per contract and then aggregated. For distributional fit, we test whether residuals follow using the Kolmogorov–Smirnov (KS) test at the 5% significance level for each of the 12 event–state combinations, complemented by the average Wasserstein-1 distance between empirical residuals and the theoretical distribution. To mitigate the sensitivity of the KS test to large sample sizes, we downsample to residuals per event–state couple before testing. For temporal independence, we apply the Ljung–Box test at the 5% significance level to assess whether residuals are serially uncorrelated up to 10 lags. Table III summarises these results, with Panels A and C covering distributional fit and Panel B addressing independence.
| Event | Low | Normal | Stressed |
| Panel A: KS test pass rate (%, ) | |||
| 77.9 | 81.4 | 81.3 | |
| 71.7 | 78.5 | 78.2 | |
| 3.6 | 3.9 | 1.5 | |
| 4.7 | 9.2 | 4.6 | |
| Panel B: Ljung–Box pass rate (%, ) | |||
| 23.6 | 22.5 | 13.5 | |
| 12.5 | 17.9 | 3.3 | |
| 68.8 | 78.6 | 76.0 | |
| 67.5 | 68.8 | 66.7 | |
| Panel C: Avg. Wasserstein-1 distance to | |||
| 0.170 | 0.175 | 0.174 | |
| 0.184 | 0.185 | 0.256 | |
| 0.474 | 0.539 | 0.542 | |
| 0.598 | 0.487 | 0.486 |
Table III. Goodness-of-fit metrics across contracts.
The results reveal a distinction between order and transaction event types. For order arrivals (, ), the KS test is not rejected in 72–81% of contracts, and Wasserstein-1 distances remain modest (0.17–0.26), indicating that the model captures the marginal distribution of inter-arrival times well. However, Ljung–Box pass rates are low (3–24%), signaling residual serial dependence that the exponential kernel does not fully absorb. This suggests that order arrivals exhibit clustering at multiple timescales (e.g., rapid sequences of limit order updates) that a single-exponential kernel cannot represent them. The effect is most pronounced in the Stressed state, where Ljung–Box pass rates drop to 13.5% () and 3.3% (), consistent with intensified microstructural activity under high-volatility conditions.
For transactions (, ), the pattern inverts. Ljung–Box pass rates are adequate (67–79%), indicating that the temporal dependence structure is well captured by the Hawkes kernel. Yet the KS test rejects in over 90% of contracts, and Wasserstein-1 distances are roughly three times larger (0.47–0.60) than for orders. This distributional misfit points to a miscalibration of the compensator which transforms event times into residuals: transactions are likely more bursty than the model predicts, producing an excess of very small residuals alongside occasional long quiescent gaps. A plausible explanation is that transactions are mechanically coupled to the order book state (i.e., a transaction can only occur when a matching order exists) not just past transactions, introducing a dependence on order-side dynamics that the branching structure alone does not fully internalise. Finally, the 8:1 ratio between order additions and transactions noted in Section IV-A, together with the interarrival statistics in Table IX (Appendix C), shows that transactions have similar median interarrival times to orders but substantially higher means and skewness, reflecting prolonged quiet periods between execution bursts that Hawkes struggles to reproduce.
| Mean | 3.9697 | 3.6982 | 34.4986 | 35.6974 |
| Std | 30.6346 | 29.5344 | 183.8534 | 192.7686 |
| 25% | 0.0580 | 0.0570 | 0.0001 | 0.0001 |
| Median | 0.2090 | 0.1990 | 0.1600 | 0.2030 |
| 75% | 1.4860 | 1.5580 | 11.5700 | 12.7379 |
| Skewness | 53.1589 | 53.5758 | 19.2642 | 19.4875 |
Table IX. Summary statistics of interarrival times (seconds) by event type for Dutch XBID hourly contracts in January 2024.
Figure 8 displays a representative QQ-plot for a single arbitrary chosen contract. Residuals for order events lie close to the 45° line across most quantiles, with upward curvature in the upper tail showing occasional long inter-event periods underrepresented by the model. For the Stressed state, slight downward curvature in the lower tail captures short, high-intensity bursts near delivery. Transaction residuals deviate more substantially but generally stays in the confidence band.
Figure 8. Representative QQ-plots of residuals for a single arbitrary chosen hourly contract on the 7th of January 2024 at 5a.m. The solid red line represents the theoretical 45-degree reference, flanked by 95% asymptotic confidence bands (dashed red lines).
State-dependent Baselines and Stability
Table IV reports the estimated baselines aggregated over all 2161 fitted contracts. The baselines increase monotonically with the liquidity stress state for every event type (), and the separation is substantial: median within-contract stressed-to-low ratios range from () to (), with paired Wilcoxon signed-rank in all cases. Since each contract acts as its own control, this ordering is not an artefact of cross-contract heterogeneity. The LSI therefore separates the exogenous arrival regime clearly, which is the component we make state-dependent as our extension of [14].
The picture for the spectral radius is different. Table V gives per state. The fits are near-critical in every regime (–), and the stress ordering one might expect does not appear: the stressed state is statistically indistinguishable from the low state (), while the normal state is marginally the highest. Because a single common target is applied to all states, no ordering is imposed by the penalty, and what we observe is a property of the data. The constraint is slack for the large majority of fits, with the remainder sitting at or just above the target.
Taken together, these two results sharpen the interpretation of the LSI regimes: liquidity stress reshapes where excitation is allocated—raising exogenous arrival rates and redistributing the off-diagonal structure (Section IV-E)—rather than raising the overall level of endogeneity, which remains near-critical throughout.
Cumulative Excitation Functions
We visualize excitation dynamics through the cumulative excitation functions for each pair of event types () and liquidity stress state :
For the single-exponential kernels , the cumulative form admits a closed expression:
The plateau value corresponds to the entry of the state- branching matrix defined in (12).
a) Interpretation.
Figure 9 displays the cumulative excitation functions for a representative contract. Although each contract is fitted independently, the kernel shapes exhibit consistent qualitative behaviour across the dataset; we therefore discuss the common patterns here and defer the contract-aggregated view to the branching ratio analysis in Section IV-E.
Figure 9. Estimated cumulative excitation functions for all 16 event-type pairs and LSI states for the delivery contract from 10:00 p.m. to 11:00 p.m. on January 3, 2024. The time axis is on a logarithmic scale. Qualitatively similar patterns are observed across contracts.
Several patterns are apparent from the 4 × 4 panel structure. Along the diagonal, self-excitation is strongest for added orders: and rise quickly and reach clear plateaus, indicating that the submission of a buy (sell) order triggers further buy (sell) order arrivals. Transaction self-excitation (, ) is also present with a different temporal profile: these curves rise more gradually and plateau at longer horizons, suggesting that transaction-to-transaction clustering operates on a slower timescale than order-to-order clustering.
| Event | Low | Normal | Stressed | Str/Low | |
| 20.0 [19.1, 20.9] | 30.2 [29.1, 31.3] | 36.6 [35.3, 38.0] | 1.84× | ||
| 34.4 [33.0, 35.8] | 38.0 [36.7, 39.4] | 80.8 [77.3, 84.3] | 2.30× | ||
| 4.0 [3.8, 4.2] | 4.7 [4.5, 4.8] | 5.8 [5.6, 6.1] | 1.48× | ||
| 4.3 [4.1, 4.5] | 5.0 [4.8, 5.1] | 6.1 [5.9, 6.4] | 1.45× |
Table IV. State-wise baseline intensities (in units of events/s), aggregated over all fitted contracts (, Jan–Mar 2024). Means with bootstrap 95% CIs; the last two columns give the paired within-contract Stressed/Low ratio (median) and the Wilcoxon signed-rank -value for .
| State | Mean [95% CI] | Median | % () |
| Low | 0.895 [0.891, 0.899] | 0.916 | 93.8 |
| Normal | 0.922 [0.919, 0.925] | 0.932 | 91.2 |
| Stressed | 0.893 [0.889, 0.896] | 0.910 | 94.5 |
Table V. Estimated per-state spectral radius of the branching matrix (). Means with bootstrap 95% CIs, share of fits below the stability target, and paired within-contract signed-rank tests. A single common target is applied to all states, so no regime ordering is imposed: is near-critical in every regime and Stressed is statistically indistinguishable from Low. Paired signed-rank: Normal>Low ; Normal>Stressed ; Stressed vs Low (n.s.).
Off-diagonal, cross-excitation is strongest from transactions to orders on the same side of the book. Specifically, and reach clear plateaus, indicating that executed transactions trigger new order submissions. The reverse direction (i.e., orders triggering transactions) is weak, as one would expect: the arrival of a limit order does not mechanically cause an immediate transaction. Cross-side effects (buy↔sell) are negligible throughout, indicating limited direct spillover between the two sides of the order book.
The LSI state modulates the magnitude and speed of excitation. In the Stressed regime (red curves), several channels show a steeper initial rise, reflecting faster-decaying kernels (larger ) that concentrate excitation over shorter horizons. This is especially visible in the transaction-to-order channels (, ), where the Stressed state reaches its plateau earlier than the Low or Normal states. The Low state (black curves) tends to show the most gradual accumulation, consistent with a calmer market environment in which event clustering unfolds more slowly. Across all channels, the curves plateau within approximately – on the log-scaled time axis, confirming that the memory of the process is short-lived.
Branching Ratios
The plateau of each cumulative excitation function corresponds to the branching ratio , which measures the expected number of type- events triggered by a single type- event in state . While the kernel plots above illustrate the temporal dynamics for individual contracts, the branching ratios compress this information into a single scalar per channel and can therefore be meaningfully averaged across contracts to reveal global patterns.
Fig. Figure 10 presents the average branching ratio matrices for each LSI state, computed over all fitted contracts. Three features stand out.
Figure 10. Average branching ratio matrices for each LSI state, computed across all fitted contracts. Entry represents the average expected number of type- offspring events triggered by a single type- parent event.
First, the matrices are strongly diagonally dominated. Added buy orders excite further added buy orders with an average branching ratio of approximately 0.62–0.68 across all states, and added sell orders similarly self-excite at 0.62–0.67.
Second, transaction-to-transaction self-excitation is moderate (0.40–0.46 for ; 0.39–0.45 for ), consistent with the slower-rising kernel profiles observed in Figure 9. The cross-channel from transactions to same-side orders is also substantial ( at 0.26–0.33; at 0.34–0.39), confirming the order replenishment effect identified in the kernel analysis. The reverse direction is negligible—added orders barely excite transactions ( and at most 0.05)—so the order–transaction relationship is essentially one-directional: trades trigger new orders, but the arrival of an order does not itself trigger trades.
Third, the LSI state modulates the excitation structure mainly along the diagonal rather than off it. Transaction self-excitation strengthens under stress, rising from 0.40 (Low) to 0.46 (Stressed) for and from 0.39 to 0.45 for , indicating that trade clustering intensifies in stressed conditions. Cross-side excitation between the two sides of the book, by contrast, is uniformly small and stable: added buy orders excite added sell orders at only 0.06–0.06 across all states, and the reverse channel at 0.05, so the two sides of the book excite themselves but not each other in every regime. Add self-excitation itself is highest in the Normal state (0.68) and slightly lower in the Low and Stressed states (0.62–0.64), a mild non-monotonicity rather than a directional trend.
Robustness Checks
Finally, we verify that the results above are not driven by the composition of the LSI or by the state discretisation. Holding the data, the event types, and the estimation pipeline fixed, we refit the model under alternative index compositions and alternative state partitions, and compare the fits with the residual diagnostics of Section IV-B: the median per-contract Wasserstein-1 distance () of the time-rescaled residuals to Exp(1), averaged over the event–state streams (threshold-free; smaller is better), together with the Kolmogorov–Smirnov (KS) and Ljung–Box (LB) pass rates at the 5% level (larger is better). All refits use one common estimation protocol (a single optimization start with a reduced iteration budget) and identical diagnostics, so the comparison is like-for-like.
Index composition
We refit twelve compositions: each standardised component alone (, , , ), the five distinct pairs, the paper index of (2) and its negative-volume counterpart, and a no-state baseline, i.e., a plain multivariate Hawkes process with a single regime and no index. The negative-volume variants are included because thin order books might signal stress
well, so volume can enter the index with either sign. Each composition is refitted per contract on the same events (2161 contracts, January–March 2024). Table VI ranks the twelve by .
| Rank | Composition | KS | LB | |
| 1 | 0.2934 | 0.347 | 0.420 | |
| 2 | 0.2946 | 0.342 | 0.423 | |
| 3 | 0.2947 | 0.348 | 0.417 | |
| 4 | 0.2954 | 0.332 | 0.433 | |
| 5 | 0.2964 | 0.343 | 0.426 | |
| 6 | (paper) | 0.3080 | 0.344 | 0.435 |
| 7 | 0.3085 | 0.339 | 0.428 | |
| 8 | 0.3124 | 0.346 | 0.429 | |
| 9 | 0.3129 | 0.345 | 0.421 | |
| 10 | 0.3228 | 0.335 | 0.439 | |
| 11 | 0.3549 | 0.328 | 0.423 | |
| 12 | no state | 0.3707 | 0.314 | 0.141 |
Table VI. Index-composition ablation ranked by residual goodness of fit (January–March 2024, 2161 contracts). is the median per-contract Wasserstein-1 distance of the time-rescaled residuals to Exp(1), averaged over event–state streams; KS and LB are mean pass rates at the 5% level. Compositions are written by their standardised components (: spread, : volume, : mid-price volatility); means volume enters with a negative sign. “No state” is a single-regime multivariate Hawkes benchmark. Lower and higher pass rates are better; the paper index is highlighted.
Three observations follow. First, all state-based compositions sit in a narrow band on (between 0.293 and 0.355), and every one of them fits better than the no-state baseline (), whose LB pass rate collapses to 0.14 against roughly 0.42 with states: removing the states leaves serial dependence that a single regime cannot absorb. The gap between having a state partition and having none is far larger than any gap among the compositions, so the results are driven by the regime construction itself rather than by a particular component or weighting. Second, no single component drives the results: volume or volatility alone fit about as well as the paper index, spread alone is the weakest state-based composition, and the paper index is close to the best. Third, the ranking is stable over time: ranking the compositions within each month and correlating the rankings across months gives Kendall’s between 0.79 and 0.88 (all ). Finally, the order/transaction dichotomy documented in Section IV-B is present under every composition, including the no-state baseline; it therefore originates in the kernel and the sparse transaction process, not in the index.
State partition
Holding the index fixed, we then vary only the state partition. We compare four: the paper’s per-contract terciles (three states, thresholds at the 33rd and 66th LSI percentiles within each contract); a global tercile partition (the same percentiles computed once over the pooled sample); and two global two-state partitions cutting at the 75th and the 90th percentile. This spans both the number of states and the threshold placement. Table VII ranks the four.
| Partition | States | KS | LB | |
| per-contract terciles (paper) | 3 | 0.3079 | 0.340 | 0.436 |
| global terciles | 3 | 0.3170 | 0.330 | 0.462 |
| global two-state () | 2 | 0.3536 | 0.306 | 0.368 |
| global two-state () | 2 | 0.3867 | 0.289 | 0.420 |
Table VII. State-partition comparison ranked by residual goodness of fit (January–March 2024). Columns as in Table VI. The paper’s partition is highlighted.
Three states fit better than two ( of 0.308–0.317 against 0.354–0.387), so the intermediate regime is not redundant: collapsing the market into two states loses fit. Among the four, the paper’s per-contract terciles fit best, with the lowest and the highest KS pass rate; because the LSI level varies across contracts, per-contract thresholds adapt to each contract’s own liquidity conditions where a pooled cut does not. The ranking is identical in all three months. Under the retained partition, the regimes are also persistent rather than rapidly alternating: the median probability of remaining in the same state at the next event is 0.96 (Low), 0.93 (Normal), and 0.96 (Stressed), with the intermediate state the least persistent.
Stability of the estimated dynamics
Figure 11 plots four representative branching channels—add self-excitation, transaction self-excitation, same-side replenishment, and the cross-side channel, analysed in Section IV-E—across the LSI states for every state-based composition. The channels are tightly grouped: in the Normal state, add self-excitation lies between 0.65 and 0.69 across compositions, transaction self-excitation between 0.39 and 0.42, and same-side replenishment between 0.27 and 0.44, while the cross-side channel stays between 0.05 and 0.07 in every state and every composition. The LSI composition shifts these levels slightly but leaves the excitation structure unchanged.
Figure 11. Four representative branching channels across LSI states for all eleven state-based index compositions (grey), with this paper proposed LSI in red: add self-excitation (), transaction self-excitation (), same-side replenishment (), and the cross-side channel (). The excitation structure is common to all compositions; the cross-side channel is small and flat in every state.
Discussion
The contract-specific state-dependent Hawkes models reveal both strengths and some limitations with the current framework and the Dutch IDC data. For order arrivals (added buy and sell orders), the model performs well: KS test pass rates remain high, around 70–81% across all states in January–March, cumulative excitation functions show consistent patterns across contracts, and the average branching ratio matrices show interesting interactions between transactions and orders across the different states.
However, the model struggles with transaction event types. One could consider richer kernels (i.e., multi-exponential or power-law) to handle multiple timescales, or a different treatment of transactions. However, the core issue is data sparsity, and richer kernels would worsen the fit rather than improve it. With 4 event types and 3 states, the current single-exponential specification requires 108 parameters per contract (12 baselines plus 96 kernel parameters). Of these, 48 kernel parameters correspond to interactions where a transaction is the source event and are therefore estimated primarily from transaction timestamps. In the Stressed state, the median number of transactions per type per contract is roughly 200, yielding approximately 4 transaction observations per kernel parameter for these pairs — already at the lower bound for reliable maximum likelihood estimation. While the order event types are abundant (median counts above 1,300 per type per state), the transaction-related parameters are bottlenecked by this scarcity. A two-component exponential kernel would double the kernel parameters count to 192, halving this ratio to around 2 observations per parameter and making the trade-related interactions essentially unidentifiable. Pooling events across contracts is not a viable solution either in this market, since IDC hourly products do not roll over: each delivery contract has its own independent trading session with no continuity of the order book from one contract to the next.
The robustness checks in Section IV-F support this diagnosis. The order/transaction dichotomy is essentially unchanged under every index composition and every state partition, so it originates in the kernel and the sparse transaction process rather than in the regime construction. The same checks also confirm that the regime construction itself carries the fit: removing the states leaves pronounced residual autocorrelation, while the differences between alternative index compositions, and between reasonable partitions, are small in comparison. Despite these limitations, several directions remain promising. First, the state process is currently exogenously defined from the LSI; future extensions could endogenise state transitions and jointly infer their dynamics with event intensities, for instance through a Markov-Modulated Hawkes process [25]. Second, the discrete three-state structure may oversimplify the continuum of liquidity conditions; continuous or semi-continuous latent-state formulations could capture smoother regime changes. Third, explicit cross-market dynamics between day-ahead and intraday markets or between hourly and quarter-hourly products in IDC could provide additional insights. Finally, an asymmetric model specification (i.e., using richer kernels for order-to-order interactions where data is abundant while regularising or simplifying the transaction-related ones) could offer a pragmatic path to improving the overall fit without worsening the sparsity problem.
Conclusions
This study proposes a state-dependent Hawkes process to model order-flow dynamics for hourly XBID products in the Dutch IDC electricity market. Each hourly contract is fitted independently, with observed states defined using a liquidity stress index based on the bid–ask spread in the LOB, order book volume and mid-price volatility. The models capture the marginal arrival dynamics of order events well, revealing near-critical self-excitation, economically interpretable cross-event patterns, and variation across liquidity regimes: exogenous intensities rise with stress, and transaction self-excitation intensifies, while the overall level of endogeneity remains near-critical in every regime. The analysis also identifies a fundamental limitation: the large imbalance between order and transaction frequencies in this market makes it difficult for a standard Hawkes specification to jointly model both event types, as the sparse transaction data cannot support reliable kernel estimation even with a single-exponential specification. Residual diagnostics further indicate that a single-exponential kernel does not fully absorb the serial dependence in order arrivals, particularly under stress. Robustness checks show that these conclusions are not tied to the particular index or discretisation: eleven alternative index compositions fit within a narrow band, a single-regime Hawkes benchmark fits clearly worse, and the proposed per-contract three-state partition fits best among the alternatives considered. These findings highlight both the value of conditioning point-process models on liquidity stress indicators and the need for richer model specifications that can accommodate the heterogeneous frequencies of different event types in electricity intraday markets.
Appendix A: Gradients for Single-Exponential Kernels
For each , define the (state-filtered) history transforms:
Let the exposure time of state be:
Then the gradients of the log-likelihood are:
a) Penalty gradients
Let and denote the left and right Perron eigenvectors of , normalized such that . When , the gradient of the penalty term with respect to the model parameters is:
and . If , the penalty gradient is zero.
Proof. For each state , the branching matrix is , whose spectral radius is the largest real eigenvalue satisfying and . Differentiating the eigenvalue equation with respect to gives:
where is the elementary matrix with a single 1 at . Premultiplying by and using and yields:
Applying the chain rule to then gives:
Finally, by differentiating for , we obtain the expressions in (25).
Appendix B: Data
To train and validate our models, we utilize LOB data from the Dutch Intraday Continuous (XBID) market spanning from January to March 2024 provided by EPEX SPOT, which is summarized in Table VIII.
Inter-arrivals
Table IX summarizes the distribution of interarrival times for each event type. Median interarrival times are comparable across all four types (approximately 0.16–0.21 seconds), suggesting a similar typical pace of activity. However, mean interarrival times diverge sharply: order additions average around 4 seconds, while transactions average roughly 35 seconds. This discrepancy reflects the clustered nature of executions, which arrive in rapid bursts followed by prolonged quiet periods, whereas order additions flow more continuously throughout the session.
Initialization and Optimization
A good initialization is important to help the optimization of (15) start from realistic values and reach a stable solution faster. To do so, we first determine admissible decay ranges directly from the data. For each contract, all inter-event gaps are pooled and from the 5th and 95th percentiles () we define half-life bounds:
which translate to exponential decay bounds: and .
Baselines are seeded from empirical rates. For each event type , the total observation time and event counts are computed, and the initial baseline is set as:
scaled by state: for the Low state and for the Normal state, where is the empirical rate of event type .
Decay rates are initialized on a geometric ladder spanning the admissible range . For the single-exponential specification (), this reduces to the geometric midpoint . Excitation amplitudes are initialized proportionally as:
which targets an initial branching ratio of per kernel component, ensuring that the starting spectral radius remains well below the instability threshold.
Minimization of the penalized likelihood (15) is carried out with the L-BFGS-B quasi-Newton algorithm under box constraints: , , and , where and are the global bounds applied after the data-driven range estimation. To mitigate sensitivity to the starting point, the optimization is repeated over independent runs: the first uses the data-driven initialization described above, while subsequent runs apply multiplicative jitter drawn uniformly from to the initial parameters within the bounds. The solution with the lowest objective value is retained.
References
- [1]B. Eldridge, B. Knueven, and J. Mays, “Rethinking the price formation problem–part 2: Rewarding flexibility and managing price risk,” IEEE Transactions on Energy Markets, Policy and Regulation, vol. 1, no. 4, pp. 490–498, 2023.DOI
- [2]D. Birkeland, T. AlSkaif, S. Duinvoorden, M. Meeng, and J. M. Pennings, “Quantifying and modeling price volatility in the dutch intraday electricity market,” Energy Reports, vol. 12, pp. 3830–3842, 2024.DOI
- [3]EPEX-SPOT, “Trading at epex spotfebruary 2025,” 2025. [Online]. Available: epexspot.com/sites/default/files/2025-02/EPEXSPOTTradingBrochure2025erav.pdf
- [4]S. Kulakov and F. Ziel, “The impact of renewable energy forecasts on intraday electricity prices,” Economics of Energy & Environmental Policy, vol. 10, no. 1, Jan. 2021.
- [5]S. Goodarzi, H. N. Perera, and D. Bunn, “The impact of renewable energy forecast errors on imbalance volumes and electricity spot prices,” Energy Policy, vol. 134, no. C, p. None, None 2019.DOI
- [6]S. Cevik, “Electricity Price Volatility Spillovers in Europe,” IMF Working Papers, vol. 2025, no. 007, p. 1, 1 2025.
- [7]D. Birkeland and T. AlSkaif, “Research areas and methods of interest in european intraday electricity market research—a systematic literature review,” Sustainable energy, grids and networks, vol. 38, p. 101368, 2024.DOI
- [8]A. G. Hawkes, “Spectra of some self-exciting and mutually exciting point processes,” Biometrika, vol. 58, no. 1, pp. 83–90, 1971.DOI
- [9]E. Bacry, I. Mastromatteo, and J.-F. Muzy, “Hawkes processes in finance,” 2015. [Online]. Available: https://arxiv.org/abs/1502.04592
- [10]A. Reinhart, “A review of self-exciting spatio-temporal point processes and their applications,” Statistical Science, vol. 33, no. 3, pp. 299–318, 2018.
- [11]N. Graf von Luckner and R. Kiesel, “Modeling market order arrivals on the german intraday electricity market with the hawkes process,” Journal of Risk and Financial Management, vol. 14, no. 4, 2021. [Online]. Available: https://www.mdpi.com/1911-8074/14/4/161DOI
- [12]P. Bergault and E. Cogn’eviile, “Simulating and analyzing a sparse order book: an application to intraday electricity markets,” 2024.arxiv.org/abs/2410.06839
- [13]K. Chatziandreou and S. K. Karbach, “Optimal execution in intraday energy markets under hawkes processes with transient impact,” 2025.arxiv.org/abs/2504.10282
- [14]M. Moriaru-Patrichi and M. S. Pakkanen, “State-dependent hawkes processes and their application to limit order book modelling,” Quantitative Finance, vol. 22, no. 3, pp. 563–583, 2022.
- [15]S. Hagemann and C. Weber, “An empirical analysis of liquidity and its determinants in the german intraday market for electricity,” University of Duisburg-Essen, Chair for Management Science and Energy Economics, EWL Working Papers 1317, Oct 2013. [Online]. Available: https://ideas.repec.org/p/dui/wpaper/1317.html
- [16]A. S. Kyle, “Continuous auctions and insider trading,” Econometrica: Journal of the Econometric Society, pp. 1315–1335, 1985.DOI
- [17]D. L. Mayston, A. Kempf, and P. K. Yadav, “Resiliency in limit order book markets: A dynamic view of liquidity,” in AFA 2009 San Francisco Meetings Paper, 2008.DOI
- [18]T. Lybek and A. Sarr, “Measuring Liquidity in Financial Markets,” IMF Working Papers, vol. 02, no. 232, p. 1, 2002.
- [19]A. Gabrielsen, M. Marzo, and P. Zagaglia, “Measuring market liquidity: An introductory survey,” SSRN Electronic Journal, 12 2011.
- [20]H.-C. Xu, W. Chen, X. Xiong, W.-X. Zhang, W.-X. Zhou, and H. Eugene Stanley, “Limit-order book resilience after effective market orders: spread, depth and intensity,” Journal of Statistical Mechanics: Theory and Experiment, vol. 2017, no. 7, p. 073404, Jul. 2017.
- [21]M. J. Fleming and E. M. Remolona, “Price formation and liquidity in the u.s. treasury market: The response to public information,” The Journal of Finance, vol. 54, no. 5, pp. 1901–1915, 1999.DOI
- [22]G. H. K. Wang and J. Yau, “Trading volume, bid–ask spread, and price volatility in futures markets,” Journal of Futures Markets, vol. 20, no. 10, pp. 943–970, 2000.doi.org/10.1002/1096-9934(200011)20:10<943::aid-fut4>3.0.co;2-8
- [23]H. Bessembinder and P. J. Seguin, “Price volatility, trading volume, and market depth: Evidence from futures markets,” Journal of Financial and Quantitative Analysis, vol. 28, no. 1, pp. 21–39, 1993.DOI
- [24]E. N. Brown, R. Barbieri, V. Ventura, R. E. Kass, and L. M. Frank, “The time-rescaling theorem and its application to neural spike train data analysis,” Neural computation, 2002.pubmed.ncbi.nlm.nih.gov/11802915
- [25]J. Wu, O. G. Ward, J. Curley, and T. Zheng, “Markov-modulated Hawkes processes for sporadic and bursty event occurrences,” 2021. [Online]. Available: https://arxiv.org/abs/1903.03223








