piker/piker/brokers
Gud Boi 2aa66c2cf6 Fix IB `MethodProxy` response routing
`open_client_proxy()` broadcast its one-slot linked channel to an
always-running status relay and an idle method receiver. Status
traffic advanced only the relay, so the first lazy contract lookup
for an uncached order raised `Lagged` before receiving its
response.

Give `relay_client_proxy_messages()` sole receive ownership. Route
tagged responses from concurrent caller tasks into their per-`mid`
slots while each proxy context retains its own channel and relay.

Deats,
- log stale responses with their original method name;
- warn when unresolved-request metadata exceeds its bounded limit;
- drop late responses after caller cancellation;
- preserve the reconnect design note and message-case rationale;
- accept clean channel EOF during proxy teardown;
- cover idle status, concurrency, cancellation and EOF paths.

Prompt-IO: ai/prompt-io/opencode/20260811T205826Z_06d5ea5d_prompt_io.md

(this patch was generated in some part by `opencode` using `gpt-5.6-sol` (`openai`))
2026-08-11 18:46:23 -04:00
..
binance Declare per-daemon-kind backend mod groups 2026-06-10 13:11:42 -04:00
deribit Declare per-daemon-kind backend mod groups 2026-06-10 13:11:42 -04:00
ib Fix IB `MethodProxy` response routing 2026-08-11 18:46:23 -04:00
kraken Declare per-daemon-kind backend mod groups 2026-06-10 13:11:42 -04:00
__init__.py Add `MarketNotFound` exc and improve binance fqme error 2026-03-24 20:21:29 -04:00
_daemon.py brokerd: slim RPC caps + `ib` client-id offset 2026-06-10 13:14:24 -04:00
_util.py Add `MarketNotFound` exc and improve binance fqme error 2026-03-24 20:21:29 -04:00
cli.py .data: cut feed layer over to `datad` actors 2026-06-10 13:13:44 -04:00
core.py .data: cut feed layer over to `datad` actors 2026-06-10 13:13:44 -04:00
data.py Update `tractor` private-API refs across codebase 2026-03-24 20:21:29 -04:00
kucoin.py Update to latest `KucoinMktPair` spec 2025-02-12 18:08:40 -05:00
questrade.py Register all custom excs with `tractor` IPC 2026-03-24 20:21:29 -04:00
robinhood.py Use `__name__` for loggers across most sub-mods 2026-02-23 12:22:48 -05:00