(self, networkId: Str = None, currencyCode: Str = None)
| 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: |
no test coverage detected