def currency_id(self, commonCode):
    if self.currencies:
        if (commonCode in self.currencies):
            return self.currencies[commonCode]['id']
    currencyIds = {v: k for (k, v) in self.commonCurrencies.items()}
    return self.safe_string(currencyIds, commonCode, commonCode)
def currency_id(self, commonCode):
    if self.currencies:
        if (commonCode in self.currencies):
            return self.currencies[commonCode]['id']
    currencyIds = {v: k for (k, v) in self.commonCurrencies.items()}
    return self.safe_string(currencyIds, commonCode, commonCode)