import asyncio MAX_ITEMS = 10 class Depth: def __init__(self, order_unit): self.bids = [] self.asks = [] self._event = asyncio.Event() self._order_unit = order_unit async def wait(self): await self._event.wait()