feat(peg): multi-venue consensus outlier rule - #352
Merged
Conversation
Replaces the flat 20% drop / 10% cap with a consensus-based filter:
- >50% off peg: dropped as parser-bug sanity floor
- >2% off peg: kept ONLY if another venue corroborates within 30s
in the same direction (real multi-venue depeg)
- single-venue >2% with no corroborator: dropped_isolated (glitch)
The old rule would have clipped USDC at $0.87 during March 2023 SVB
to $0.90, erasing the event in the percentile metric. The new rule
preserves multi-venue depeg signals while filtering single-venue
glitches and parser bugs.
New peg_source_call_total{result} labels: dropped_sanity,
dropped_isolated, kept_corroborated.
Methodology recommendation from Coinpaprika data team review.
Mirror of mobula PR (private monorepo).Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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.
Public mirror of MobulaFi/mobula-monorepo#6894. Fix B of the Coinpaprika methodology review. Replaces the flat 20% drop / 10% cap on peg samples with multi-venue consensus filtering. See the mobula PR for the full details. The mobula version is what actually runs on Railway; this PR keeps the OCB public harness in sync for transparency + reproducibility.