Skip to content

fix(hl): biggest day marker always from displayed series - #548

Merged
Flotapponnier merged 1 commit into
devfrom
fix/hl-biggest-day-from-series
Jun 18, 2026
Merged

fix(hl): biggest day marker always from displayed series#548
Flotapponnier merged 1 commit into
devfrom
fix/hl-biggest-day-from-series

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Bug: on /products/, the BIGGEST DAY marker landed one or two bars to the left of the visually tallest bar after a new high day rolled in.

Root cause: race between two data sources. The page server-renders biggest_day_unix from a Prom scalar cached for the ISR window (60-300s) while the chart fetches /api/builder//daily-series at hydration and gets the fresh JSON straight from the harness. When a new biggest day rolls in between those two reads, the server prop points at the previous biggest (still in the series but no longer max), so the marker misses the tallest bar.

Fix: derive biggest day directly from the displayed series (same source as the bars themselves). Keep the server prop only as a cold-start fallback when the entire series is zero (very rare, brand new builder).

Verified on /products/fomo (currently shows biggest day = 17/06 = $29.3K, the actual tallest bar). Same logic applies to every Hyperliquid frontend dashboard.

@Flotapponnier
Flotapponnier merged commit 3a484e0 into devJun 18, 2026
1 check passed
@Flotapponnier
Flotapponnier deleted the fix/hl-biggest-day-from-series branch June 18, 2026 20:45
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@Flotapponnier