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

TWS Error when calling placeOrder from placeorder.py #43

Closed Lazik closed 8 years ago

Lazik commented 8 years ago

When calling placeorder.py from the examples, I get this error

TWS Error - 321: Error validating request:-'le' : cause - You must specify an account. Failed to fill order

I was wondering if anyone knew how to fix it. I think I need to specify the account somewhere. I am using a demo account and there is a list of 2 accounts in my TWS under accounts.

I can get historic data from the TWS but unable to place orders.