arXiv:2505.12465cs.LG2025-05被引 2

用强化学习解决高频交易中的延迟与持仓风险问题

Resolving Latency and Inventory Risk in Market Making with Reinforcement Learning

  • 引入订单持有时间构建增强状态空间,应对执行延迟
  • 在4个真实数据集上显著提升现有RL策略表现
  • 适合研究高频交易与算法做市的从业者参考

市场做市中的延迟不可避免,受硬件限制、系统处理时间、数据接收延迟及订单传输耗时等因素影响。现有强化学习(RL)方法忽视延迟影响,导致因决策与执行间价格差异引发意外撤单和持仓积累,增加市场风险,难以应用于真实场景。为此,我们构建了一个含30-100毫秒随机延迟的仿真环境,并采用每500毫秒批量匹配机制,模拟部分交易所的撮合方式。提出名为Relaver的基于强化学习的做市方法,主要贡献包括:一、引入订单持有时间作为状态变量,结合价格与成交量,使模型可在延迟约束下优化执行策略;二、利用动态规划(DP)引导强化学习探索,生成更优策略;三、训练市场趋势预测模块,指导智能调节持仓以降低风险。在四个真实世界数据集上的大量实验与消融研究显示,Relaver在多个指标上显著优于现有先进RL做市方法。

原文摘要 · Abstract (English)

The latency of the exchanges in Market Making (MM) is inevitable due to hardware limitations, system processing times, delays in receiving data from exchanges, the time required for order transmission to reach the market, etc. Existing reinforcement learning (RL) methods for Market Making (MM) overlook the impact of these latency, which can lead to unintended order cancellations due to price discrepancies between decision and execution times and result in undesired inventory accumulation, exposing MM traders to increased market risk. Therefore, these methods cannot be applied in real MM scenarios. To address these issues, we first build a realistic MM environment with random delays of 30-100 milliseconds for order placement and market information reception, and implement a batch matching mechanism that collects orders within every 500 milliseconds before matching them all at once, simulating the batch auction mechanisms adopted by some exchanges. Then, we propose Relaver, an RL-based method for MM to tackle the latency and inventory risk issues. The three main contributions of Relaver are: i) we introduce an augmented state-action space that incorporates order hold time alongside price and volume, enabling Relaver to optimize execution strategies under latency constraints and time-priority matching mechanisms, ii) we leverage dynamic programming (DP) to guide the exploration of RL training for better policies, iii) we train a market trend predictor, which can guide the agent to intelligently adjust the inventory to reduce the risk. Extensive experiments and ablation studies on four real-world datasets demonstrate that \textsc{Relaver} significantly improves the performance of state-of-the-art RL-based MM strategies across multiple metrics.

强化学习做市算法延迟优化持仓风险

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。