Skip to content

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
Flotapponnier merged 1 commit into
mainfrom
hotfix/perp-gains-volume-history
Sep 16, 2026
Merged

Flotapponnier merged 1 commit into
mainfrom
hotfix/perp-gains-volume-history

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

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

… 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
Flotapponnier merged commit 502ecb1 into main Sep 16, 2026
1 check failed
@Flotapponnier
Flotapponnier deleted the hotfix/perp-gains-volume-history branch September 16, 2026 15:32
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>
Sign up for free to 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.

2 participants