areed1192 / interactive-broker-python-api

A python packaged used to interact with the Interactive Brokers REST API.
MIT License
389 stars 124 forks source link

COULD NOT CREATE A NEW SESSION THAT WAS AUTHENTICATED, EXITING SCRIPT. #30

Open jmrichardson opened 3 years ago

jmrichardson commented 3 years ago

Hi,

I've got the localhost client setup and authenticated with paper trading account:

Client login succeeds

But when I run the code, it fails:

from ibw.client import IBClient

# Create a new session of the IB Web API.
ib_client = IBClient(
    username='xxx',
    account='xxx',
)

# create a new session.
ib_client.create_session()

with this error:


COULD NOT CREATE A NEW SESSION THAT WAS AUTHENTICATED, EXITING SCRIPT.
Process finished with exit code 0
syntaxsdev commented 2 years ago

Did you ever get this fixed?