Is there a way to get instant data instead of tick by tick data?

I am making a program that allows me trade in a semi-automatic manner. I take the decision whether i want to buy or sell, press the button which i created using tkinter. Example, when i press buy button, it places multiple orders for option contracts at different strike prices. So when a function is called, required amount of contracts are subscribed, using market depth data, a price is decided and the order is placed.

But the problem I am facing is that when i subscribe for data, it keeps on sending data tick by tick. What I am trying to do is that when I call the function, I get the data at that instance, calculation be done on that data, and order should be placed.
This discussion has been closed.