def parse_ohlcv(self, ohlcv, market=None):
    if isinstance(ohlcv, list):
        numElements = len(ohlcv)
        volumeIndex = (6 if (numElements > 6) else 5)
        timestamp = self.safe_value(ohlcv, 0)
        if isinstance(timestamp, basestring):
            timestamp = self.parse8601(timestamp)
        return [timestamp, self.safe_float(ohlcv, 1), self.safe_float(ohlcv, 2), self.safe_float(ohlcv, 3), self.safe_float(ohlcv, 4), self.safe_float(ohlcv, volumeIndex)]
    else:
        return [self.parse8601(self.safe_string(ohlcv, 'time')), self.safe_float(ohlcv, 'open'), self.safe_float(ohlcv, 'high'), self.safe_float(ohlcv, 'low'), self.safe_float(ohlcv, 'close'), self.safe_float(ohlcv, 'volume')]
def parse_ohlcv(self, ohlcv, market=None):
    if isinstance(ohlcv, list):
        numElements = len(ohlcv)
        volumeIndex = (6 if (numElements > 6) else 5)
        timestamp = self.safe_value(ohlcv, 0)
        if isinstance(timestamp, basestring):
            timestamp = self.parse8601(timestamp)
        return [timestamp, self.safe_float(ohlcv, 1), self.safe_float(ohlcv, 2), self.safe_float(ohlcv, 3), self.safe_float(ohlcv, 4), self.safe_float(ohlcv, volumeIndex)]
    else:
        return [self.parse8601(self.safe_string(ohlcv, 'time')), self.safe_float(ohlcv, 'open'), self.safe_float(ohlcv, 'high'), self.safe_float(ohlcv, 'low'), self.safe_float(ohlcv, 'close'), self.safe_float(ohlcv, 'volume')]