For live trading, how can you check the delay (how many minutes away from 8pm EST) in receiving daily forex data from OANDA?
QUANTCONNECT COMMUNITY
For live trading, how can you check the delay (how many minutes away from 8pm EST) in receiving daily forex data from OANDA?
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.
Mia Alissi
Here’s an algorithm that will help Zoe check the delay in receiving daily forex data from OANDA, showing the time difference (in minutes) from the target 8:00 PM EST (or EDT during daylight saving):
How it works:
on_data
), it gets the timestamp (self.time
), converts it to US/Eastern time, and calculates how many minutes early or late the data arrived compared to 8:00 PM that day.You can adjust the forex symbol or use this code as a template for any daily OANDA feed.
Sources: Handling Data - QuantConnect.com, Calendar Consolidators - QuantConnect.com, Bybit Custom Data Crypto Regression Algorithm, Basic Template Forex Algorithm, Consolidate Hour Bars Into Daily Bars Regression Algorithm
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.
Zoe Ho
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!