[ts-gen] cross session orders, client ids

Nils Gebhardt mail at ngebhardt.de
Wed Dec 3 11:56:18 EST 2008



I get the following error from time to time: 

[17:19:35][~/T/TEST/shim-081121]
n at gb07:$ exs/kill.rb 

          The trading shim has connected to the database server
          and loaded 51649 products; 

Problem: 422 the client id  8 has not yet been released

Problem: 523 the IB tws server handshake failed
Exiting
wait 2;
bind key(take-pos-aa-081203-17-19-40) to oid(1);

exs/kill.rb:37:in `write': Broken pipe (Errno::EPIPE)
        from exs/kill.rb:37:in `print'
        from exs/kill.rb:37

and from the tws starting console: 

7:19:31:315 JTS-EServerSocket-379: [8:23:42:1:0:0:0:ERR] Unable connect
as the client id is already in use. Retry with a unique client id.
17:19:31:315 JTS-EServerSocket-379: Anticipated error
jextend.b: Unable connect as the client id is already in use. Retry with
a unique client id.
	at jextend.pd.a(pd.java:672)
	at jextend.pd.run(pd.java:605)
	at java.lang.Thread.run(Thread.java:619)
17:19:45:340 JTS-EServerSocket-383: [8:23:42:1:0:0:0:ERR] Unable connect
as the client id is already in use. Retry with a unique client id.
17:19:45:340 JTS-EServerSocket-383: Anticipated error
jextend.b: Unable connect as the client id is already in use. Retry with
a unique client id.



restarting tws helps. Any other way? 


 cross session order related question: Having the example kill.rb
running, is it also possible to access orders from a different script,
which are marked in OrderStatus table as 'Submitted'. In a first try I
picked the date/time string from that table to do the steps as in
kill.rb, it didn't quite work out however. Is there a more direct way to
refer to such an order? 


Thanks

Nils





On Wed, 2008-11-26 at 20:42 -0500, pippin at owlriver.net wrote:
> To whom it may concern,
> 
> This list will be quiet from our end up until Mon. Dec 1st, due to
> the Thanksgiving holiday here in the U.S.
> 
> Please feel free to post, just don't expect an immediate answer.
> 
> Thanks,
> 
> Bill
> _______________________________________________
> ts-general mailing list
> ts-general at trading-shim.org
> http://www.trading-shim.org/mailman/listinfo/ts-general



More information about the ts-general mailing list