piker/piker/tsp
Gud Boi 84292898ac 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-11-13 17:30:25 -05:00
..
__init__.py Expose storage state through `piker store` 2026-11-12 09:48:06 -05:00
_anal.py Normalize provider OHLCV for `NativeDB` 2026-11-10 16:02:36 -05:00
_annotate.py Update `tractor` private-API refs across codebase 2026-10-07 03:10:41 -04:00
_dedupe_smart.py .tsp: normalize gaps after sorted dedupe 2026-11-10 14:32:20 -05:00
_history.py Use IB schedules to reserve missing SHM history 2026-11-13 17:30:24 -05:00
_reserve.py Retry incomplete IB schedule coverage 2026-11-13 17:30:25 -05:00