Skip to content

Commit 7ad8e8b

Browse files
authored
Merge pull request #133 from molnarg/patch-1
Make account_id argument optional in whatif_orders
2 parents 745e133 + 51b4eeb commit 7ad8e8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ibind/client/ibkr_client_mixins/order_mixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def reply(self: 'IbkrClient', reply_id, confirmed: bool) -> Result: # pragma: n
121121
"""
122122
return self.post(f'iserver/reply/{reply_id}', params={'confirmed': confirmed})
123123

124-
def whatif_order(self: 'IbkrClient', order_request: OrderRequest, account_id: str) -> Result: # pragma: no cover
124+
def whatif_order(self: 'IbkrClient', order_request: OrderRequest, account_id: str = None) -> Result: # pragma: no cover
125125
"""
126126
This endpoint allows you to preview order without actually submitting the order and you can get commission information in the response. Also supports bracket orders.
127127

0 commit comments

Comments
 (0)