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

Method parse_deposit_address

python/ccxt/htx.py:6061–6085  ·  view source on GitHub ↗
(self, depositAddress, currency: Currency = None)

Source from the content-addressed store, hash-verified

6059 return response
6060
6061 def parse_deposit_address(self, depositAddress, currency: Currency = None):
6062 #
6063 # {
6064 # "currency": "usdt",
6065 # "address": "0xf7292eb9ba7bc50358e27f0e025a4d225a64127b",
6066 # "addressTag": "",
6067 # "chain": "usdterc20", # trc20usdt, hrc20usdt, usdt, algousdt
6068 # }
6069 #
6070 address = self.safe_string(depositAddress, 'address')
6071 tag = self.safe_string(depositAddress, 'addressTag')
6072 currencyId = self.safe_string(depositAddress, 'currency')
6073 currency = self.safe_currency(currencyId, currency)
6074 code = self.safe_currency_code(currencyId, currency)
6075 note = self.safe_string(depositAddress, 'note')
6076 networkId = self.safe_string(depositAddress, 'chain')
6077 self.check_address(address)
6078 return {
6079 'currency': code,
6080 'address': address,
6081 'tag': tag,
6082 'network': self.network_id_to_code(networkId, code),
6083 'note': note,
6084 'info': depositAddress,
6085 }
6086
6087 def fetch_deposit_addresses_by_network(self, code: str, params={}) -> List[DepositAddress]:
6088 """

Callers

nothing calls this directly

Calls 5

network_id_to_codeMethod · 0.95
safe_stringMethod · 0.80
safe_currencyMethod · 0.80
check_addressMethod · 0.80
safe_currency_codeMethod · 0.45

Tested by

no test coverage detected