Is it possible to ignore or block error messages?

Learning to ignore or block error messages in IBridgePy should be approached carefully as these messages are crucial for algorithmic trading debugging. While possible to ignore block error notifications, keeping error messages visible helps you troubleshoot issues with the IB API connection and order execution.

Ignore or block error messages in IBridgePy debugging

It is possible to ignore or block error messages in IBridgePy but it is NOT recommended to do so because you may miss some of the most important information from IB. Also, you may need to see the error messages to debug your codes.

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

How to Block Error Messages in IBridgePy

Anyway, if you really really want to do so, you can do that in IBridgePy. Go to the folder where you save IBridgePy and get into the folder of IBridgePy. Open IBAccountManager.py and look for def error(self, errorId, errorCode, errorString). Replace the whole function content by “pass”, which means that do nothing in this function. Then, you won’t see any error messages any more. For better debugging, review our documentation.

Learn more from Python official 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

2 thoughts on “Is it possible to ignore or block error messages?”

  1. Substantially, the post is really the sweetest on that precious topic. I fit in with your conclusions and will eagerly look forward to your coming updates. Just saying thanks will not just be enough, for the amazing lucidity in your writing. I will at once grab your rss feed to stay abreast of any kind of updates. Genuine work and also much success in your business efforts!

Leave a Comment