Metric Docs | Price Providers
Understand how Metric Price Providers supply bid, ask and reference prices to Active Pools and why quote validity matters for safe execution.
Understand how Metric Price Providers supply bid, ask and reference prices to Active Pools and why quote validity matters for safe execution.
Metric is built around Active Pools: liquidity pools that use a Price Provider to supply bid, ask and reference prices instead of relying only on reserve ratios. This page focuses on Price Providers and the practical checks that matter when using or integrating the protocol.
What a Price Provider returns
A Metric Price Provider is responsible for supplying current bid, ask and reference pricing to the pool. The pool depends on this output before evaluating liquidity and executing a trade.
Validation checklist
| Check | Why it matters |
|---|---|
| Bid/ask ordering | Prevents internally inconsistent quotes |
| Reference validity | Avoids using malformed market data |
| Freshness | Reduces stale-price execution |
| Failure behavior | A provider should fail safely when it cannot quote |
| Authorization | Update paths must not accept unauthorized price changes |
Provider sources
Reference pricing can come from verified oracle feeds, market-maker streams or custom logic. The pool should expose enough context for users to understand the trust model.
Related Metric Docs
Last updated