MCPcopy Create free account
hub / github.com/ccxt/ccxt / future

Method future

python/ccxt/async_support/base/ws/client.py:81–88  ·  view source on GitHub ↗
(self, message_hash)

Source from the content-addressed store, hash-verified

79 self.connected = Future()
80
81 def future(self, message_hash):
82 if message_hash not in self.futures or self.futures[message_hash].cancelled():
83 self.futures[message_hash] = Future()
84 future = self.futures[message_hash]
85 if message_hash in self.rejections:
86 future.reject(self.rejections[message_hash])
87 del self.rejections[message_hash]
88 return future
89
90 def reusable_future(self, message_hash):
91 return self.future(message_hash) # only used in go

Callers 15

reusable_futureMethod · 0.95
reusableFutureMethod · 0.95
watch_multipleMethod · 0.45
watchMethod · 0.45
watch_positionsMethod · 0.45
set_positions_cacheMethod · 0.45
watch_balanceMethod · 0.45
set_balance_cacheMethod · 0.45
watch_balanceMethod · 0.45
watch_positionsMethod · 0.45
set_positions_cacheMethod · 0.45

Calls 2

FutureClass · 0.90
rejectMethod · 0.65

Tested by

no test coverage detected