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

Method request_id

python/ccxt/pro/grvt.py:124–129  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

122 return await self.watch_multiple(self.urls['api']['ws'][apiPart], messageHashes, payload, rawHashes)
123
124 def request_id(self):
125 self.lock_id()
126 newValue = self.sum(self.safe_integer(self.options, 'requestId', 0), 1)
127 self.options['requestId'] = newValue
128 self.unlock_id()
129 return newValue
130
131 async def watch_ticker(self, symbol: str, params={}) -> Ticker:
132 """

Callers 1

subscribe_multipleMethod · 0.95

Calls 4

lock_idMethod · 0.80
safe_integerMethod · 0.80
unlock_idMethod · 0.80
sumMethod · 0.45

Tested by

no test coverage detected