utilmon/EasyIB

Trading TWS session is connected from a different IP address

jordics opened this issue · 7 comments

Hi!

I wanted to try this library but when I try the sample code I just receive this error:

{'error': 'Trading TWS session is connected from a different IP address'}

Any idea about if this is a bug or theres something wrong?

Hello,
This wrapper uses Client Portal Web API, not TWS API.
I am guessing this is the reason?
You can check out https://github.com/Voyz/ibeam for connecting to CPW API.
Part Time Larry (https://www.youtube.com/watch?v=O1OhiiCx6Ho&t=1s) also has a youtube tutorial on ibeam if you are interested in.

No, this is weird in fact (I assumed was a but from IB). I'm using the Client Portal Gateway... but I get this error. I don't have even installed the TWS

Hmm, that's interesting.
What do you get when you type the following command in the shell terminal?
curl -X GET "https://localhost:5000/v1/api/one/user" -k

Another guess is that your account is connected to TWS session from a different computer.

I found the reason: I was authenticated using the paper account. No idea why it says "TWS session" because I have never used it, it must be a minor issue in their API. Thanks! Good work!

Cool, thanks. Just want to note that paper account should work fine as well, but maybe you need to initialize it first from your main account.

Just for anyone having this error, I experienced this error when my account was logged in my web browser at the same time.

Hey im getting this same error, but im not logged in the browser at the same time.