I am currently using the ibkr api with the ib_insync package and I was wondering how one would return the cash balance in an account. I've tried accountSummary and accountValues but can't seem to find it.
Asked
Active
Viewed 178 times
1 Answers
0
If you mean this balance field
You could fetch it with iterating the account values (they are automatically synced with IB)
[x.value for x in self._ib.accountValues() if x.tag == "CashBalance" and x.currency == "USD"][0]

Crispy Holiday
- 412
- 1
- 9
- 28