From 83b9d08ed9c850d840a6700d0fb9c3ca164f9bff Mon Sep 17 00:00:00 2001 From: Dmitry Lukovkin Date: Wed, 28 Sep 2016 18:38:15 +0300 Subject: [PATCH] Fix https://github.com/blampe/IbPy/issues/30 (#31) --- ib/ext/EClientSocket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ib/ext/EClientSocket.py b/ib/ext/EClientSocket.py index cedae2f..cfce007 100644 --- a/ib/ext/EClientSocket.py +++ b/ib/ext/EClientSocket.py @@ -1152,7 +1152,7 @@ def placeOrder(self, id, contract, order): if self.m_serverVersion >= self.MIN_SERVER_VER_WHAT_IF_ORDERS: self.send(order.m_whatIf) except Exception as e: - self.error(id, EClientErrors.FAIL_SEND_ORDER, str(e)) + self.error_0(id, EClientErrors.FAIL_SEND_ORDER, str(e)) self.close() @synchronized(mlock)