tmm/util/depth.py
2022-07-17 16:40:56 +09:00

16 lines
246 B
Python

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()