(self, currencyId: Str, currency: Currency = None)
| 905 | }) |
| 906 | |
| 907 | def safe_currency_code(self, currencyId: Str, currency: Currency = None) -> Str: |
| 908 | if currencyId is None: |
| 909 | return currencyId |
| 910 | if currencyId.find('.') > 0: |
| 911 | # if ID contains .M, .S or .F, then it can't contain X or Z prefix. in such case, ID equals to ALTNAME |
| 912 | parts = currencyId.split('.') |
| 913 | firstPart = self.safe_string(parts, 0) |
| 914 | secondPart = self.safe_string(parts, 1) |
| 915 | return super(kraken, self).safe_currency_code(firstPart, currency) + '.' + secondPart |
| 916 | return super(kraken, self).safe_currency_code(currencyId, currency) |
| 917 | |
| 918 | def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface: |
| 919 | """ |
no test coverage detected