2022-07-15 10:17:55 +00:00
|
|
|
import asyncio
|
|
|
|
|
|
|
|
|
|
|
|
MAX_ITEMS = 10
|
|
|
|
|
|
|
|
class Depth:
|
2022-07-17 07:40:56 +00:00
|
|
|
def __init__(self, order_unit):
|
2022-07-15 10:17:55 +00:00
|
|
|
self.bids = []
|
|
|
|
self.asks = []
|
|
|
|
|
2022-07-17 07:40:56 +00:00
|
|
|
self._event = asyncio.Event()
|
|
|
|
self._order_unit = order_unit
|
2022-07-15 10:17:55 +00:00
|
|
|
|
|
|
|
async def wait(self):
|
|
|
|
await self._event.wait()
|