Komnomnomnom / swigibpy

Third party Interactive Brokers Python API generated from TWS C++ API using SWIG.
http://github.com/Komnomnomnom/swigibpy/
Other
157 stars 35 forks source link

auto reconnect parameter seems to raise error #48

Closed smokersonly closed 8 years ago

smokersonly commented 8 years ago

on macosx python 3.4 the parameter reconnect_auto=True seem to raise an error in the examples provided?

python historicaldata.py Traceback (most recent call last): File "historicaldata.py", line 72, in tws = EPosixClientSocket(callback, reconnect_auto=True) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/swigibpy.py", line 1663, in init _swigibpy.EPosixClientSocket_swiginit(self,_swigibpy.new_EPosixClientSocket(_args, *_kwargs)) TypeError: new_EPosixClientSocket() takes at most 1 argument (2 given)

smokersonly commented 8 years ago

version 0.4.1 of swigibpy

Komnomnomnom commented 8 years ago

Thanks @smokersonly, I think you might be using the examples from the latest master code with an older installed release (0.4.1) version of swigibpy. Either install the latest master code (by grabbing the code and installing it manually, i.e. not via pip) or use the examples from 0.4.1. (choose 0.4.1 in the tags / branches dropdown in github e.g. historicaldata.py

Please re-open if you think there is still issue.