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

Method push_quotation

easyquant/push_engine/base_engine.py:27–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

25 self.is_active = False
26
27 def push_quotation(self):
28 while self.is_active:
29 try:
30 response_data = self.fetch_quotation()
31 except:
32 self.wait()
33 continue
34 event = Event(event_type=self.EventType, data=response_data)
35 self.event_engine.put(event)
36 self.wait()
37
38 def fetch_quotation(self):
39 # return your quotation

Callers

nothing calls this directly

Calls 4

fetch_quotationMethod · 0.95
waitMethod · 0.95
EventClass · 0.90
putMethod · 0.80

Tested by

no test coverage detected