<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Bill,<div><br><div><div>On Oct 8, 2009, at 2:43 AM, Bill Pippin wrote:</div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font><blockquote type="cite">I don't know the design decision that went into filtering these<br></blockquote><blockquote type="cite">other states out ...<br></blockquote><br>You imply that the shim's design involves such a choice, and as I<br>note above, such claim is false.<br></div></blockquote><div><br></div><div>I apologize for assuming too much - I didn't mean to point fingers here...</div><div><br></div><blockquote type="cite"><div><blockquote type="cite">... I have definitely seen PreSubmitted and PendingSubmit.<br></blockquote><blockquote type="cite">In fact, I previously had to look for these in the ... logs to<br></blockquote><blockquote type="cite">capture them ...<br></blockquote><br>Interesting. &nbsp;Of course PreSubmitted occurs frequently, but I did<br>not expect that PendingSubmit would occur as part of order status<br>messages, since according to IB's docs it does not, as noted above.<br>Of course it isn't unheard of for the docs to conflict with reality;<br>and when theory and observed fact disagree, the facts win out.<br>For that matter, I believe I remember Nils noting that he'd seen<br>PendingSubmit, so it's very possible that you're correct here.<br></div></blockquote><div><br></div><div>It's not frequent, but here is one that I saw:</div><div><br></div><div><div>20090923_risk.log:17226|03619| &nbsp;0.000039|3| 3| 6|1292|PendingSubmit|100000|350000|0.899400|1095302502|0|0.899400|8|</div><div><br></div><div>but didn't make it into the Journals - I think your fix will take care of this.</div><div><br></div></div><blockquote type="cite"><div> &nbsp;&nbsp;&nbsp;OrderStatus: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ken Feng's list<br> &nbsp;&nbsp;&nbsp;---------------- &nbsp;&nbsp;&nbsp;----------------<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* Pending<br> &nbsp;&nbsp;&nbsp;PendingSubmit &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PendingSubmit<br> &nbsp;&nbsp;&nbsp;PendingCancel &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PendingCancel<br> &nbsp;&nbsp;&nbsp;PreSubmitted &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PreSubmitted<br> &nbsp;&nbsp;&nbsp;Submitted &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Submitted<br> &nbsp;&nbsp;&nbsp;Cancelled &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cancelled<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* Partial<br> &nbsp;&nbsp;&nbsp;Filled &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Filled<br> &nbsp;&nbsp;&nbsp;Inactive &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inactive<br><br>I claim that the list on the left is, at least according to the<br>newest version I know of for IB's APIguide.pdf, the complete list of<br>order states that IB has defined. &nbsp;Do you have convincing evidence<br>to the contrary, in particular for your inclusion of the two<br>extra states?<br></div></blockquote><div><br></div><div>When I grep'ed my risk log files, I couldn't find any Pending or Partials. &nbsp;Now, I'm hammering IB/Shim pretty hard - on the order of hundreds of submits and cancels a day. &nbsp;I am hoping to cover most states, but I have no idea if one day, Pending or Partial would show up or not.</div><div><br></div><div>...</div><div><br></div><blockquote type="cite"><div>Presumably the m_status attribute above is the same as the order<br>status state transition next value as reported via the order status<br>message; since the shim is still at an earlier version of the<br>open order message, I haven't yet checked this. &nbsp;Note also that<br>this newest version of the open order message includes commission<br>information, which may be of interest to some users.</div></blockquote><br></div><div>Yes! &nbsp;I would be interested in that commission information, if the upstream has actually filled out the field. &nbsp;For now, I have an GUI-automated kludge that pulls down trades (CSVs) from TWS.</div><div><br></div><div>- Ken</div><div><br></div><div><br></div></div></body></html>