Hey, anyone else seeing issues with futures contract prices? I get mine from Quantconnect on my live account. I log them only to confirm the price with another source like tradingview. Since Sunday Futures market open, the NQ and ES futures contract prices have been stale. It wont update. I've restarted the algo. I even logged which contracts I'm currently mapping and which ones I'm invested in to ensure there is no mismatch. Its correctly mapping the September expiration contract as seen in the logs. But the price has remained 23850 since sunday, even with algo restarts. Is the quantconnect futures price feed bad?
For reference the (P) is the price. NQ | P:23850.75, has been the same every minute the market has been open since futures open on Sunday. Never done this before.
Mia Alissi
Here is a diagnostic code snippet you can use in your QCAlgorithm to log detailed information about your NQ and ES futures contracts every minute in live mode. This will help you determine if your algorithm is seeing fresh futures data, whether you're properly mapped to the front contract, and if your brokerage/data feed subscription is active:
How to use:
Tip: If price always shows as
[Price N/A]
, mapping is broken or your data feed is not live. If mapping/unsubscribed, it could be a data feed, brokerage configuration, or entitlement issue.Let me know if you want to investigate specific issues based on what you see in these logs!
Sources: Charting and Logging - QuantConnect.com, Futures - QuantConnect.com, Basic Template Futures History Algorithm, Basic Template Eurex Futures Algorithm, Futures - QuantConnect.com
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.
David E
Must have been a price data issue with quantconnect. I run two live algos, exact same code, two separate brokerages. For a tax reason. After all the troubleshooting on one live algo, without touching the other one, both spontaneously started working after this post. Maybe I tipped off that the data wasn't working. Thanks to whomever fixed it.
David E
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.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!