(self, fee, currency: Currency = None)
| 7556 | return result |
| 7557 | |
| 7558 | def parse_deposit_withdraw_fee(self, fee, currency: Currency = None) -> Any: |
| 7559 | # |
| 7560 | # { |
| 7561 | # "name": "BTC", |
| 7562 | # "coin": "BTC", |
| 7563 | # "remainAmount": "150", |
| 7564 | # "chains": [ |
| 7565 | # { |
| 7566 | # "chainType": "BTC", |
| 7567 | # "confirmation": "10000", |
| 7568 | # "withdrawFee": "0.0005", |
| 7569 | # "depositMin": "0.0005", |
| 7570 | # "withdrawMin": "0.001", |
| 7571 | # "chain": "BTC", |
| 7572 | # "chainDeposit": "1", |
| 7573 | # "chainWithdraw": "1", |
| 7574 | # "minAccuracy": "8" |
| 7575 | # } |
| 7576 | # ] |
| 7577 | # } |
| 7578 | # |
| 7579 | chains = self.safe_list(fee, 'chains', []) |
| 7580 | chainsLength = len(chains) |
| 7581 | result = { |
| 7582 | 'info': fee, |
| 7583 | 'withdraw': { |
| 7584 | 'fee': None, |
| 7585 | 'percentage': None, |
| 7586 | }, |
| 7587 | 'deposit': { |
| 7588 | 'fee': None, |
| 7589 | 'percentage': None, |
| 7590 | }, |
| 7591 | 'networks': {}, |
| 7592 | } |
| 7593 | if chainsLength != 0: |
| 7594 | for i in range(0, chainsLength): |
| 7595 | chain = chains[i] |
| 7596 | networkId = self.safe_string(chain, 'chain') |
| 7597 | currencyCode = self.safe_string(currency, 'code') |
| 7598 | networkCode = self.network_id_to_code(networkId, currencyCode) |
| 7599 | result['networks'][networkCode] = { |
| 7600 | 'deposit': {'fee': None, 'percentage': None}, |
| 7601 | 'withdraw': {'fee': self.safe_number(chain, 'withdrawFee'), 'percentage': False}, |
| 7602 | } |
| 7603 | if chainsLength == 1: |
| 7604 | result['withdraw']['fee'] = self.safe_number(chain, 'withdrawFee') |
| 7605 | result['withdraw']['percentage'] = False |
| 7606 | return result |
| 7607 | |
| 7608 | def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}): |
| 7609 | """ |
nothing calls this directly
no test coverage detected