Skip to content
All library documents

Limit Order Replacement, Queue Priority, and Market Maker Tactics

Article Quant Q&A · Author: nimbus3000

Summary

The document examines a market maker’s choice between keeping a limit order and replacing it. Replacing can lose time priority and reduce the chance of execution, while leaving an order in place can expose it to an unfavorable fill. The answers point to stochastic control with a model of liquidity dynamics, queue-reactive models, and reinforcement learning as ways to study quote placement and replacement decisions.

They also distinguish queue position from the posted price and inventory objectives, citing research on queue valuation, order position dynamics, optimal posting prices, and inventory-aware market making. One answer notes that increasing order size at the same price may lose priority, while reducing or maintaining size may preserve it, depending on venue rules. These methods require suitable order book data and assumptions; the document does not present a single universally optimal replacement rule.

Key ideas

  • Replacing a limit order can sacrifice queue priority and reduce its execution probability.
  • The choice depends on fill likelihood, liquidity dynamics, and the risk of adverse selection.
  • Stochastic control and queue-reactive models can represent order book dynamics and quote decisions.
  • Reinforcement learning offers a data-driven approach to learning posting and replacement policies.
  • Queue priority rules can depend on the size change and the exchange’s order handling rules.

Tags

Full text
# Order Replacement Trade-off for a Market Maker


# Order Replacement Trade-off for a Market Maker












Whenever we replace an order, we lost priority since we are added to the end of the queue. If we dont replace an order, there is an obvious chance that we might get picked. There are other situations possible, when we replace deeper back and forth in the book and keep losing priority. Is there any literature which discusses this trade off and what is an optimal way of replacing orders?

## Answer by lehalle (score 3)

https://quant.stackexchange.com/a/75018

they are now plenty of academic resources to address the point of interacting with liquidity via limit orders:

- Stochastic control is the best way (it's optimal!) but you need a model of liquidity dynamics: Charles-Albert Lehalle, Othmane Mounjid, and Mathieu Rosenbaum. "Optimal liquidity-based trading tactics." Stochastic Systems 11, no. 4 (2021): 368-390.

- the Queue Reactive Model is probable the best suited that for: Huang, Weibing, Charles-Albert Lehalle, and Mathieu Rosenbaum. "Simulating and analyzing order book data: The queue-reactive model." Journal of the American Statistical Association 110, no. 509 (2015): 107-122.

- if you want a model free version, use Reinforcement Learning (RL) and look in the examples of this paper: Mounjid, Othmane, and Charles‐Albert Lehalle. "Improving reinforcement learning algorithms: towards optimal learning rate policies." Mathematical Finance (2019).

If you want to focus more on the price at which you post than on the queuing strategy, you may have a look at this paper: Laruelle, Sophie, Charles-Albert Lehalle, and Gilles Pagès. "Optimal posting price of limit orders: learning by trading." Mathematics and Financial Economics 7, no. 3 (2013): 359-403. It is a RL approach to guess the best price by trial and error.

And if the most important for you is the sequence of quotes you will offer during the day, having in mind to finish the day with zero inventory, this one is for you: Guéant, Olivier, Charles-Albert Lehalle, and Joaquin Fernandez-Tapia. "Dealing with the inventory risk: a solution to the market making problem." Mathematics and financial economics 7 (2013): 477-507.

## Answer by shoonya (score 0)

https://quant.stackexchange.com/a/60861

- An order loses time priority when its replace size is higher than current size at same price.

- An order does not lose time priority when replace size is lower or equal to earlier size at same price.

Build a probabilistic model of order being filled at various price depths and sizes. Doing this for a single instrument uncorrelated is comparatively simpler, however for correlated instruments like options of same underlying is harder.

You may refer to the following -

Guo, Xin, Zhao Ruan, and Lingjiong Zhu. "Dynamics of order positions and related queues in a limit order book." arXiv preprint arXiv:1505.04810 (2015).

Moallemi, Ciamac C., and Kai Yuan. "A model for queue position valuation in a limit order book." Columbia Business School Research Paper 17-70 (2016).

## Answer by Tim Miller (score 0)

https://quant.stackexchange.com/a/73599

There is no easy answer when it comes to deciding whether or not to replace an order. Each situation is unique and must be evaluated on its own merits. However, there are some general guidelines that can be followed in order to make the best decision possible.

Whenever possible, try to avoid replacing an order. This is because each time an order is replaced, you lose your place in line and are added to the end of the queue. This can obviously have a negative impact on your chances of getting picked.

There are other situations where replacing an order may be beneficial, such as when you are deeper in the book and have a better chance of getting picked. In these cases, it is important to weigh the pros and cons of replacing an order before making a decision.

The best way to evaluate whether or not to replace an order is to consult with literature on the subject. This will help you to understand the trade-offs involved and make the best decision possible.

Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.