Why does this smell like an item-scalping abuse bot?
That the order timestamps are all one-second before midnight is ... odd, as are the statuses ... is this an eBay sniping tool?
I normally do not worry too much about what questioners are asking for help doing, but this looks less like an XY Problem and more like an XY-Crooked Problem.
Congratulations, bigup401, you have finally exhausted my assumption of good faith and I think this just might be the first time I have -- voted one of your questions.