v0.5.0
Highlights
- OHLC + MA position bars on
/stock— two stacked bars centered on the current quote, sharing a price-relative axis fitted per-bar (floored ±0.5%, capped ±5%) so quiet days fill the bar instead of clustering at center. Markers past the band edge clip with▶/◀saturation sentinels. - HTML date navigation — on-screen chevrons + keyboard shortcuts (
←/h,→/lstep days;tclears?date=;?/Esctoggle help). Held arrows are short-circuited viae.repeat. A "viewing past date" pill appears when?date=is set. - On-disk cache snapshots (
--cache-dir) — per-stock TWSE (T86 / TWT93U / MARGN) and TAIFEX (retail futures / options PCR / VIX) caches now persist to JSON files under the supplied directory; restored on startup, saved atomically on graceful shutdown. Schema-versioned, so future cached-value field additions invalidate stale snapshots gracefully. - Generic TTL+LRU+singleflight cache (
internal/ttlcache) — backs Yahoo, TWSE, and TAIFEX providers with negative-cache support. Walk-back loop now lives in the cache wrapper; providers exposeFetch*Exact(date)and the wrapper handles holiday/weekend probing.
Other changes
- Adaptive Yahoo windowing for MA5/MA10 fields.
- Mobile-responsive chevron buttons.
- Documentation refresh: cache layers,
--cache-dir, OHLC/MA glyph vocabulary, HTML keyboard shortcuts.
Container image
```
ghcr.io/cmj0121/imagelet:0.5.0
```