def parse_ticker(self, ticker, market=None):
    if (market is None):
        marketId = self.safe_string(ticker, 'market_id')
        if (marketId in self.markets_by_id):
            market = self.markets_by_id[marketId]
    symbol = None
    if (market is not None):
        symbol = market['symbol']
    timestamp = self.milliseconds()
    close = self.safe_float(ticker, 'close')
    return {'symbol': symbol, 'timestamp': timestamp, 'datetime': self.iso8601(timestamp), 'high': self.safe_float(ticker, 'high'), 'low': self.safe_float(ticker, 'low'), 'bid': self.safe_float(ticker['bid'], 'price'), 'bidVolume': self.safe_float(ticker['bid'], 'amount'), 'ask': self.safe_float(ticker['ask'], 'price'), 'askVolume': self.safe_float(ticker['ask'], 'amount'), 'vwap': None, 'open': self.safe_float(ticker, 'open'), 'close': close, 'last': close, 'previousClose': None, 'change': self.safe_float(ticker, 'daily_change'), 'percentage': self.safe_float(ticker, 'daily_change_perc'), 'average': None, 'baseVolume': self.safe_float(ticker, 'volume'), 'quoteVolume': None, 'info': ticker}
def parse_ticker(self, ticker, market=None):
    if (market is None):
        marketId = self.safe_string(ticker, 'market_id')
        if (marketId in self.markets_by_id):
            market = self.markets_by_id[marketId]
    symbol = None
    if (market is not None):
        symbol = market['symbol']
    timestamp = self.milliseconds()
    close = self.safe_float(ticker, 'close')
    return {'symbol': symbol, 'timestamp': timestamp, 'datetime': self.iso8601(timestamp), 'high': self.safe_float(ticker, 'high'), 'low': self.safe_float(ticker, 'low'), 'bid': self.safe_float(ticker['bid'], 'price'), 'bidVolume': self.safe_float(ticker['bid'], 'amount'), 'ask': self.safe_float(ticker['ask'], 'price'), 'askVolume': self.safe_float(ticker['ask'], 'amount'), 'vwap': None, 'open': self.safe_float(ticker, 'open'), 'close': close, 'last': close, 'previousClose': None, 'change': self.safe_float(ticker, 'daily_change'), 'percentage': self.safe_float(ticker, 'daily_change_perc'), 'average': None, 'baseVolume': self.safe_float(ticker, 'volume'), 'quoteVolume': None, 'info': ticker}