zortag wrote:
1. How do I get access to the IAccount object in the first place? I can't see a way to get this from the IContext object. Yes I can get the IAccount object from the IStrategy onAccount() method but this is only called after the account info changes. I need the IAccount object at the very start. How do i get it?
Am I correct in assuming you've used Interactive Brokers before? Their API does this: you only get account updates if the account balance changes, and even then not in a timely manner.
When I started using Dukas' API, that was one of the first things I looked at and I soon found you get a new call to onAccount() about every 5 seconds, and thus far I've always received one before I even receive my first bar or tick. However, all of my testing has been in the backtester, so if you aren't seeing the same behavior there may be a disparity in behavior between the two.
-Brian