Course Name: Automated Trading with IBridgePy using Interactive Brokers Platform, Section No: 1, Unit No: 1, Unit type: Video
hi guys,
I managed to connect to my IB demo account with IBridge yesterday. I was docking on port 7496, and configured the TWS as suggested. It displayed the account balance and the position value in the Spyder console.
Today, when I logged into IB demo account the account number has changed. I changed it in the RUN_ME.py accordingly. However, to my surprise I am not able to connect any more.
This is the error message I am getting:
Python 3.8.3 (default, Jul 2 2020, 17:30:36) [MSC v.1916 64 bit (AMD64)]Type "copyright", "credits" or "license" for more information.
IPython 7.16.1 – An enhanced Interactive Python.
In [1]: runfile('C:/Users/jaege/Downloads/IBridgePy_Win_Anaconda38_64/RUN_ME.py', wdir='C:/Users/jaege/Downloads/IBridgePy_Win_Anaconda38_64')
Try brokerClient IB port=7496
broker_client_factory.CallBacks:errorId=-1 errorCode=977 errorMessage=Please download the latest version of IBridgePy at www.IBridgePy.com For any questions, you may send email to IBridgePy@gmail.com, Thanks
Hint: Please refer to YouTube tutorial https://youtu.be/pson8T5ZaRw
broker_client_factory.CallBacks::_print_version_and_exit:EXIT IBridgePy version= 16.5.2
In [2]:
Could you kindly advise pls?
Rainer
Hi Rainer,
It seems that a new version of IBridgePy was launched between the two times you tried to run the code. Could you please try downloading the latest IBridgePy version and then try again?
Do let me know if that works out for you!
Thanks,
Gaurav
Awesome!
That was indeed the issue. I am running v16.5.3 now and it's connecting again. Appreciate your quick and competent reply.