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

Method subscribe_multiple

python/ccxt/pro/grvt.py:114–122  ·  view source on GitHub ↗
(self, messageHashes: List[str], request: dict, rawHashes: List[str], publicOrPrivate=True)

Source from the content-addressed store, hash-verified

112 method(client, message)
113
114 async def subscribe_multiple(self, messageHashes: List[str], request: dict, rawHashes: List[str], publicOrPrivate=True) -> Any:
115 payload = {
116 'jsonrpc': '2.0',
117 'method': 'subscribe',
118 'params': request,
119 'id': self.request_id(),
120 }
121 apiPart = 'publicMarket' if publicOrPrivate else 'privateTrading'
122 return await self.watch_multiple(self.urls['api']['ws'][apiPart], messageHashes, payload, rawHashes)
123
124 def request_id(self):
125 self.lock_id()

Callers 7

watch_tickersMethod · 0.95
watch_my_tradesMethod · 0.95
watch_positionsMethod · 0.95
watch_ordersMethod · 0.95

Calls 2

request_idMethod · 0.95
watch_multipleMethod · 0.80

Tested by

no test coverage detected