def parse_ticker(self, ticker, market=None):
    timestamp = self.safe_integer(ticker, 'timestamp')
    if (timestamp is not None):
        timestamp *= 1000
    symbol = None
    if (market is not None):
        symbol = market['symbol']
    last = self.safe_float(ticker, 'lastPrice')
    return {'symbol': symbol, 'timestamp': timestamp, 'datetime': self.iso8601(timestamp), 'high': None, 'low': None, 'bid': self.safe_float(ticker, 'bestBid'), 'bidVolume': None, 'ask': self.safe_float(ticker, 'bestAsk'), 'askVolume': None, 'vwap': None, 'open': None, 'close': last, 'last': last, 'previousClose': None, 'change': None, 'percentage': None, 'average': None, 'baseVolume': self.safe_float(ticker, 'volume24h'), 'quoteVolume': None, 'info': ticker}
def parse_ticker(self, ticker, market=None):
    timestamp = self.safe_integer(ticker, 'timestamp')
    if (timestamp is not None):
        timestamp *= 1000
    symbol = None
    if (market is not None):
        symbol = market['symbol']
    last = self.safe_float(ticker, 'lastPrice')
    return {'symbol': symbol, 'timestamp': timestamp, 'datetime': self.iso8601(timestamp), 'high': None, 'low': None, 'bid': self.safe_float(ticker, 'bestBid'), 'bidVolume': None, 'ask': self.safe_float(ticker, 'bestAsk'), 'askVolume': None, 'vwap': None, 'open': None, 'close': last, 'last': last, 'previousClose': None, 'change': None, 'percentage': None, 'average': None, 'baseVolume': self.safe_float(ticker, 'volume24h'), 'quoteVolume': None, 'info': ticker}