piker/piker
Nelson Torres f31094f0d7 Only use `frame_types` if delivered during enter
The `open_history_client()` provider endpoint can *optionally*
deliver a `frame_types: dict[int, pendulum.Duration]` subsection in its
`config: dict[str, dict]` (as was implemented with the `ib` backend).
This allows the `tsp` backfilling machinery to use this "recommended
frame duration" to subtract from the `last_start_dt` any time a `NoData`
gap is signalled by the `get_hist()` call allowing gaps to be ignored
safely without missing history by knowing the next earliest dt we can
query from using the `end_dt`. However, currently all crypto$ providers
haven't implemented this feat yet..

As such only try to use the `frame_types` feature if provided when
handling `NoData` conditions inside `tsp.start_backfill()` and otherwise
raise as normal.
2025-01-30 15:26:46 -03:00
..
accounting Allow ledger passes to ignore (symcache) unknown fqmes 2025-01-30 15:09:25 -03:00
brokers Deribit's feed fix 2025-01-30 15:22:17 -03:00
clearing Allow ledger passes to ignore (symcache) unknown fqmes 2025-01-30 15:09:25 -03:00
cli Updated tractor method name. 2025-01-30 14:59:37 -03:00
data data._web_bs: try to raise jsonrpc errors in parent task 2025-01-30 15:05:19 -03:00
fsp Make `fsp.cascade()` expect src/dst `Flume`s 2023-12-06 17:53:35 -05:00
service Drop `.cancel_actor()` from `maybe_spawn_daemon()` 2025-01-30 14:59:37 -03:00
storage Always reload shm data before annotating gaps, so they line up.. 2024-01-09 15:55:16 -05:00
testing Pass a config `tmp_dir: Path` to the runtime when testing 2023-03-09 15:37:43 -05:00
toolz Delegate `.toolz.open_crash_handler()` to `tractor.devx` 2024-01-16 10:26:38 -05:00
tsp Only use `frame_types` if delivered during enter 2025-01-30 15:26:46 -03:00
ui Port all `.ui*` submods to new `.ui.qt` imports 2024-05-01 14:33:10 -04:00
watchlists Add license headers to pertinent files 2020-11-06 12:23:14 -05:00
__init__.py Start `piker.service` sub-package 2023-03-09 15:37:42 -05:00
_cacheables.py Move `._cacheables.open_cached_client()` into `.brokers` pkg mod 2023-06-27 13:41:47 -04:00
calc.py Lul, adhere to returning `str`s in `humanize()` 2022-01-25 07:57:01 -05:00
config.py `.config`: don't hack the user config dir if user is 'root' and sudo was NOT used.. 2023-12-22 21:41:51 -05:00
log.py Move `.accounting` related config loaders to subpkg 2023-06-27 13:42:08 -04:00
types.py Impl a sane (with nesting) `.types.Struct.pformat()` 2024-01-17 15:50:27 -05:00