Example #1
0
 def setUpClass(cls):
     cls.ev_loop: asyncio.BaseEventLoop = asyncio.get_event_loop()
     cls.order_book_tracker: HuobiOrderBookTracker = HuobiOrderBookTracker(
         trading_pairs=cls.trading_pairs)
     cls.order_book_tracker_task: asyncio.Task = safe_ensure_future(
         cls.order_book_tracker.start())
     cls.ev_loop.run_until_complete(cls.wait_til_tracker_ready())
Example #2
0
 def setUpClass(cls):
     cls.ev_loop: asyncio.BaseEventLoop = asyncio.get_event_loop()
     cls.order_book_tracker: HuobiOrderBookTracker = HuobiOrderBookTracker(
         OrderBookTrackerDataSourceType.EXCHANGE_API)
     cls.order_book_tracker_task: asyncio.Task = asyncio.ensure_future(
         cls.order_book_tracker.start())
     cls.ev_loop.run_until_complete(cls.wait_til_tracker_ready())
Example #3
0
 def setUpClass(cls):
     cls.ev_loop: asyncio.BaseEventLoop = asyncio.get_event_loop()
     cls.order_book_tracker: HuobiOrderBookTracker = HuobiOrderBookTracker(
         data_source_type=OrderBookTrackerDataSourceType.EXCHANGE_API,
         symbols=cls.trading_pairs)
     cls.order_book_tracker_task: asyncio.Task = safe_ensure_future(
         cls.order_book_tracker.start())
     cls.ev_loop.run_until_complete(cls.wait_til_tracker_ready())