piker/piker/tsp
Gud Boi eed5856622 Retry incomplete IB schedule coverage
A one-day MNQ schedule reply can start in the next session,
leaving the gap's earlier trading hours uncovered. Widen
`Client.history_schedule()` lookbacks up to 31 days, keeping the
requested end fixed and sharing one timeout across attempts.
Preserve unknown coverage when widening cannot cover the range.
Share `SECONDS_PER_DAY` between query and reservation arithmetic,
with one explanation of elapsed versus calendar/session days.

Replay the captured MNQ replies through the allocator: reserve
51,824 candidate slots while excluding the maintenance closure.
Cover bounded retries and timeout cancellation, and document the
query contract. This does not repair existing SHM or parquet.

Prompt-IO: ai/prompt-io/codex/20260924T232405Z_441358e2_schedule_coverage_prompt_io.md

(this patch was generated in some part by `codex` using
`gpt-6` (`openai`))
2026-09-24 20:20:20 -04:00
..
__init__.py Expose storage state through `piker store` 2026-07-31 17:26:11 -04:00
_anal.py Normalize provider OHLCV for `NativeDB` 2026-07-27 18:08:33 -04:00
_annotate.py Own gap overlays in chart-local `GapOverlayMngr` 2026-08-14 19:03:11 -04:00
_dedupe_smart.py .tsp: normalize gaps after sorted dedupe 2026-07-24 18:33:06 -04:00
_history.py Use IB schedules to reserve missing SHM history 2026-09-24 19:09:22 -04:00
_reserve.py Retry incomplete IB schedule coverage 2026-09-24 20:20:20 -04:00