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

Method parse_deposit_address

python/ccxt/bybit.py:5552–5571  ·  view source on GitHub ↗
(self, depositAddress, currency: Currency = None)

Source from the content-addressed store, hash-verified

5550 return self.parse_trades(trades, market, since, limit)
5551
5552 def parse_deposit_address(self, depositAddress, currency: Currency = None) -> DepositAddress:
5553 #
5554 # {
5555 # "chainType": "ERC20",
5556 # "addressDeposit": "0xf56297c6717c1d1c42c30324468ed50a9b7402ee",
5557 # "tagDeposit": '',
5558 # "chain": "ETH"
5559 # }
5560 #
5561 address = self.safe_string(depositAddress, 'addressDeposit')
5562 tag = self.safe_string(depositAddress, 'tagDeposit')
5563 code = self.safe_string(currency, 'code')
5564 self.check_address(address)
5565 return {
5566 'info': depositAddress,
5567 'currency': code,
5568 'network': self.network_id_to_code(self.safe_string(depositAddress, 'chain'), code),
5569 'address': address,
5570 'tag': tag,
5571 }
5572
5573 def fetch_deposit_addresses_by_network(self, code: str, params={}) -> List[DepositAddress]:
5574 """

Callers

nothing calls this directly

Calls 3

safe_stringMethod · 0.80
check_addressMethod · 0.80
network_id_to_codeMethod · 0.45

Tested by

no test coverage detected