Crypto Oracles: A Research Guide
Compare Chainlink, Pyth, RedStone, Switchboard, API3, and UMA on integrations, update model, and failure modes before you pick a price feed.
Last verified
Table of contents
An oracle is the part of your stack that decides what everything is worth. Get it wrong and the protocol liquidates the right people at the wrong prices, or the wrong people at any price. It is worth more scrutiny than it usually gets.
This guide compares the oracles by how widely they are integrated, how they deliver prices, and how they fail.
Integration breadth
| Oracle | Protocols integrated | Token market cap | Update model |
|---|---|---|---|
| Chainlink | ~75 | $5.72B | Push, deviation + heartbeat |
| Pyth | ~54 | $314M | Pull, on-demand update |
| Switchboard | ~12 | n/a | Pull, configurable |
| RedStone | ~11 | $45M | Pull and push modes |
| UMA | ~8 | $17M | Optimistic, disputed on chain |
| Supra | ~8 | $5M | Pull |
| Band | ~6 | $22M | Push |
| Pragma | ~6 | n/a | Pull, Starknet-native |
| API3 | n/a | $23M | First-party, dAPIs |
A note on that first column, because it is easy to misread. It counts protocols in DeFiLlama's dataset that name each oracle, and only 238 of roughly 8,100 tracked protocols record one at all. So the counts are a reliable guide to relative breadth and a poor guide to absolute coverage. Market cap is live; integration counts are a snapshot from 31 August 2026.
Note also what the totals do not include: roughly 45 protocols report an "Internal" oracle, meaning they run their own. That is a legitimate choice for a venue with its own deep order book, and a warning sign for anything else.
Push and pull, and why it decides the rest
Almost every practical difference follows from when the price gets written.
Push oracles write on chain on their own schedule: on a heartbeat, or when the price moves past a deviation threshold. The protocol reads the last stored value, which is cheap and simple, and the oracle pays gas whether or not anyone is trading. The risk is the gap between updates. If your feed updates on a 0.5% deviation and the market moves 3% in one block, you are liquidating against a price that no longer exists.
Pull oracles sign prices off chain continuously and let the caller submit the signed update inside the transaction that needs it. Prices can be far fresher and the cost lands on whoever needs the price. The tradeoff is that every integration must handle the update step, and a caller who submits a stale signed price is a class of bug that does not exist in the push model.
Optimistic oracles are a different animal. UMA posts an asserted answer and lets anyone dispute it within a challenge window. That is slow by construction and unsuitable for liquidations, and it is the right shape for questions with no price feed at all, which is why prediction markets use it to resolve outcomes.
The practical mapping:
- Lending markets: push feeds, conservative deviation thresholds, and a circuit breaker. You want boring and well-attested more than you want fresh.
- Perpetuals and options: pull feeds. Derivatives cannot tolerate lag during the exact moments that matter.
- Prediction markets and anything resolving a real-world event: optimistic.
- Long-tail or bespoke assets: first-party (API3) or a custom RedStone feed, because the asset you need probably is not in a standard feed set.
How oracles actually fail

