Skip to content

Commit e6f271d

Browse files
authored
Fix typing in transaction_history()
When a string is used, the server responds with a 500 internal error. Integer is accepted.
1 parent 8c9a307 commit e6f271d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ibind/client/ibkr_client_mixins/portfolio_mixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def all_periods(self: 'IbkrClient', account_ids: OneOrMany[str]) -> Result:
227227
return self.post('pa/allperiods', {'acctIds': account_ids})
228228

229229
@ensure_list_arg('account_ids', 'conids')
230-
def transaction_history(self: 'IbkrClient', account_ids: OneOrMany[str], conids: OneOrMany[str], currency: str, days: str = None) -> Result:
230+
def transaction_history(self: 'IbkrClient', account_ids: OneOrMany[str], conids: OneOrMany[str], currency: str, days: int = None) -> Result:
231231
"""
232232
Transaction history for a given number of conids and accounts. Types of transactions include dividend payments, buy and sell transactions, transfers.
233233

0 commit comments

Comments
 (0)