From d940957455fc12510ccfe55317c66136c95f7fd3 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 18 Aug 2021 15:17:26 -0400 Subject: [PATCH] Support account passthrough in `.submit_limit()` --- piker/brokers/ib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/piker/brokers/ib.py b/piker/brokers/ib.py index 23e71a0b..277c6c49 100644 --- a/piker/brokers/ib.py +++ b/piker/brokers/ib.py @@ -496,6 +496,7 @@ class Client: price: float, action: str, size: int, + account: str = '', # if blank the "default" tws account is used # XXX: by default 0 tells ``ib_insync`` methods that there is no # existing order so ask the client to create a new one (which it @@ -518,6 +519,7 @@ class Client: Order( orderId=reqid or 0, # stupid api devs.. action=action.upper(), # BUY/SELL + account=account, orderType='LMT', lmtPrice=price, totalQuantity=size,