Blog Archives

IB ActiveX API Order status processing with VBA Dictionary object

If you ever submitted an order to Trader Workstation using IB API - you are probably aware of a well-known issue involving Interactive Brokers platform sending back duplicate order status updates. This can be problematic if your order management system or trading algorithm relies on accurate order status information. For example, a duplicate "FILLED" order status message for the same order ID can be misleading and confuse your trading logic.

This post demonstrates a method for improving IB ActiveX API's order status handling code using VBA Dictionary object. The algorithm for filtering out duplicate order status updates demonstrated in this post can also be used in Java, C++, and C# applications.
Posted in Interactive Brokers API, Programming examples Tagged with: , , , ,

Calculating Correlations of Forex Currency Pairs in Python

Traders often calculate correlation between different instruments, such as stocks and ETFs, or Forex currency pairs. It is important to know if you portfolio is properly diversified. Highly correlated instruments in your portfolio will tend to go up and down together compromising your diversification strategy. Keeping an eye for high correlations (positive or negative) is even more important to Forex traders, since currency pairs often exhibit high positive or negative correlations due to market conditions or having similar market drivers.… Read more...

Posted in Data Analysis, Programming examples

IB Data Downloader


ib_downloader_3_downconf ib_downloader_3_options

Interactive Brokers (IB) is a low cost provider of trade execution and clearing services for individuals, advisors, prop trading groups, brokers and hedge funds. IB's premier technology provides direct access to stocks, options, futures, forex, bonds and funds on over 100 markets worldwide from a single IB Universal account.

Member NYSE, FINRA, SIPC. Visit www.interactivebrokers.com for more information.

Contact Us!

Please enter your contact details and a short message below and we will respond to your message shortly.