A non-transitory computer-readable storage medium comprising instructions, which, when executed by one or more computer processors in an exchange computer system for providing quote depletion protection, cause the one or more computer processors to perform operations comprising:
- receiving, from a first user device and through an order routing system of the exchange computer system, a first order for a first asset without an instruction to apply quote depletion protection;
- in response to receiving the first order, operating the exchange computer system in a first operation mode in which quote depletion protection is not applied;
- receiving, from a second user device and through the order routing system of the exchange computer system, a second order for an asset with an instruction to apply quote depletion protection, wherein the second order is a midpoint discretionary order comprising a discretionary range of prices for the second order;
- in response to receiving the second order, operating the exchange computer system in a second operation mode in which quote depletion protection is applied;
- in the second operation mode of the exchange computer system:
- activating, by the exchange computer system, a quote depletion protection engine in response to initiating the second operation mode, the quote depletion protection engine comprising a processor connected to a computer network and configured to control storage of quote depletion protection profiles;
- monitoring, by one or more processors of an order matching system of the exchange computer system, data associated with the asset, wherein the data associated with the asset includes prices indicating a national best bid or national best offer for the asset;
- processing the second order with the instruction through the quote depletion protection engine, wherein the quote depletion protection engine is configured to perform operations comprising:
- identifying, based on the monitored data associated with the asset provided by the order matching system of the exchange computer system, one or more open orders for the asset on an order book of the exchange computer system, each of the one or more open orders for the asset comprising a number of shares of the asset to be (1) executed below one round lot, or (2) canceled below one round lot, at the national best bid or national best offer;
- retrieving, from the quote depletion protection engine, at least one quote depletion protection profile corresponding to the second order, wherein the at least one quote depletion protection profile indicates a first time period for quote depletion protection and a threshold price differential for applying quote depletion protection, the threshold price differential comprising a difference between a price of the second order and the national best bid or national best offer;
- determining, based on the monitored data associated with the asset, that the price of the second order is between the national best bid and national best offer;
- identifying, based on the monitored data associated with the asset, the one or more open orders for the asset on the order book of the exchange computer system at the price between the national best bid and the national best offer;
- responsive to determining that the price of the second order is between the national best bid and national best offer and responsive to identifying the one or more open orders for the asset, activating, by the quote depletion protection engine, the first time period for quote depletion protection;
- determining that the second order cannot be executed at less than the threshold price differential for applying quote depletion protection;
- and
- responsive to determining that the second order cannot be executed at less than the threshold price differential for applying quote depletion protection, preventing, by the quote depletion protection engine, execution of the second order through the order matching system at the price between the national best bid and national best offer during the first time period for quote depletion protection.