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

Method handle_api_key_index

python/ccxt/lighter.py:457–464  ·  view source on GitHub ↗
(self, params: object, methodName1: str, optionName1: str, optionName2: str, defaultValue=None)

Source from the content-addressed store, hash-verified

455 return(signer is not None)
456
457 def handle_api_key_index(self, params: object, methodName1: str, optionName1: str, optionName2: str, defaultValue=None) -> List[Any]:
458 apiKeyIndex = None
459 apiKeyIndex, params = self.handle_option_and_params_2(params, methodName1, optionName1, optionName2, defaultValue)
460 if (apiKeyIndex is None) or (apiKeyIndex < 4) or (apiKeyIndex > 254):
461 # apiKeyIndex = self.rand_number(2)
462 apiKeyIndex = 254
463 self.options['apiKeyIndex'] = apiKeyIndex # default to a value to avoid overriding other keys
464 return [self.parse_to_int(apiKeyIndex), params]
465
466 def handle_account_index(self, params: object, methodName1: str, optionName1: str, optionName2: str, defaultValue=None) -> List[Any]:
467 accountIndex = None

Callers 15

create_sub_accountMethod · 0.95
change_api_keyMethod · 0.95
create_order_requestMethod · 0.95
edit_orderMethod · 0.95
fetch_open_ordersMethod · 0.95
fetch_closed_ordersMethod · 0.95
transferMethod · 0.95
fetch_transfersMethod · 0.95
fetch_depositsMethod · 0.95
fetch_withdrawalsMethod · 0.95
withdrawMethod · 0.95

Calls 2

parse_to_intMethod · 0.80

Tested by

no test coverage detected