开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Connect to TWS in main not in Thread (Java)


twsapi
 

Hi btw12342001,

thanks so much for the tip! That actually helps me a lot. I still did not completely understood your earlier reply on how to handle returned data. In which method is the returned data handled? I guess if the connection is not limited to just one thread you also run into synchronization issues between the threads. But as far as I understood you can initiate 6 or 8 connections but IB recommends to use as little as possible, is that correct?

Regards

--- In TWSAPI@..., "btw12342001" <newguy@...> wrote:


Not much of automation when I need to authorize it manually every time :)
To fix the authorizing part you just need to set trusted IP addresses in TWS. Add 127.0.0.1 for the local machine.

Join [email protected] to automatically receive all group messages.