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

Method request_id

python/ccxt/pro/modetrade.py:75–80  ·  view source on GitHub ↗
(self, url)

Source from the content-addressed store, hash-verified

73 })
74
75 def request_id(self, url):
76 options = self.safe_dict(self.options, 'requestId', {})
77 previousValue = self.safe_integer(options, url, 0)
78 newValue = self.sum(previousValue, 1)
79 self.options['requestId'][url] = newValue
80 return newValue
81
82 async def watch_public(self, messageHash, message):
83 # the default id

Callers 3

watch_publicMethod · 0.95
watch_privateMethod · 0.95

Calls 3

safe_dictMethod · 0.80
safe_integerMethod · 0.80
sumMethod · 0.45

Tested by

no test coverage detected