Back

Futures data not accessible in research environment

Hi,

I cannot get futures data in research environment. This is what I'm trying:

es = qb.AddFuture("ES")
es.SetFilter(timedelta(0), timedelta(180))

future_history = qb.GetFutureHistory(es.Symbol, datetime(2018, 1, 4), datetime(2018, 3, 31))

 

Then the system freezes and I get the following message:

 

Kernel Restarting

The kernel appears to have died. It will restart automatically.

 

This happens no matter how many times I try, refresh or play with arguments. 

 I would appreciate some pointers how to get around this.

Thanks!

Update Backtest







Hi Tomasz Mierzejewski, the kernel dies when we try to access too much data.
The resolution of the data is minute so we have about 86400 data rows (closed market periods are not included) per day. I would advice you to make short-period requests, up to 5 days, then you can extract the data you need (maybe you just need a daily average) and move to the next date/time window.

0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


I tried to get different resolution than Minute, but that doesn't seem to work. Do futures support Hourly/Daily resolutions? 

0

Not, yet. Only minute or higher. Please checkout the futures data here.
With pandas, you can easily compute hour or daily bars from the minute data.
That is the only way to do at the moment.

0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed