You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.
I noticed that when I call reqAccountSummary it often times out, even when I give a timeout of 2 minutes. Does anyone know why this might be? Here is the relevant code snippet:
def get_account_balance_with_timeout(self, timeout):
# Request account summary
ib.reqAccountSummary()
# Wait for the account summary update with a timeout
if not ib.waitOnUpdate(timeout=timeout):
raise Exception("Fetching account balance timed out.")
# Filter for TotalCashBalance
account_summary = ib.accountSummary()
for item in account_summary:
if item.tag == 'TotalCashBalance' and item.currency == 'USD':
return item.value
return None
The text was updated successfully, but these errors were encountered:
Hey team--
I noticed that when I call reqAccountSummary it often times out, even when I give a timeout of 2 minutes. Does anyone know why this might be? Here is the relevant code snippet:
The text was updated successfully, but these errors were encountered: