Hi Collective2:
I am almost done with my adapter to Collective2. I have a question about getsystemhypothetical.
Of cource my handler of Collective 2 response has been a generic one and so far everything from collective2 has a status element in it. However getsystemhypothetical does not contain a status element in it’s response and I was forced to create a special case for it. I am just curious as to why this command is different from the rest.
A separate question, how fast would an order execute? If I put in a market order to BTO IBM, how long will it take for it to go through? If I STC IBM after that, would I get the entire amount back? or do I have to wait for settle?
Ed
That getsystemhypothetical does not return a status element is an oversight and I will try to correct it shortly.
Regarding your questions about order speed and settlement: The hypothetical fill engine order processing is pretty fast (but this depends on a lot of unrelated issues: time of day, server load, market conditions, etc). You "get back" all your cash right away and do not have to wait for any sort of settlement.
Is it already fixed?
I get a status node from getsystemhypothetical
<collective2>
<status>OK</status>
<error>
<code>0</code>
</error>
<data>
<hypotheticalEquity>
<system>
<systemid>1234</systemid>
<systemid>C2 Test System (Random)</systemid>
<totalequityavail>259738.28</totalequityavail>
<cash>273471.28</cash>
<equity>-21</equity>
<marginused>13712</marginused>
</system>
</hypotheticalEquity>
</data>
</collective2>