def parse_ticker(self, ticker, market=None):
    timestamp = self.milliseconds()
    symbol = None
    if market:
        symbol = market['symbol']
    vwap = self.safe_float(ticker, 'vwap')
    baseVolume = self.safe_float(ticker, 'volume')
    quoteVolume = None
    if ((baseVolume is not None) and (vwap is not None)):
        quoteVolume = (baseVolume * vwap)
    last = self.safe_float(ticker, 'last')
    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, 'best_bid'), 'bidVolume': None, 'ask': self.safe_float(ticker, 'best_ask'), 'askVolume': None, 'vwap': self.safe_float(ticker, 'vwap'), 'open': None, 'close': last, 'last': last, 'previousClose': None, 'change': None, 'percentage': None, 'average': None, 'baseVolume': baseVolume, 'quoteVolume': quoteVolume, 'info': ticker}
def parse_ticker(self, ticker, market=None):
    timestamp = self.milliseconds()
    symbol = None
    if market:
        symbol = market['symbol']
    vwap = self.safe_float(ticker, 'vwap')
    baseVolume = self.safe_float(ticker, 'volume')
    quoteVolume = None
    if ((baseVolume is not None) and (vwap is not None)):
        quoteVolume = (baseVolume * vwap)
    last = self.safe_float(ticker, 'last')
    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, 'best_bid'), 'bidVolume': None, 'ask': self.safe_float(ticker, 'best_ask'), 'askVolume': None, 'vwap': self.safe_float(ticker, 'vwap'), 'open': None, 'close': last, 'last': last, 'previousClose': None, 'change': None, 'percentage': None, 'average': None, 'baseVolume': baseVolume, 'quoteVolume': quoteVolume, 'info': ticker}