piker/piker/brokers
Gud Boi d7f1d70b61 .data: cut feed layer over to `datad` actors
The topology flip: all data-feed consumers now route to the
new `datad.<broker>` sibling daemon; `brokerd` becomes
trading-only and is ONLY ever booted lazily by `emsd`'s
`open_brokerd_dialog()` (see prior commit). Chart-only and
paper sessions run with zero (live, credentialed) `brokerd`
procs B)

Deats,
- `open_feed()` -> `maybe_spawn_datad()` (NB: imported
  relative-direct from `._daemon` to dodge a partial-init
  cycle via `piker.service`); flip the `open_feed_bus()`
  actor-name assert to `'datad'`; comment sweep.
- slim `_setup_persistent_brokerd()` to a trading-only
  fixture: console logging + pinned-open ctx; the feed-bus
  alloc moves to `_setup_persistent_datad()` and backend
  `open_trade_dialog()` ctxs own their own task trees.
  (the `piker ledger` ad-hoc actor enters this same slimmed
  fixture - exactly what it needs.)
- repoint data-flavoured spawn sites to `maybe_spawn_datad`:
  `.ui._app` symbol-search (+ rename
  `install_brokerd_search` -> `install_datad_search`),
  `.brokers.core.symbol_search()`, `.brokers.cli`
  `brokercheck`/`record`, legacy kivy `.ui.cli` +
  `option_chain`'s `wait_for_actor()`.
- invert `tests.test_services` expectations: feed/EMS-paper
  flows must spawn `datad.kraken` and `paperboi.kraken`
  with an explicit negative assert that NO `brokerd.kraken`
  service task exists.

(this patch was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-09 17:22:44 -04:00
..
binance Declare per-daemon-kind backend mod groups 2026-06-09 17:21:26 -04:00
deribit Declare per-daemon-kind backend mod groups 2026-06-09 17:21:26 -04:00
ib Declare per-daemon-kind backend mod groups 2026-06-09 17:21:26 -04:00
kraken Declare per-daemon-kind backend mod groups 2026-06-09 17:21:26 -04:00
__init__.py Add `MarketNotFound` exc and improve binance fqme error 2026-03-24 20:21:29 -04:00
_daemon.py .data: cut feed layer over to `datad` actors 2026-06-09 17:22:44 -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-09 17:22:44 -04:00
core.py .data: cut feed layer over to `datad` actors 2026-06-09 17:22: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