tmm/util/ticker.py

15 lines
284 B
Python
Raw Permalink Normal View History

2022-07-15 10:17:55 +00:00
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()