SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Thu Aug 22, 2019 5:18 pm

All times are UTC + 3 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Apr 10, 2019 8:39 am 
Offline

Joined: Thu Dec 06, 2018 1:57 am
Posts: 28
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);
}


Top
 Profile  
 
PostPosted: Wed Apr 10, 2019 11:53 am 
Offline

Joined: Wed May 05, 2010 9:49 pm
Posts: 497
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 3 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group