"""A DailyBarClient that reads the POINT-IN-TIME frozen Yahoo closes from the warehouse (spec §4), so the
multistrat recompute is stable against Yahoo's retroactive adjusted-close revisions. The nightly asset
snapshots today's live fetch into the PIT store first (via ForwardNavRepo.snapshot_yahoo_closes), then the
recompute reads through this client."""
from __future__ import annotations

from fxhnt.adapters.persistence.forward_nav import ForwardNavRepo


class YahooPitClient:
    def __init__(self, repo: ForwardNavRepo) -> None:
        self._repo = repo

    def adj_closes(self, symbol: str) -> dict[str, float]:
        return self._repo.yahoo_pit_closes(symbol)
