re-export freshness for downstream
All checks were successful
Generic zig build / build (push) Successful in 11m17s
Generic zig build / publish-macos (push) Successful in 11s
Generic zig build / deploy (push) Successful in 19s

This commit is contained in:
Emil Lerch 2026-08-12 17:21:08 -07:00
parent 26a7112572
commit 4a86ecb95e
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -67,6 +67,20 @@ pub const Config = @import("Config.zig");
/// SRF-backed file cache for candles, dividends, earnings, and other fetched data.
pub const cache = @import("cache/store.zig");
/// Cache-wide candle freshness: `collect` reads a corpus of cached symbols and
/// `scan` reports which are behind their PEERS, plus `max_normal_lag_days` as the
/// boundary between ordinary provider lag and a gap that will not self-heal.
///
/// Distinct from `market.candleFreshness`, which judges one symbol against the
/// trading calendar and so cannot tell a market closure from a single neglected
/// symbol - during a provider lag its honest answer is "maybe". This module
/// answers the corpus question instead: a closure moves every symbol together, so
/// one symbol far behind while its cohort is current is locally disprovable as a
/// closure. That is the distinction `zfin-server` needs to stop guessing, and the
/// reason this is exported at all - it was withdrawn as speculative while the
/// only consumer was in-tree.
pub const freshness = @import("cache/freshness.zig");
// Analytics
/// Morningstar-style holding-period return calculations (total + annualized).