SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Fri Sep 21, 2018 9:29 am

All times are UTC + 3 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Mar 26, 2010 9:06 pm 
Offline

Joined: Wed Mar 10, 2010 1:42 am
Posts: 63
I know the code to get current broker positions is:

Code:
BrokerAccount IB = DataManager.GetBrokerInfo("IB").Accounts[0];
      foreach (BrokerPosition brokerPosition in IB.Positions)
      {
            //do something here with each position
         }
      }


but is there code that returns currently open positions that HAVE NOT been filled and are just open orders?

Thanks in advance.


Top
 Profile  
 
PostPosted: Tue Aug 13, 2013 9:33 pm 
Offline

Joined: Tue Mar 15, 2011 7:15 pm
Posts: 80
Hello,

I am having the same problem. I have one position and two open (unfilled) orders. I am using:

Code:
BrokerInfo info = DataManager.GetBrokerInfo("IB");
      BrokerAccount account = info.Accounts[0];



I can readily sync positions to the broker (IB) because the account.Positions.Count value is 1 (as it should be). However, I do not see orders: the account.Orders.Count value is 0, despite the fact that it should be 2.

Can anyone please advise? Thank you.


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 2 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