[Interactive Brokers] Account values outside the fixed reqAccountSummary tag list are unreachable
The IB adapter surfaces account state through a single subscription with a hardcoded tag list, so every value IB publishes on updateAccountValue and nowhere else is unreachable from Python. The mechanism needed to carry them already exists on both sides of the gap — this is a request to connect them.
Nothing here is defective; filing as a feature request rather than a bug.
What is verified, and where
All claims below are against v2.0.0rc5 and its pinned ibapi = "=3.3.0", not develop.
| Claim | Evidence |
|---|---|
| The adapter subscribes account state in exactly one place | crates/adapters/interactive_brokers/src/execution/account.rs:57, subscribe_account_summary |
| It requests a hardcoded ten-tag list, not configurable | same file, :63-74 — a Rust &[...] literal; no config input reaches it |
It already carries raw venue values to the account's info |
same file, :90 let mut info = Params::new(), :103 info.insert(summary.tag, …), returned at :156 |
That info reaches Python |
AccountState.info -> dict |
reqAccountUpdates is issued nowhere |
no call site in the account path |
| The pinned dependency already exposes it | ibapi = "=3.3.0" (workspace Cargo.toml:344); ibapi::client::Client::account_updates and account_updates_multi |
| …and it yields arbitrary key/value | ibapi::accounts::AccountUpdate::AccountValue carries pub account, pub key, pub value, pub currency |
The adapter's own comment at account.rs:100-102 states the intent this would complete:
Record the raw summary tag so the account state carries the venue-reported values (for example TotalCashValue) that do not map to the typed balances and margins.
The motivating case, and what we measured
IB restricts an account to orders that do not increase projected deliverable exposure when its post-expiration margin projection is short, and publishes that projection as PostExpirationExcess / PostExpirationMargin. We induced the condition on a paper account and read it in both directions four times:
2026-09-15 12:15 CLEAR PostExpirationExcess +854,084
2026-09-15 16:01 DEFICIT -326,492
2026-09-16 09:17 DEFICIT -294,758
2026-09-16 10:54 CLEAR +837,366
2026-09-18 14:59 DEFICIT -389,984
2026-09-18 15:37 CLEAR +806,745At the trough IB refused a one-lot opening short put:
YOUR ORDER IS NOT ACCEPTED. PROJECTED POST EXPIRATION MARGIN DEFICIT IS
391668.36 USD. (code: 201)The obvious substitute does not work, and we measured that too. LookAheadExcessLiquidity is available on reqAccountSummary, and it is not this quantity: across 17 paired readings it equalled ExcessLiquidity to the cent every time, with LookAheadNextChange resolving to 15:45 ET or 09:30 ET — the ordinary intraday margin change, never the expiration. PostExpiration* are not served on reqAccountSummary at all.
What we have not established: anything about how the engine would surface these once carried, or that any other adapter needs the same thing. The readings above are IB's, taken through the 1.x Python adapter; we have not read them through 2.x because there is no route to.
Suggested shape
- Subscribe
Client::account_updates(oraccount_updates_multifor a specific account) alongside the existing summary subscription. - Insert each
AccountUpdate::AccountValueinto the sameinfoParamsthe summary path already populates, keyed bykeyas it already keys bysummary.tag.
That adds no public API, no config surface and no new dependency, and Python reads it through AccountState.info unchanged.
A configurable tag list on subscribe_account_summary would be reasonable to want independently, but it would not close this — the values are not summary tags.
Offer
Happy to open the PR for the shape above if that is agreeable, or to adjust it first if you would rather the values landed somewhere other than info. I searched open issues and PRs before filing and found nothing covering this path; if it is already in scope for work in flight that I have missed, say so and I will drop it.
Source: nautechsystems/nautilus_trader