Solana Oracles Explained: How Price Feeds Power DeFi

How Solana programs consume Pyth, Switchboard, and Chainlink price data—and why freshness, confidence, market hours, and fallback rules matter.

MadeOnSol··Updated · 5 min read
Solana Oracles Explained: How Price Feeds Power DeFi

Disclosure: This article contains affiliate links. If you sign up through them, MadeOnSol may earn a commission at no extra cost to you. This never affects our rankings, ratings, or reviews.

A Solana program cannot query an exchange's website during a transaction. If a lending market needs to value collateral or a perpetual exchange needs a reference price, it consumes data that an oracle has made available in a verifiable form. The protocol must still decide whether that data is fresh and appropriate for the asset and action.

An oracle is more than a single price number. Its inputs, publication method, update time, confidence measure, and failure behavior affect liquidations and settlement. A fast feed with the wrong market or stale values can be more dangerous than a slower feed with explicit validity checks.

What a price consumer should check

CheckWhy it matters
Feed identity and quote currencySOL/USD and SOL/USDC are different references; a similarly named feed is not automatically interchangeable
Publication time or update timestampA last-known price can remain visible after fresh updates stop
Confidence or dispersionPublishers may disagree, especially in volatile or fragmented markets
Market sessionEquities and some tokenized assets do not trade continuously
Feed availability and fallbackA missing update should not silently become an unlimited-age price
Manipulation resistanceThin source markets and concentrated publisher sets need extra scrutiny

The consumer program should define a maximum acceptable age, any confidence threshold, and what happens when checks fail. A fallback feed needs compatible asset definitions and its own freshness checks. “Use another oracle” is not sufficient by itself.

Pyth Network

Pyth Network aggregates prices contributed by market-data publishers and supplies a price together with quality and timing information. Pyth's current price-data guide explains aggregate price, confidence, publisher count, and the distinction between a fresh update and a carried-forward value. A narrow confidence value reflects publisher agreement under the chosen method; it does not guarantee that a trade can execute at that price.

The old description of “stake-weighted median on Pythnet with a new price every Solana slot” is no longer an accurate general account of Pyth's present services. Pyth says Pythnet is being shut down as part of its Core sunset and points developers to Pyth Pro for current architecture. Its Core contracts were upgraded in August 2026, and Hermes now requires an API key. Developers should consult the current product, feed, and chain-specific integration path instead of assuming that one delivery route fits every Solana program.

For a market with limited hours, check whether a value was newly calculated or carried forward from a prior session. Pyth's documentation explicitly describes this distinction. A protocol using the value for liquidation must decide how to handle the closed-market interval.

Switchboard

Switchboard supports configurable data feeds and on-demand delivery. Its current Solana examples use managed update instructions and verified oracle quotes. Older explanations that every operator simply polls an API, posts a value to one persistent account, and waits seconds to minutes are too narrow for the current product.

Customizability moves responsibility to the integrator. Review the job definition, source APIs, oracle queue, number and identity of signers, quote verification, maximum age, and what your program does if an update is unavailable. A custom feed is not automatically more decentralized or more accurate than a standard financial feed.

Chainlink and other references

Chainlink also documents Data Feeds on Solana, including direct account reads through its current SDK. Availability varies by asset and product. Some older Solana feeds have been deprecated as Chainlink moves selected uses toward Data Streams, so check the live feed catalog rather than assuming an EVM feed exists on Solana with the same update policy.

Native AMMs such as Raydium derive their immediate swap price from pool state. They do not need an external oracle to quote a basic constant-product swap. A protocol built around the AMM may still use an oracle for collateral valuation, risk checks, or comparisons. Lending protocols such as Kamino and MarginFi and perpetual venues such as Drift or Jupiter Perps can use oracle data for their own risk and settlement logic; verify each market's actual configuration rather than assuming all use one provider.

