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

Method init_auth_object

python/ccxt/lighter.py:411–422  ·  view source on GitHub ↗
(self, strAccountIndex: str, strApiKeyIndex: str)

Source from the content-addressed store, hash-verified

409 return signer
410
411 def init_auth_object(self, strAccountIndex: str, strApiKeyIndex: str):
412 if not ('auths' in self.options):
413 self.options['auths'] = {}
414 if not (strAccountIndex in self.options['auths']):
415 self.options['auths'][strAccountIndex] = {}
416 if not (strApiKeyIndex in self.options['auths'][strAccountIndex]):
417 self.options['auths'][strAccountIndex][strApiKeyIndex] = {
418 'signer': None,
419 'lighterPrivateKey': None,
420 'deadline': None,
421 'token': None,
422 }
423
424 def get_lighter_private_key(self, strAccountIndex: str, strApiKeyIndex: str):
425 if not ('auths' in self.options):

Callers 2

load_accountMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected