tmm/util/ticker.py
2022-07-17 02:43:05 +09:00

15 lines
284 B
Python

import asyncio
class Ticker:
def __init__(self, pair):
self.pair = pair
self.price = None
self.sell = None
self.buy = None
self.volume = None
self.ts = None
self._event = asyncio.Event()
async def wait(self):
await self._event.wait()