def parse_ticker(self, ticker, market=None):
    timestamp = self.safe_integer(ticker, 'timestamp')
    symbol = None
    marketId = self.safe_string(ticker, 'symbol')
    if (marketId in self.markets_by_id):
        market = self.markets_by_id[marketId]
    else:
        baseId = self.safe_string(ticker, 'base')
        quoteId = self.safe_string(ticker, 'quote')
        if ((baseId is not None) and (quoteId is not None)):
            base = self.safe_currency_code(baseId)
            quote = self.safe_currency_code(quoteId)
            symbol = ((base + '/') + quote)
    if ((symbol is None) and (market is not None)):
        symbol = market['symbol']
    return {'symbol': symbol, 'timestamp': timestamp, 'datetime': self.iso8601(timestamp), 'high': self.safe_number(ticker, 'high'), 'low': self.safe_number(ticker, 'low'), 'bid': None, 'bidVolume': None, 'ask': None, 'askVolume': None, 'vwap': self.safe_number(ticker, 'weightedAvgPrice'), 'open': self.safe_number(ticker, 'open'), 'close': self.safe_number(ticker, 'close'), 'last': self.safe_number(ticker, 'last'), 'previousClose': None, 'change': self.safe_number(ticker, 'change'), 'percentage': self.safe_number(ticker, 'percentage'), 'average': None, 'baseVolume': self.safe_number(ticker, 'baseVolume'), 'quoteVolume': self.safe_number(ticker, 'quoteVolume'), 'info': ticker}
def parse_ticker(self, ticker, market=None):
    timestamp = self.safe_integer(ticker, 'timestamp')
    symbol = None
    marketId = self.safe_string(ticker, 'symbol')
    if (marketId in self.markets_by_id):
        market = self.markets_by_id[marketId]
    else:
        baseId = self.safe_string(ticker, 'base')
        quoteId = self.safe_string(ticker, 'quote')
        if ((baseId is not None) and (quoteId is not None)):
            base = self.safe_currency_code(baseId)
            quote = self.safe_currency_code(quoteId)
            symbol = ((base + '/') + quote)
    if ((symbol is None) and (market is not None)):
        symbol = market['symbol']
    return {'symbol': symbol, 'timestamp': timestamp, 'datetime': self.iso8601(timestamp), 'high': self.safe_number(ticker, 'high'), 'low': self.safe_number(ticker, 'low'), 'bid': None, 'bidVolume': None, 'ask': None, 'askVolume': None, 'vwap': self.safe_number(ticker, 'weightedAvgPrice'), 'open': self.safe_number(ticker, 'open'), 'close': self.safe_number(ticker, 'close'), 'last': self.safe_number(ticker, 'last'), 'previousClose': None, 'change': self.safe_number(ticker, 'change'), 'percentage': self.safe_number(ticker, 'percentage'), 'average': None, 'baseVolume': self.safe_number(ticker, 'baseVolume'), 'quoteVolume': self.safe_number(ticker, 'quoteVolume'), 'info': ticker}