what will happen when broker had issues with their data source?

When experiencing broker data source issues, understanding how your trading platform responds is critical. On 8/16/2017 at 9:30 AM EST, stock trading was affected when VIX data paused for 10 minutes due to data source problems. This raised important questions about how algorithmic trading systems handle missing market data and what safeguards traders should implement.

Broker data source issues in algorithmic trading

Question: On 8/16/2017 9:30 EST when market opens, due to some reasons the VIX data paused updating for 10 minutes. As a result all brokers’ VIX value is missing for that time period. I am wondering what the api request data.current(‘VIX’,…) will return then? how could the algorithm detect this issue and pause the trading?

EXCLUSIVE OFFER

Extra 7% OFF All Quantra Courses

Level up your quant trading skills with courses from Quantra by QuantInsti — Python for trading, machine learning strategies, options trading, and more.

HUI7 Browse Courses → Use code HUI7 at checkout

Answer: IBridgePy will not receive any data from IB server if there is no new VIX data during a period of time for any reasons. Therefore, data.current(‘VIX’, …) will return the previous number if IBridgePy has received a valid number before. Otherwise, it will return -1 that is the default value after real-time-price was requested but has not received any values yet. IBridgePy will not receive any error messages in this situation so that it is hard to detect this issue. If it is a serious issue that you want to solve, you may write a code to check real time prices regularly, for example, every 1 second. You may determine it has some issues if there is no new value showing up for a long time, say 10 minutes. For more information, visit our documentation or explore our tutorials.

Learn more from Interactive Brokers platform documentation.

Need help building this strategy?

Our Rent-a-Coder team builds custom automated trading programs. From simple scripts to complex multi-account strategies — we handle it all.

EXCLUSIVE OFFER

Extra 7% OFF All Quantra Courses

Level up your quant trading skills with courses from Quantra by QuantInsti — Python for trading, machine learning strategies, options trading, and more.

HUI7 Browse Courses → Use code HUI7 at checkout

Ready to Automate Your Trading?

Download IBridgePy free or let our coders build your strategy.

Download Free Hire a Coder

Leave a Comment