piker/piker/brokers
Gud Boi fd4fe16fd0 Fix kraken account-alias config mismatch
Rename `Client._name` -> `Client._key_descr` so the attr actually
describes what it holds (the `key_descr` field from `brokers.toml`). In
`open_trade_dialog()` look up the account-alias via `conf['accounts']`
and raise a `ConfigurationError` with a config-file example when no
matching entry exists.

Deats,
- `api.py`: rename `name` param/attr to `key_descr`, add docstring to
  `get_client()`, pull `conf['key_descr']` into a named local.
- `broker.py`: replace `acc_name` with `fqan` (fully-qualified account
  name), add accounts dict validation with actionable error msg.
- `brokers.toml`: add `src_fiat`, `accounts.spot` entry, and comments
  explaining the required field relationships.

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

(cherry picked from commit ebc5bbd42b)
2026-11-30 12:07:26 -05:00
..
binance Use `datad` names for quote timestamps and search 2026-11-27 11:41:14 -05:00
deribit Use `datad` names for quote timestamps and search 2026-11-27 11:41:14 -05:00
ib Fix IB expiry dates and session timezone fallback 2026-11-29 19:58:43 -05:00
kraken Fix kraken account-alias config mismatch 2026-11-30 12:07:26 -05:00
__init__.py Use `__name__` for loggers across most sub-mods 2026-02-23 12:22:48 -05:00
_daemon.py brokerd: slim RPC caps + `ib` client-id offset 2026-11-09 17:05:43 -05:00
_util.py Register all custom excs with `tractor` IPC 2026-10-07 03:10:41 -04:00
cli.py .data: cut feed layer over to `datad` actors 2026-11-09 17:05:43 -05:00
core.py Use `datad` names for quote timestamps and search 2026-11-27 11:41:14 -05:00
data.py Update `tractor` private-API refs across codebase 2026-10-07 03:10:41 -04:00
kucoin.py Use `datad` names for quote timestamps and search 2026-11-27 11:41:14 -05:00
questrade.py Register all custom excs with `tractor` IPC 2026-10-07 03:10:41 -04:00
robinhood.py Use `__name__` for loggers across most sub-mods 2026-02-23 12:22:48 -05:00