Introduction
Over-The-Counter (OTC) financial markets, such as those for foreign exchange and fixed income, are decentralized and partially observable. Unlike central exchanges, participants like banks (Liquidity Providers) and hedge funds (Liquidity Takers) trade directly with one another. This opacity makes modeling OTC markets notoriously difficult. Traditional "single-agent" simulations often fail because they treat the rest of the market as a static environment, ignoring the complex co-adaptation that occurs when multiple intelligent agents compete and react to one another.
This paper introduces a sophisticated Multi-Agent Reinforcement Learning (MARL) framework designed to simulate these dynamics. By utilizing "supertypes" to define diverse agent objectives and a novel two-timescale calibration algorithm called CALSHEQ, the researchers successfully modeled emergent dealer behaviors—such as price skewing and hedging—while ensuring the simulation accurately reflects real-world market data.
Market Structure and Connectivity
In an OTC environment, the connectivity between participants is a critical factor. Liquidity Takers (LTs) interact with multiple Liquidity Providers (LPs), and LPs may also interact with a central "lit" market, such as an Electronic Communication Network (ECN), to hedge their positions.
The simulation framework models this structure explicitly. While the current implementation uses a static connectivity graph, it allows for the study of how competition between LPs affects the prices offered to LTs.
Methodology
The proposed simulation relies on several key innovations to handle the complexity of multi-agent interactions:
1. Supertype-based MARL
Training every agent individually in a large-scale simulation is computationally prohibitive. Instead, the authors use "supertypes." Agents share a single policy that is conditioned on a "type" vector. This vector defines the agent's specific characteristics, such as risk aversion and the trade-off between maximizing profit and maintaining market share. This approach allows for efficient learning across a continuous spectrum of behaviors.
2. Neural ECN Model
To provide a realistic background market for hedging, the researchers developed a Neural ECN model. Using LSTMs and Mixture Density Networks (MDNs), the model simulates the evolution of a Limit Order Book (LOB) based on historical Lobster INTC data (Intel Corp). This provides a "lit" reference market where LPs can externalize their risk.
3. CALSHEQ: Calibration of Shared Equilibria
Calibration—tuning simulation parameters to match historical observations—is a major challenge in MARL. The authors propose CALSHEQ, a novel RL-based calibration algorithm that operates on two timescales. A "calibrator" agent slowly adjusts the distribution of agent types, while the market agents quickly learn to reach a Nash equilibrium under those parameters. This meta-game approach proves more stable than traditional optimization methods like Bayesian Optimization.
Key Insights and Emergent Behaviors
The simulation revealed several sophisticated behaviors that emerged naturally from the agents' pursuit of their objectives:
- Price Skewing: LPs learned to "skew" their prices—setting buy and sell prices asymmetrically based on their current inventory—without being explicitly programmed to do so. This is a standard real-world dealer tactic used to manage inventory risk by attracting trades that offset existing positions.
- Competitive Dynamics: As the number of LPs increases, the market dynamic shifts from adversarial (LP vs. Taker) to competitive (LP vs. LP). This competition naturally leads to narrower spreads, benefiting the liquidity takers.
- Hedging Efficiency: LPs successfully learned to balance "internalization" (using price skewing to offset trades internally) with "externalization" (hedging on the ECN), effectively managing risk in a partially observable environment.
Results and Calibration Accuracy
CALSHEQ significantly outperformed baseline methods like Bayesian Optimization (BO). While BO often caused drastic parameter shifts that prevented agents from reaching a stable equilibrium, CALSHEQ smoothly guided the system toward target market shares and trade distributions. The model successfully simulated a wide range of agents, from "Flow LTs" (who trade regardless of cost) to "PnL LTs" (who are highly price-sensitive), demonstrating the framework's versatility.
Limitations and Future Directions
While the framework represents a significant step forward, several areas remain for future research:
- Dynamic Connectivity: The current model uses a fixed "who-trades-with-whom" graph. Future work could allow agents to choose their counterparties dynamically based on past performance.
- Order Complexity: The simulation currently focuses on market orders. Incorporating limit orders and more complex execution strategies would add further realism.
- Non-Stationary Theory: Extending theoretical convergence proofs to scenarios where all agents (including LTs) are learning simultaneously remains a challenge.
Summary updated