fetch the deposit address for a currency associated with self account https://bybit-exchange.github.io/docs/v5/asset/master-deposit-addr :param str code: unified currency code :param dict [params]: extra parameters specific to the exchange API endpoint :ret
(self, code: str, params={})
| 5619 | return self.index_by(parsed, 'network') |
| 5620 | |
| 5621 | def fetch_deposit_address(self, code: str, params={}) -> DepositAddress: |
| 5622 | """ |
| 5623 | fetch the deposit address for a currency associated with self account |
| 5624 | |
| 5625 | https://bybit-exchange.github.io/docs/v5/asset/master-deposit-addr |
| 5626 | |
| 5627 | :param str code: unified currency code |
| 5628 | :param dict [params]: extra parameters specific to the exchange API endpoint |
| 5629 | :returns dict: an `address structure <https://docs.ccxt.com/?id=address-structure>` |
| 5630 | """ |
| 5631 | self.load_markets() |
| 5632 | currency = self.currency(code) |
| 5633 | networkCode, paramsOmited = self.handle_network_code_and_params(params) |
| 5634 | indexedAddresses = self.fetch_deposit_addresses_by_network(code, paramsOmited) |
| 5635 | selectedNetworkCode = self.select_network_code_from_unified_networks(currency['code'], networkCode, indexedAddresses) |
| 5636 | return indexedAddresses[selectedNetworkCode] |
| 5637 | |
| 5638 | def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]: |
| 5639 | """ |
nothing calls this directly
no test coverage detected