--- In TWSAPI@..., "soundscribe_studios" <jgalt@...> wrote:
I thought this would be easy, but it doesn't seem to work the way I
would expect.
What I'd like to do is run two TWS instances (each logged in to a
different) account. Each TWS would be set to listen on a different port.
Then, I'd like to connect to a specific TWS/port and get
account/execution/portfolio information. I'm able to do this when one
TWS is running, but when two are running, the information returned is
from the wrong account, even when the ports are different. In netstat,
I see both TWSs listening on their respective ports and I can connect
to each one.
Is this expected behavior?
I suppose I could run each TWS on a separate computer, but that seems
like overkill -- one TWS per computer.
You must have some setup / config problem. I do exactly what you are describing every day with no problems.