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

Method request_id

python/ccxt/pro/gate.py:1968–1974  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1966 return 'spot'
1967
1968 def request_id(self):
1969 # their support said that reqid must be an int32, not documented
1970 self.lock_id()
1971 reqid = self.sum(self.safe_integer(self.options, 'reqid', 0), 1)
1972 self.options['reqid'] = reqid
1973 self.unlock_id()
1974 return reqid
1975
1976 async def subscribe_public(self, url, messageHash, payload, channel, params={}, subscription=None):
1977 requestId = self.request_id()

Callers 5

subscribe_publicMethod · 0.95
request_privateMethod · 0.95
subscribe_privateMethod · 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