Support account passthrough in `.submit_limit()`

pause_feeds_on_sym_switch
Tyler Goodlet 2021-08-18 15:17:26 -04:00
parent ffbfd187ad
commit d940957455
1 changed files with 2 additions and 0 deletions

View File

@ -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,