Failure modes

  • Staleness: A feed account may still contain a plausible number after updates stop. Check timestamps on every critical read.
  • Source-market manipulation: Aggregation reduces dependence on one input, but a thin underlying market can still distort multiple sources.
  • Wide uncertainty: A broad confidence interval may justify tighter borrowing limits or rejecting a liquidation, depending on the protocol's rules.
  • Market closure: A carried-forward equity price can be intentional and still unsuitable for an immediate liquidation.
  • Incorrect fallback: Swapping to a different provider without matching quote currency, asset definition, or update policy can create a new error.

For a direct product comparison, see Pyth vs Switchboard. Its latency and cost figures should be checked against current service plans before an integration decision. Browse more DeFi infrastructure on MadeOnSol, then test each feed's real behavior under stale, missing, and volatile conditions.

Tools mentioned

Compare features and read reviews.

Live health scores, average ratings, and direct links on MadeOnSol.

Access Solana DeFi data via API

KOL trading intelligence, DEX trade streaming, and deployer analytics. Free tier: 200 requests/day.

Start free
from madeonsol_x402 import MadeOnSolClient

client = MadeOnSolClient(api_key="msk_your_key")

# KOL convergence signals — what are whales accumulating?
signals = client.kol_coordination(period="24h", min_kols=3)

# KOL PnL leaderboard
leaders = client.kol_leaderboard(period="7d")
npm install madeonsolFull API docs

Keep reading

More from the blog.

All Education
Pyth vs Switchboard: Solana Oracle Comparison (2026)

Developer Tools

Pyth vs Switchboard: Solana Oracle Comparison (2026)

Pyth and Switchboard are the two oracle networks every Solana DeFi protocol picks between. Latency, asset coverage, pricing models, integration patterns, and which one your protocol actually wants — broken down with real 2026 numbers.

10 minMay 17, 2026
Agentic Trading in 2026: What Actually Changed

Education

Agentic Trading in 2026: What Actually Changed

How a trading research agent uses MCP and x402 to check token risk, holders and wallet activity on Solana and Robinhood Chain.

6 minSeptember 10, 2026
What Is a KOL in Crypto? Key Opinion Leaders Explained (2026)

Education

What Is a KOL in Crypto? Key Opinion Leaders Explained (2026)

KOL stands for Key Opinion Leader — a trader or personality whose calls move markets. Here's what KOLs actually are, how they make money, whether their calls are profitable (we measured 757,000 trades), and how wallet tracking separates real traders from paid promoters.

9 minJune 5, 2026
How to Evaluate Solana Signal Callers: Win Rate, ROI, and Red Flags (2026)

Education

How to Evaluate Solana Signal Callers: Win Rate, ROI, and Red Flags (2026)

Not all signal callers are equal. Learn which metrics actually matter when choosing who to follow for memecoin trades — and the red flags that expose fake performance.

11 minMay 26, 2026
Inside Our Deployer Intelligence: How We Score 10,600+ Pump.fun Deployers

Education

Inside Our Deployer Intelligence: How We Score 10,600+ Pump.fun Deployers

How MadeOnSol classifies pump.fun deployers into tiers, tracks bonding rates, and surfaces the 34 elite deployers whose tokens graduate at 71% — versus the 1-2% baseline.

13 minMay 26, 2026
Real World Assets (RWA) on Solana: Tokenized Treasuries, Stocks & More (2026)

Education

Real World Assets (RWA) on Solana: Tokenized Treasuries, Stocks & More (2026)

Updated April 2026. Solana's RWA ecosystem has hit $1.82B in tokenized value. Learn about protocols bringing treasuries, stocks, and real estate on-chain — including Franklin Templeton, Western Union USDPT, and State Street's SWEEP fund.

14 minApril 1, 2026

Enjoyed this article?

Explore the live data.

Real-time KOL trades, Pump.fun deployer intel, and 1,200+ ranked Solana & Robinhood Chain tools — free to explore.

Open the KOL Tracker