A system for managing trading orders comprises a memory operable to store a first order in a first order book. The first order is associated with a first group of traders, which is associated with a first ruleset. The memory is further operable to store a second order in a second order book, wherein the second order was received after the first order. The second order is associated with a second group of traders, which is associated with a second ruleset. The system further comprises a processor communicatively coupled to the memory and operable to receive a counterorder associated with a third group of traders, wherein the counterorder matches the first order and the second order. The processor is further operable to execute a first trade associated with the second order and the counterorder, wherein the first trade is executed according to the second ruleset. If a portion of the counterorder remains unfilled, the processor is further operable to execute a second trade associated with the first order and the counterorder, wherein the second trade is executed according to the first ruleset.