trader workstation 4 (TWS) interactive brokers

This is a discussion on trader workstation 4 (TWS) interactive brokers within the Direct Access forums, part of the Commercial category; Hello there I have this problem with the trader workstation platform. Every time I launch, in debuggin mode, a client ...

Reply
 
LinkBack Thread Tools Search this Thread
Old Jan 27, 2010, 6:28pm   #1
 
thosecars82's Avatar
Joined Oct 2007
trader workstation 4 (TWS) interactive brokers

Hello there
I have this problem with the trader workstation platform.

Every time I launch, in debuggin mode, a client application which connects to TWS succesfully, the next thing happens: If I stop abruptly the debugging mode, then next time the client application tries to connect to TWS with the same id, the connection is rejected. I understand this point because that means that according to TWS there is still client application connected with that ID. Now my question is:

If there is a way, how can I get this client id unattached? I would like to tell TWS to do so from the relaunched client application, for example, through a sentece right before the typical eConnect sentence that connect to TWS?
Moreover, how can I see those clients which opened a connection in TWS and close one of those connections but this time from TWS?

Thanks in advance
__________________
Neither adds nor links allowed.
thosecars82 is offline Training literature vendor (e.g courses / spreadbetting guides / eBooks)   Reply With Quote
Old Jan 27, 2010, 9:17pm   #2
gc1
Joined Jun 2005
Re: trader workstation 4 (TWS) interactive brokers

Why not use a new ID each time the client program is run ? E.g. save the last used number in a file or database or the registry (if windows) and add 1 each time.

Broken TCP connections might time out after a while but how long to wait is probably O/S dependent.
gc1 is offline   Reply With Quote
Old Jan 27, 2010, 9:19pm   #3
 
thosecars82's Avatar
Joined Oct 2007
Re: trader workstation 4 (TWS) interactive brokers

thosecars82 started this thread Thks, I had already thought about doing that but did not believe people were doing that thing for this simple purpose. Eventually I saw, using a 0 as client id does the trick.
Thanks though again.
__________________
Neither adds nor links allowed.
thosecars82 is offline Training literature vendor (e.g courses / spreadbetting guides / eBooks)   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
IBtoC2: connecting Interactive Brokers TWS to Collective2 orionn Trading Software 7 Jun 23, 2011 5:07pm
Lost 4.200Ä on a Interactive Brokers TWS malfunction. horace General Trading Chat 17 Feb 18, 2008 6:56am
Interactive Brokers TWS Option Modeling Program Feature Poll nbbo Direct Access 5 May 21, 2007 9:41am

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)