SmartQuant Discussion

AccountDataManager.GetSnapshot returns nothing
Page 1 of 1

Author:  abasqd [ Wed Apr 10, 2019 8:39 am ]
Post subject:  AccountDataManager.GetSnapshot returns nothing

I have positions open with my IB account. However when I request an AccountDataSnapshot as below, nothing is returned. Is this method implemented for IB?

Framework framework = Framework.Current;
AccountDataSnapshot accData = framework.AccountDataManager.GetSnapshot(4);
foreach(AccountDataEntry entry in accData.Entries)

Author:  skuvv [ Wed Apr 10, 2019 11:53 am ]
Post subject:  Re: AccountDataManager.GetSnapshot returns nothing

Hello abasqd,
1) check the option of IB 'UseMonitoredAccount', it should be true
2) check that data available in the Account window
3) in case of strategy try to set option 'WaitAccountData' to true, it will guarantee that account data will downloaded and will be available right after connect.

Page 1 of 1 All times are UTC + 3 hours
Powered by phpBB® Forum Software © phpBB Group