I tried to test trend following strategy for futures, however I got a error like this. It seems like some historical data cannot be called after around late of 2016. However it's not true for every futures I am using. All of them are still actively traded on exchange based on the introduction page.
There was a runtime error.
TypeError:an integer is required
Line: 108 inrebalance
history = data.history(context.futures,'price', 117, '1d')
Could anyone help me with this problem?