I have three columns "event-type", "remainingQuantity" and "limit price".I want to run this algorithm. Loop every row where side = buy