piker/piker/brokers
Nelson Torres 376ea72dda `deribit.feed`: fix "trade" event streaming
The main change needed to make `piker.data.feed._FeedsBus` work was
to correctly format the `'trade'` msgs with the (new schema) expected
`'ticks': list[dict]` field which,
- we compute the `piker` quote-msg-`dict` from the (now directly proxied through)
  `cryptofeed.types.Trade`'s fields inside the body of `stream_quotes()`.
- similarly, move the `'l1'` msg processing, **out of** the `asyncio`-side
  `_l1()` callback (defined as a closure in `.api.aio_price_feed_relay()`
  and passed to the `cryptofeed.FeedHandler`) and instead mod the
  callback to simply pass through the `.types.L1Book` ref directly to
  the `piker`/`trio` side task for conversion.

In support of all that,
- mask-to-drop the alt-branch to wait on a first rt event when the
  `cryptofeed.LastTradesResult.trades: list[Trade]` is empty; doesn't
  seem like this ever even happens?
- add a buncha typing, comments and doc-strs to the routines in
  `.deribit.api` including notes on where we can choose to mod the
  `.bs_fqme` for our eventually preferred `piker` style format.
- simplify some nested `@acm` enters to the new single `async with
  <tuple>)` style.
- be particularly pedantic about typing
  `tractor.to_asyncio.LinkedTaskChannel`
- bit of pep8 line-spacing fixes in `.venues`.
2025-01-29 23:50:48 +00:00
..
binance Deleted settlePlan field from binance FutesPair. 2025-01-29 15:36:35 -03:00
deribit `deribit.feed`: fix "trade" event streaming 2025-01-29 23:50:48 +00:00
ib ib: `.api` mod and log-fmt cleaning 2024-06-20 14:40:21 -04:00
kraken Change type-annots to use `httpx.Response` 2024-05-20 12:55:45 -04:00
__init__.py Deribit's feed fix 2025-01-29 19:24:57 -03:00
_daemon.py Prep service mngr for move to `tractor.hilevel` 2025-01-29 00:17:36 -03:00
_util.py Change type-annots to use `httpx.Response` 2024-05-20 12:55:45 -04:00
cli.py Delegate `.toolz.open_crash_handler()` to `tractor.devx` 2024-01-16 10:26:38 -05:00
core.py Temporarily use crash handler around search CLI ep 2023-09-29 14:02:17 -04:00
data.py Use common `.brokers` logger in most backends 2023-05-09 14:49:26 -04:00
kucoin.py `kucoin`: repair live quotes streaming.. 2025-01-29 15:36:35 -03:00
questrade.py Move `._cacheables.open_cached_client()` into `.brokers` pkg mod 2023-06-27 13:41:47 -04:00
robinhood.py Use common `.brokers` logger in most backends 2023-05-09 14:49:26 -04:00