-
Notifications
You must be signed in to change notification settings - Fork 36
Staleness-aware median pricing with source fallback #81
Copy link
Copy link
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programarea:ingestSDEX / AMM ingestionSDEX / AMM ingestionarea:pricingBest-route / mathBest-route / mathdifficulty:advancedMulti-day projectMulti-day projecthelp wantedExtra attention is neededExtra attention is neededpoints:200Advanced tier — 200 Wave pointsAdvanced tier — 200 Wave points
Description
Activity
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programarea:ingestSDEX / AMM ingestionSDEX / AMM ingestionarea:pricingBest-route / mathBest-route / mathdifficulty:advancedMulti-day projectMulti-day projecthelp wantedExtra attention is neededExtra attention is neededpoints:200Advanced tier — 200 Wave pointsAdvanced tier — 200 Wave points
Background
A single price source can go stale or wrong. A median across sources with explicit staleness handling produces a robust price (distinct from a per-source confidence score).
What to build
Aggregate multiple sources into a median, drop sources older than a freshness threshold, and fall back through a priority chain when too few fresh sources remain — annotating which sources contributed and which were excluded for staleness.
Key files
src/pricing/median.ts(new)src/api/rest.tsAcceptance criteria
Required: Before submitting, join the contributor Telegram so your work can be tracked and counted toward the Stellar Wave: https://t.me/+fxHXq8f1SwlkZDBk