Skip to content

fix(perp-funding-stability): success query covers 12 venues + restore correct tags - #699

Merged
Flotapponnier merged 1 commit into
devfrom
fix/perp-funding-stability-success-tags
Jun 25, 2026
Merged

fix(perp-funding-stability): success query covers 12 venues + restore correct tags#699
Flotapponnier merged 1 commit into
devfrom
fix/perp-funding-stability-success-tags

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Bench was returning unknown_slug because success query referenced perp_venue_health which doesn't exist for CEX venues. Plus tags were shuffled from cohort copy-paste.

…ce (12 venues) + correct shuffled tags
success query: switched from perp_venue_health{venue} (only published
for cohort onchain venues, returned null for 11 CEX) to clamp_max(
count_over_time(perp_venue_funding_24h_bps{venue,asset=ETH}[1h]), 1).
Now returns 1 if any funding sample landed in the last hour for that
venue, works for all 12 venues. Bench was returning unknown_slug from
/api/stat because the missing health metric was failing the data
confidence check.
tags + formulas: 8 venues (gate, lighter, kucoin, mexc, bitget, kraken,
coinbase, deribit) had tags + formula venue references copied from the
onchain cohort by mistake (Lighter tagged 'Starknet L2', KuCoin 'BNB
Chain', MEXC 'Solana perp DEX', etc.). Restored to honest descriptions
matching each CEX's actual cadence.
@Flotapponnier
Flotapponnierforce-pushed the fix/perp-funding-stability-success-tags branch from 52b3ffe to 3387befCompareJune 25, 2026 12:30
@Flotapponnier
Flotapponnier merged commit 2359bba into devJun 25, 2026
1 check passed
@Flotapponnier
Flotapponnier deleted the fix/perp-funding-stability-success-tags branch July 17, 2026 14:42
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