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

Method lighter_create_client

python/ccxt/base/exchange.py:2283–2294  ·  view source on GitHub ↗
(self, lighterSigner, chainId, privateKey, apiKeyIndex, accountIndex)

Source from the content-addressed store, hash-verified

2281 return lighterSigner
2282
2283 def lighter_create_client(self, lighterSigner, chainId, privateKey, apiKeyIndex, accountIndex):
2284 url = self.implode_hostname(self.urls['api']['public'])
2285 res = lighterSigner.CreateClient(
2286 url.encode("utf-8"),
2287 privateKey.encode("utf-8"),
2288 chainId,
2289 apiKeyIndex,
2290 accountIndex,
2291 )
2292 if res is not None and str(res).find('error'):
2293 raise Exception('lighter_create_client(): Failed to create lighter client: ' + str(res))
2294 return lighterSigner
2295
2296 def lighter_sign_create_grouped_orders(self, signer, request):
2297 orders = request['orders']

Callers 3

change_api_keyMethod · 0.80
change_api_keyMethod · 0.80

Calls 4

implode_hostnameMethod · 0.95
ExceptionFunction · 0.85
findMethod · 0.80
encodeMethod · 0.45

Tested by

no test coverage detected