hotfix(prod): /perp venue pages take daily volume from the perp-volume-history series (Gains showed $503M on Sep 14 vs $37M traded) - #2403
Merged
Conversation
… series (traded notional), not Gains' leveraged_volume counter Gains' /api/stats leveraged_volume adds position resizes at full notional plus an "other" bucket; on 2026-09-14 that read $503M against $37M of traded volume (Dune view, DeFiLlama, bench 266). The venue pages now take the daily bars from the perp-volume-history JSON on kv (closed UTC days, same perimeter for every venue) whenever the venue has 3+ days there, and fall back to the venue's own API otherwise. Reader ported from dev (#2357), fetch moved to the data cache (revalidate 300) so the ISR page stays static. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HJgbZCqjR4nvCfcJSzofbw
Flotapponnier
added a commit
that referenced
this pull request
Sep 16, 2026
…t no-store (#2404) Same change as the prod hotfix #2403: a no-store fetch inside an ISR page can flip the route dynamic. Claude-Session: https://claude.ai/code/session_01HJgbZCqjR4nvCfcJSzofbw Co-authored-by: Flotapponnier <florent@mobula.io> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Prod `/perp/gains` charts Gains' own `leveraged_volume` counter deltas. That counter adds position resizes at full notional plus an "other" bucket. On 2026-09-14 it read $503M while traded volume was $37.3M (Dune view = DeFiLlama = bench 266 on staging). Sep 15: $317M vs $127M.
What
Prod-only hotfix; dev already renders the history series on these pages.
Verify
Once deployed, `/perp/gains` Sep 14 bar = $37.3M, Sep 15 = $127.5M; `/perp/gmx`, `/perp/hyperliquid` unchanged in shape.
🤖 Generated with Claude Code
https://claude.ai/code/session_01HJgbZCqjR4nvCfcJSzofbw