You’ve asked for it and we’re delivering – history is now available in daily mode! If you’re running a daily strategy and sampling daily bars, you now have the ability to run a backtest in daily mode.
For example, this code in daily mode will give you the last 2 day’s price data plus today’s current price data.
history(3, '1d', 'price')
And this code in minute mode will give you the last 30 minutes of trailing data.
history(30, '1m', 'price')
This moves us one step closer to deprecating batch_transform, as we continue to expand the history API. Thank you for your feedback and enjoy the new functionality!