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