Oracle risk usually shows up at the integration boundary. Thin-market manipulation, stale feeds, misconfiguration and weak fallback rules can break a protocol even when the oracle product is reputable.
Failures cluster into three patterns, and none of them are exotic.
Manipulation of a thin market. The attack targets the venue the oracle reads rather than the oracle itself. If a token's real liquidity is a single pool, an attacker can move the price, borrow against the inflated collateral, and leave the protocol with the loss. Mitigation is a matter of which markets a feed aggregates and how much it costs to move them, not of oracle brand.
Staleness. A feed stops updating, and the protocol keeps trusting the last value. Every integration should check the timestamp on a price and refuse to act on one that is too old. This is one line of code and it is skipped constantly.
Misconfiguration. The wrong feed, the wrong decimals, a deviation threshold inherited from a stablecoin and applied to a volatile asset. This is the most common of the three and the least discussed, because it is a deployment mistake rather than a protocol failure.
Notice that only the first is really about the oracle. The other two are about how a protocol integrates it, which is why "we use Chainlink" is an answer to a different question than "is your pricing safe".
Chainlink and Pyth, concretely
These two account for most integrations, and they are genuinely different products rather than competitors on the same axis.
Chainlink is the incumbent and the conservative default. Its ~75 recorded integrations are the widest, its feeds have the longest attestation history, and its market cap of around $5.72B is more than twenty times the next oracle token. It also sells more than price feeds: CCIP for cross-chain messaging, proof of reserve, and automation. If you are a lending market and someone asks why you chose your oracle, Chainlink is the answer that requires no defence.
Pyth is the challenger built for trading venues. Its edge is first-party data contributed by exchanges and market makers, published continuously and pulled on demand, which suits perpetual DEXs and anything where a hundred milliseconds matters. Its ~54 integrations are concentrated where that freshness earns its keep.
The honest summary is that most teams pick on workload rather than on quality. Lending picks Chainlink and derivatives picks Pyth far more often than either choice reflects a judgement that the other is bad.
What to check before you integrate
- Does the feed exist for your exact asset, on your exact chain, with liquidity behind it that is expensive to move?
- What is the deviation threshold and heartbeat, and what happens to your protocol if the price moves further than that between updates?
- Do you check staleness on every read, and what do you do when the check fails? Halting is usually better than proceeding.
- Who can update or replace the feed address, and on what timelock?
- What is your fallback when the primary is unavailable? A second oracle with a divergence check is the standard answer, and it introduces its own question about which one wins a disagreement.
- Have you priced the manipulation attack on the thinnest market in your collateral set, rather than on the deepest?
Frequently asked questions
What is a blockchain oracle?
An oracle is the service that tells a smart contract what something costs. Chains cannot read outside data on their own, so lending markets, perpetual exchanges, and stablecoins depend on an oracle for the prices they liquidate and settle against. It is the single most safety-critical dependency most DeFi protocols have.
Which oracle is used by the most protocols?
Chainlink, by a wide margin. Among the protocols where DeFiLlama records an oracle, Chainlink is named by roughly 75, ahead of Pyth at about 54, Switchboard at 12, RedStone at 11, and UMA and Supra at 8 each. Chainlink also carries by far the largest token market cap of the group, roughly twenty times Pyth's.
What is the difference between push and pull oracles?
A push oracle writes prices on chain on a schedule or when a deviation threshold is crossed, and the protocol reads the last stored value. Chainlink Data Feeds work this way. A pull oracle signs prices off chain continuously and the user submits the signed update in the same transaction that needs it. Pyth works this way. Push costs gas whether or not anyone trades; pull moves that cost to the transaction that needs the price and can be much fresher.
Which oracle is best for a perpetuals exchange?
Usually a pull oracle such as Pyth, because derivatives need sub-second-fresh prices and are willing to pay for the update in the trade itself. Push feeds with a deviation threshold can lag during fast moves, which is precisely when a perp venue cannot afford to be wrong.
What actually goes wrong with oracles?
Three things, in roughly this order. Thin-market manipulation, where an attacker moves the price on the venue an oracle reads and borrows against it. Staleness, where a feed stops updating and a protocol liquidates or settles against an old price. And misconfiguration, where a protocol points at the wrong feed, the wrong decimals, or a feed with a deviation threshold too loose for its collateral.
Can I use a DEX price as an oracle?
Only with care. A spot price from a single pool is the easiest thing in DeFi to manipulate, because an attacker can move it and exploit it inside one transaction. Time-weighted average prices raise the cost of that attack but add lag, which is its own risk during real volatility. Roughly 27 protocols in DeFiLlama's data rely on a TWAP.
Do I need to pay for an oracle?
It depends on the model. Chainlink feeds are typically funded by the protocols and ecosystems that sponsor them rather than billed per read. Pyth's pull model means the caller pays a small update fee in the transaction. API3's first-party model routes revenue back to data providers. Cost is rarely the deciding factor; correctness under stress is.
Sources & References
Figures in this guide are cross-referenced against the sources below.