MCPcopy Index your code
hub / github.com/shidenggui/easyquant / push_quotation

Method push_quotation

custom/fixeddataengine.py:58–70  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

56 return self.source.stocks(self.watch_stocks)
57
58 def push_quotation(self):
59 while self.is_active:
60 if self.is_pause:
61 time.sleep(1)
62 continue
63 try:
64 response_data = self.fetch_quotation()
65 except aiohttp.errors.ServerDisconnectedError:
66 time.sleep(self.PushInterval)
67 continue
68 event = Event(event_type=self.EventType, data=response_data)
69 self.event_engine.put(event)
70 time.sleep(self.PushInterval)

Callers

nothing calls this directly

Calls 3

fetch_quotationMethod · 0.95
EventClass · 0.90
putMethod · 0.80

Tested by

no test coverage detected