Use this skill when users need DeFi market/protocol data (TVL, APY, volume, fees, prices) gathered, normalized, reconciled across sources, and returned with explicit freshness/confidence metadata.
Collect DeFi metrics from prioritized sources, normalize them, reconcile cross-source conflicts, and return a source-attributed dataset with freshness and confidence labels.
defi-risk-evaluator).references/source-priority.md.references/metric-definitions.md.references/freshness-sla.md.references/offline-fallback.md mode and state limits.apy_base and apy_reward.0.12 = 12%).{
"query_scope": {
"protocols": ["string"],
"chains": ["string"],
"time_window": "string",
"requested_metrics": ["string"]
},
"fetch_mode": "live|offline_snapshot",
"source_plan": {
"primary": ["string"],
"secondary": ["string"],
"validation": ["string"]
},
"metrics": [
{
"metric": "tvl_usd|apy_base|apy_reward|volume_24h_usd|fees_24h_usd|revenue_24h_usd|price_usd",
"entity": "protocol_or_token",
"chain": "string",
"value": 0,
"as_of": "ISO-8601",
"freshness_status": "fresh|stale|unknown",
"confidence": "high|medium|low",
"spread_pct": 0,
"sources": ["string"]
}
],
"reconciliation_notes": ["string"],
"quality_flags": ["string"],
"summary": "2-4 sentence summary"
}
references/metric-definitions.md: Canonical metric semantics.references/source-priority.md: Source ranking and failover policy.references/freshness-sla.md: Metric-specific freshness thresholds.references/offline-fallback.md: Behavior when live providers are unavailable.scripts/normalize_metrics.py: Deterministic normalization + optional reconciliation mode.Use scripts/normalize_metrics.py --reconcile when you have multiple rows per metric/entity/chain and need consistent confidence/spread outputs.
Category:stocks-finance