Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

CheckWhy it matters
Bid/ask orderingPrevents internally inconsistent quotes
Reference validityAvoids using malformed market data
FreshnessReduces stale-price execution
Failure behaviorA provider should fail safely when it cannot quote
AuthorizationUpdate 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.

Last updated