[ts-gen] cross session orders, client ids

pippin at owlriver.net pippin at owlriver.net
Thu Dec 18 18:06:35 EST 2008


Nils,

Thanks for the detailed trouble report.

> starting a tws and shim session from very scratch - everything is fine,
> provided there are no open API orders. Other open orders don't harm.
> Once there is an API order launched, all follow up connections fail. 

>From the above it's clear that the IB tws is sending the open order
messages ahead of the account details, and that the shim is reading
those messages, scanning for an account quad, and failing.

One thing you might like to try is, in Configure->API->All API Settings,
to unset "Download open orders on connection".  That will probably fix
the problem for now.

I'll provide a more elegant solution, push it out in another release,
and let you know about it then.

> $ bin/req.filter < log/shim2tws.bin
> 23|8|
   6|2| 1||

The above request stream is the handshake (23|8) followed by an
account data request (6|2|1||).  The open orders messages, as you
pointed out, were significantly larger, nearly 60 words.

Thanks,

Bill
  


More information about the ts-general mailing list