I’m using a custom consolidator for 30 minute bars, so I need to fetch history on 30minute resultion, to update the consolidator with the correct tradebars (ie: the correct OHLC values.) 

Whats the best way to do this? It seems I am restricted to fetching history for only the main resolutions (daily, minute, etc). Please see to the code snippet below to see what I've tried.

Thanks in advance

history = algorithm.History(symbol, barCount, TimeSpan.FromMinutes(30))  # error history = algorithm.History(symbol, barCount, timedelta(minutes=30))  # error history = algorithm.History(symbol, barCount, Resolution.Minute)  # no error, but isn’t what i need for index, row in history.loc[symbol].iterrows():     tradeBar = TradeBar()     tradeBar.Close = row['close']     tradeBar.Open = row['open']     tradeBar.High = row['high']     tradeBar.Low = row['low']     tradeBar.Volume = row['volume']     tradeBar.Time = index     tradeBar.Symbol = symbol     self.consolidator_30min.Update(tradeBar)