SmartQuant Discussion
http://www.smartquant.com/forums/

AccountDataManager.GetSnapshot returns nothing
http://www.smartquant.com/forums/viewtopic.php?f=60&t=14902
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)
{
Console.WriteLine(entry.Account);
Console.WriteLine(entry.Orders);
Console.WriteLine(entry.Positions);
Console.WriteLine(entry.Values);
}

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
https://www.phpbb.com/