Structsยง
Constantsยง
- CACHE_
RETENTION_ ๐SECS - We only need ~24h of data for the reference ask lookup, but keep a small buffer so that edge-of-window queries still resolve correctly.
- SECONDS_
PER_ ๐DAY
Functionsยง
- align_
timestamp_ ๐secs - aligned_
interval_ ๐secs - build_
reference_ ๐asks_ from_ cache - build_
snapshot_ ๐rows - next_
bucket_ ๐start_ secs - snapshot_
row_ ๐from_ quote