[Paper Review] Optimizing Market Making using Multi-Agent Reinforcement Learning
This paper proposes a two-agent deep reinforcement learning framework for optimizing market making in cryptocurrency trading: a macro-agent decides buy/sell/hold based on minute-level price data, while a micro-agent optimizes limit order placement within the order book. The approach achieves stable, low-volatility profit growth, demonstrating RL's viability in complex, dynamic financial environments like Bitcoin trading.
In this paper, reinforcement learning is applied to the problem of optimizing market making. A multi-agent reinforcement learning framework is used to optimally place limit orders that lead to successful trades. The framework consists of two agents. The macro-agent optimizes on making the decision to buy, sell, or hold an asset. The micro-agent optimizes on placing limit orders within the limit order book. For the context of this paper, the proposed framework is applied and studied on the Bitcoin cryptocurrency market. The goal of this paper is to show that reinforcement learning is a viable strategy that can be applied to complex problems (with complex environments) such as market making.
Motivation & Objective
- To address the limitations of traditional machine learning in high-frequency trading, such as high prediction latency and poor adaptability to market shifts.
- To develop a reinforcement learning-based solution that can autonomously optimize both strategic trading decisions and precise order placement in complex, dynamic markets.
- To evaluate whether a multi-agent RL framework can outperform standard strategies like Buy-and-Hold and Momentum investing in real-world-like simulated environments.
- To explore the feasibility of using RL for market making in chaotic, partially observable financial environments with delayed rewards and high uncertainty.
Proposed method
- A two-agent reinforcement learning architecture is used: a macro-agent operates on minute-level tick data to decide buy, sell, or hold, while a micro-agent uses order book data to place limit orders.
- The macro-agent uses deep Q-learning to select actions based on market indicators and historical price data, with a running count of held assets.
- The micro-agent employs deep Q-learning to determine optimal limit order prices and quantities within the order book, constrained to one placement every 10 seconds.
- The agents are trained in a simulated environment using historical Bitcoin data from Bittrex (Nov 2–17, 2018), with a Markov Decision Process (MDP) formulation and discounted future rewards.
- A pipeline integrates WebSocket data ingestion, agent-specific featurization, action execution via a match engine, and feedback loops for reward and state updates.
- Reward functions are designed to reflect profit, with adjustments considered for exchange fees and holding behavior to improve policy learning.
Experimental results
Research questions
- RQ1Can a multi-agent reinforcement learning framework effectively optimize market making decisions in a complex, partially observable financial environment?
- RQ2How does separating strategic decision-making (macro-agent) from execution precision (micro-agent) improve performance compared to single-agent or heuristic approaches?
- RQ3To what extent can deep Q-learning learn stable, low-volatility profit-generating strategies in a simulated Bitcoin market with realistic constraints?
- RQ4How do reward shaping and policy constraints affect the learning of holding behavior and risk management in the macro-agent?
- RQ5What impact do data quality issues and simulated market dynamics have on the robustness of the multi-agent framework?
Key findings
- The multi-agent framework achieved stable, low-volatility profit growth, with cumulative profit increasing linearly over time, indicating robust and consistent performance.
- The micro-agent successfully optimized limit order placement, with 91% of all orders being limit orders, reducing exchange fees compared to hypothetical market orders in baseline strategies.
- Despite strong performance from the macro-agent alone, the combined multi-agent strategy underperformed the macro-agent in isolation, primarily due to the micro-agent occasionally placing orders at prices worse than market, leading to reduced profitability.
- The framework demonstrated the ability to learn a coherent policy that adapts to price trends—buying when prices are expected to rise and selling when they are expected to fall.
- The study identified key challenges, including sparse rewards for holding actions and the risk of unlimited position exposure, which require further reward engineering and constraint integration.
- Data corruption and out-of-order messages from the WebSocket interface were observed, highlighting the need for robust data validation before real-world deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.