Skip to content

v0.5.0

Choose a tag to compare

@cmj0121 cmj0121 released this 29 Apr 06:38
· 100 commits to main since this release

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, /l step days; t clears ?date=; ?/Esc toggle help). Held arrows are short-circuited via e.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 expose Fetch*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
```