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

Method network_id_to_code

python/ccxt/htx.py:3351–3358  ·  view source on GitHub ↗
(self, networkId: Str = None, currencyCode: Str = None)

Source from the content-addressed store, hash-verified

3349 })
3350
3351 def network_id_to_code(self, networkId: Str = None, currencyCode: Str = None):
3352 # here network-id is provided pair of currency & chain(i.e. trc20usdt)
3353 keys = list(self.options['networkNamesByChainIds'].keys())
3354 keysLength = len(keys)
3355 if keysLength == 0:
3356 raise ExchangeError(self.id + ' networkIdToCode() - markets need to be loaded at first')
3357 networkTitle = self.safe_value(self.options['networkNamesByChainIds'], networkId, networkId)
3358 return super(htx, self).network_id_to_code(networkTitle, currencyCode)
3359
3360 def network_code_to_id(self, networkCode: str, currencyCode: Str = None):
3361 if networkCode is None:

Callers 15

parse_currencyMethod · 0.95
parse_deposit_addressMethod · 0.95
parse_transactionMethod · 0.95
parse_deposit_addressMethod · 0.45
parse_currencyMethod · 0.45
parse_transactionMethod · 0.45
parse_currencyMethod · 0.45
parse_deposit_addressMethod · 0.45
parse_transactionMethod · 0.45

Calls 2

ExchangeErrorClass · 0.90
safe_valueMethod · 0.80

Tested by

no test coverage detected