error when buying stocks with ib
I use ib as the live broker and everything seems to be ok until I get to the code that actually buys a stock
I get the error "error() takes 2 positional arguments but 4 were given"
can anyone help?
The stack traces are usually a bit more verbose, indicating where the error happened. Can you post it?
Found the problem, the size parameter cant be float value, even if it is 170.0 it must be converted to an int
The IB API is always full of surprises.