def fetch_ohlcv(self, symbol, timeframe='1m', since=None, limit=None, params={}):
    if (not self.has['fetchTrades']):
        self.raise_error(NotSupported, details='fetch_ohlcv() not supported yet')
    self.load_markets()
    trades = self.fetch_trades(symbol, since, limit, params)
    return self.build_ohlcv(trades, timeframe, since, limit)
def fetch_ohlcv(self, symbol, timeframe='1m', since=None, limit=None, params={}):
    if (not self.has['fetchTrades']):
        self.raise_error(NotSupported, details='fetch_ohlcv() not supported yet')
    self.load_markets()
    trades = self.fetch_trades(symbol, since, limit, params)
    return self.build_ohlcv(trades, timeframe, since, limit)