Under price-time priority (first in, first out, FIFO) an incoming order trades against resting orders at the best price in the order of their priority timestamps, oldest first, each filled completely before the next receives anything.
Quantitative Finance · Glosario