I was hoping to write scripts that are universal for minute/live or daily trading mode. To do this, I tried using batch_transform if the script is running in daily mode and history if the script is running in minute or live. The problem is, the mere existence of the function "history" in my script sets off the error when in daily mode. Once I comment that out, it of course works fine - but that defeats the purpose.
Is there a solution to this, or is it just something we have to live with?