Skip to content

Commit 8aef22c

Browse files
committed
feat: add log parameter to tickle() endpoint
1 parent 524d78b commit 8aef22c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ibind/client/ibkr_client_mixins/session_mixin.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,14 @@ def logout(self: 'IbkrClient') -> Result: # pragma: no cover
4242
"""
4343
return self.post('logout')
4444

45-
def tickle(self: 'IbkrClient') -> Result: # pragma: no cover
45+
def tickle(self: 'IbkrClient', log: bool = False) -> Result: # pragma: no cover
4646
"""
4747
If the gateway has not received any requests for several minutes an open session will automatically timeout. The tickle endpoint pings the server to prevent the session from ending. It is expected to call this endpoint approximately every 60 seconds to maintain the connection to the brokerage session.
48+
49+
Args:
50+
log (bool, optional): Log the tickle request. Defaults to False.
4851
"""
49-
return self.post('tickle', log=False)
52+
return self.post('tickle', log=log)
5053

5154
def reauthenticate(self: 'IbkrClient') -> Result: # pragma: no cover
5255
"""

0 commit comments

Comments
 (0)