On a somewhat unrelated note, I would advise the OP not to tie trading with IB's API. I'm at the mercy of IB since the alternative is months worth of coding and testing to move to an alternative. Use FIX or anything else that allows you to move to a competitor within days.