async def fetch_markets(self, params={}):
    response = (await self.publicGetV2MarketActive(params))
    result = []
    markets = self.safe_value(response, 'markets')
    for i in range(0, len(markets)):
        market = markets[i]
        baseId = self.safe_string(market, 'instrument')
        quoteId = self.safe_string(market, 'currency')
        id = ((baseId + '/') + quoteId)
        base = self.common_currency_code(baseId)
        quote = self.common_currency_code(quoteId)
        symbol = ((base + '/') + quote)
        fee = (0.0085 if (quote == 'AUD') else 0.0022)
        pricePrecision = 2
        amountPrecision = 4
        minAmount = 0.001
        minPrice = None
        if (quote == 'AUD'):
            if ((base == 'XRP') or (base == 'OMG')):
                pricePrecision = 4
            amountPrecision = (- math.log10(minAmount))
            minPrice = math.pow(10, (- pricePrecision))
        precision = {'amount': amountPrecision, 'price': pricePrecision}
        limits = {'amount': {'min': minAmount, 'max': None}, 'price': {'min': minPrice, 'max': None}, 'cost': {'min': None, 'max': None}}
        result.append({'info': market, 'id': id, 'symbol': symbol, 'base': base, 'quote': quote, 'baseId': baseId, 'quoteId': quoteId, 'active': None, 'maker': fee, 'taker': fee, 'limits': limits, 'precision': precision})
    return result
async def fetch_markets(self, params={}):
    response = (await self.publicGetV2MarketActive(params))
    result = []
    markets = self.safe_value(response, 'markets')
    for i in range(0, len(markets)):
        market = markets[i]
        baseId = self.safe_string(market, 'instrument')
        quoteId = self.safe_string(market, 'currency')
        id = ((baseId + '/') + quoteId)
        base = self.common_currency_code(baseId)
        quote = self.common_currency_code(quoteId)
        symbol = ((base + '/') + quote)
        fee = (0.0085 if (quote == 'AUD') else 0.0022)
        pricePrecision = 2
        amountPrecision = 4
        minAmount = 0.001
        minPrice = None
        if (quote == 'AUD'):
            if ((base == 'XRP') or (base == 'OMG')):
                pricePrecision = 4
            amountPrecision = (- math.log10(minAmount))
            minPrice = math.pow(10, (- pricePrecision))
        precision = {'amount': amountPrecision, 'price': pricePrecision}
        limits = {'amount': {'min': minAmount, 'max': None}, 'price': {'min': minPrice, 'max': None}, 'cost': {'min': None, 'max': None}}
        result.append({'info': market, 'id': id, 'symbol': symbol, 'base': base, 'quote': quote, 'baseId': baseId, 'quoteId': quoteId, 'active': None, 'maker': fee, 'taker': fee, 'limits': limits, 'precision': precision})
    return result