For designing strategies for automated execution at IB, how would I obtain account equity at this broker (as I need this information to calculate position sizes for orders)? Also, how are orders tracked and managed? I know that MT4 (which I'm familiar with) uses OrderMagicNumbers to track orders (i.e. so if I pyramid a position within a strategy I can know which order is which). Thanks for any input