Independent guide, not affiliated with Metric.Referral links on this site · disclosure · not financial advice
Metric DEX GuideUnofficial guide to metric.xyz
Understand Metric

Price Providers and oracles on Metric

Every Metric pool reads its price from one contract. Here's what feeds it, and what happens when data goes stale.

Checked against official sources 28 Nov 2026361 words · 2 min read4 sources citedIndependent guide
Short answer

Each pool has one Price Provider that returns a bid, an ask and a reference price. Providers can use Metric's shared Chainlink and Pyth feeds, the gas-optimised Compressed Oracle where market makers publish their own prices, or custom logic. If the provider can't quote, the pool rejects every swap, while deposits and withdrawals keep working.

The three prices#

InputRole
BidPrice at which the pool buys the asset
AskPrice at which the pool sells the asset
ReferenceSets 0% deviation; fees and markouts are measured from it

Shared oracle infrastructure#

OracleWho sets the priceNotes
Chainlink and PythChainlink or Pyth (signed updates)Anyone can relay an update; the signature is checked. Only Metric pools and approved integrators can read them on chain
Compressed OracleThe feed's creator or an updater they authoriseUp to four values per 32-byte word, about 8,000 gas per feed. Not independently verifiable
Multiplier OraclePyth share price × the issuer's multiplierFor tokenized stocks; see tokenized stock pools

When a pool stops trading#

  • The latest update is older than the provider's staleness limit (capped at 7 days when created; Best Practices pools need 15 seconds or less).
  • The feed reports itself stalled, too much uncertainty, or a price outside its configured range.
  • The provider reverts or returns no valid price. Metric calls halting an accepted safe state.

Anchored pricing#

An Anchored Price Provider takes its reference from Chainlink or Pyth and clamps the curator's quotes: they can be wider than the oracle price, never through it. In the docs' example, with a $100 reference and limits of $99 and $101, a strategy proposing $99.50 / $100.50 is clamped to $99 / $101. That's a key part of the Best Practices tier.

Why the reference price matters

Metric's docs warn that a quote can pass the pool's checks and still trade at a bad price, and a misleading reference can inflate reported markouts. See risks.

FAQ#

What oracles does Metric use?

Shared Chainlink and Pyth feeds, a Compressed Oracle where market makers publish their own prices, and a Multiplier Oracle for tokenized stocks. Providers can also use custom logic.

What happens if a Metric pool's oracle goes stale?

Once the latest update is older than the provider's staleness limit, the provider halts and the pool rejects swaps. Deposits and withdrawals still work, subject to the pool's extensions.

Sources checked

All checked on 28 Nov 2026. Metric can change its product, docs and terms at any time; always confirm in the app and the official docs.

Disclosure: this site is independent and uses referral links. Not financial advice. Providing liquidity can lose your entire deposit. Details.