piker/piker/brokers
Gud Boi 119d2c0495 Declare per-daemon-kind backend mod groups
Prep for the `brokerd` -> (`datad` + `brokerd`) actor split
by having each (split-style) backend declare which of its
submods host which daemon-kind's eps, exactly per the
`piker.data.validate._eps` groupings; `ib` already had
`_brokerd_mods`/`_datad_mods` so extend the convention to
`kraken`, `binance` and `deribit` (and add `'api'` to ib's
datad set since both kinds need the `Client` layer).

`__enable_modules__` stays as the (deduped) union so this
is a ZERO behavior change; flat backends (`kucoin` etc.)
just don't declare the split yet.

Also,
- add `validate.get_eps()` returning a backend's defined
  eps per daemon-kind for spawn-time introspection.
- import `NoBsWs`/`open_autorecon_ws` from
  `piker.data._web_bs` directly in `.kraken.broker` (they
  were only re-exported via `.kraken.feed`) so the trading
  mod doesn't depend on the feed mod for ws primitives.

(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>

Prompt-IO: ai/prompt-io/claude/20260610T171105Z_bc6e18d7_prompt_io.md
2026-06-10 13:11:42 -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 Declare per-daemon-kind backend mod groups 2026-06-10 13:11:42 -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 Drop info-level `.pause()`-es used while devving 2026-02-23 13:26:46 -05:00
_util.py Add `MarketNotFound` exc and improve binance fqme error 2026-03-24 20:21:29 -04:00
cli.py Pass `loglevel` down through `.data` callstack 2026-02-23 12:22:48 -05:00
core.py Use `__name__` for loggers across most sub-mods 2026-02-23 12:22:48 -05: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